Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markdown viewer #897

Merged
merged 5 commits into from
Mar 5, 2019
Merged

Conversation

yebrahim
Copy link
Contributor

@yebrahim yebrahim commented Mar 1, 2019

This PR adds a new viewer for markdown text, which supports both inlining the markdown or reading it from a remote storage. It uses markdown-it to convert the markdown text to HTML, and uses React's dangerouslySetInnerHTML method to insert it. We rely on the library's sanitization to make sure all active scripts are removed from the markdown. Basic component tests are added here as well.

The PR also cleans up test files for NewExperiment, RecurringRunDetails, and RecurringRunsManager to reuse the mount tree, there's no change in functionality there, however, and they can be skipped in the review without leaving out much (so can their snapshot files).

@avdaredevil I'd appreciate it if you can review this PR, since @rileyjbauer is out.


This change is Reviewable

@hongye-sun
Copy link
Contributor

/lgtm

Thanks a lot for pushing the PR for the next week's bug bash.

Copy link
Contributor

@avdaredevil avdaredevil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's my two cents on this

frontend/src/components/viewers/MarkdownViewer.test.tsx Outdated Show resolved Hide resolved
frontend/src/components/viewers/MarkdownViewer.test.tsx Outdated Show resolved Hide resolved
frontend/src/lib/OutputArtifactLoader.test.ts Show resolved Hide resolved
frontend/src/pages/NewExperiment.test.tsx Show resolved Hide resolved
Copy link
Contributor Author

@yebrahim yebrahim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @avdaredevil for the review!

frontend/src/components/viewers/MarkdownViewer.test.tsx Outdated Show resolved Hide resolved
frontend/src/components/viewers/MarkdownViewer.test.tsx Outdated Show resolved Hide resolved
frontend/src/lib/OutputArtifactLoader.test.ts Show resolved Hide resolved
frontend/src/pages/NewExperiment.test.tsx Show resolved Hide resolved
@avdaredevil
Copy link
Contributor

/lgtm

@yebrahim
Copy link
Contributor Author

yebrahim commented Mar 4, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yebrahim

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@avdaredevil
Copy link
Contributor

/lgtm

@yebrahim
Copy link
Contributor Author

yebrahim commented Mar 4, 2019

/test kubeflow-pipeline-e2e-test

3 similar comments
@yebrahim
Copy link
Contributor Author

yebrahim commented Mar 4, 2019

/test kubeflow-pipeline-e2e-test

@yebrahim
Copy link
Contributor Author

yebrahim commented Mar 4, 2019

/test kubeflow-pipeline-e2e-test

@yebrahim
Copy link
Contributor Author

yebrahim commented Mar 4, 2019

/test kubeflow-pipeline-e2e-test

@hongye-sun
Copy link
Contributor

/retest

@k8s-ci-robot k8s-ci-robot merged commit 473c4be into kubeflow:master Mar 5, 2019
@yebrahim yebrahim deleted the markdown-viewer branch March 5, 2019 01:14
cheyang pushed a commit to alibaba/pipelines that referenced this pull request Mar 28, 2019
* working, needs tests

* tests

* add output artifact loader tests

* cleanup new experiment tests

* pr comments
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
* Fix up kfserving install doc link

* Update quick install for 0.3.0

* Upgrade quick install to use istio 1.6.2

* Add perf test job for sklearn example

* Add KFServing demo gif

* Reorganize examples

* Add feature descriptions

* Add feature table for model serve

* Add alibi references

* Update main README

* Add batcher/gRPC example

* Fix perf job for sklearn example

* separate custom predictor

* Update batching and alibi

* Add roadmap
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants