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

Fix bug with list artifacts UI. #296

Merged
merged 2 commits into from
Aug 14, 2018

Conversation

andrewmchen
Copy link
Contributor

In the artifacts UI, when we listed a new directory, the deepCopy function on an ArtifactNode fails to copy the isLoaded property. We should copy it so the UI doesn't get confused.

Also, the old loading... message had a hideous green color. This PR changes it.

Before:
screen shot 2018-08-13 at 3 02 16 pm
After (with some spinning):
screen shot 2018-08-13 at 2 52 57 pm

@@ -2,17 +2,21 @@ export class ArtifactNode {
constructor(isRoot, fileInfo, children) {
this.isRoot = isRoot;
this.isLoaded = false;
// fileInfo should not be defined for the root node.
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this comment pertain to something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, it just means that we don't expect fileInfo to be set on the root ArtifactNode.

@@ -206,6 +206,7 @@ const artifactsByRunUuid = (state = {}, action) => {
let artifactNode = state[runUuid] || new ArtifactNode(true);
// Make deep copy.
artifactNode = artifactNode.deepCopy();
console.log(artifactNode);
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

@codecov-io
Copy link

codecov-io commented Aug 14, 2018

Codecov Report

Merging #296 into master will increase coverage by 0.16%.
The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #296      +/-   ##
==========================================
+ Coverage   55.71%   55.87%   +0.16%     
==========================================
  Files         108      108              
  Lines        5523     5525       +2     
==========================================
+ Hits         3077     3087      +10     
+ Misses       2446     2438       -8
Impacted Files Coverage Δ
mlflow/server/js/src/components/ArtifactView.js 0% <0%> (ø) ⬆️
mlflow/server/js/src/utils/ArtifactUtils.js 40% <100%> (+40%) ⬆️
mlflow/projects/databricks.py 83.44% <0%> (-0.23%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd2ba3f...2258be7. Read the comment docs.

@aarondav aarondav added the LGTM label Aug 14, 2018
@aarondav aarondav merged commit d6f0e46 into mlflow:master Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants