-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Conversation
@@ -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. |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
In the artifacts UI, when we listed a new directory, the
deepCopy
function on anArtifactNode
fails to copy theisLoaded
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:
After (with some spinning):