-
Notifications
You must be signed in to change notification settings - Fork 29
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
Use linear path to update plots data when experiments update #2831
Conversation
eaaf084
to
d80eb47
Compare
@@ -105,6 +106,10 @@ export class PlotsModel extends ModelWithPersistence { | |||
} | |||
|
|||
public async transformAndSetPlots(data: PlotsOutput, revs: string[]) { | |||
if (data.error) { |
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.
[F] Related to this comment: #1649 (comment). Will fix separately.
d80eb47
to
bfee9f1
Compare
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.
The PR diff size of 26259 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 26272 lines exceeds the maximum allowed for the inline comments feature.
3d7cd91
to
ea733d0
Compare
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.
The PR diff size of 26260 lines exceeds the maximum allowed for the inline comments feature.
@@ -48,7 +49,7 @@ export class Plots extends BaseRepository<TPlotsData> { | |||
this.experiments = experiments | |||
|
|||
this.plots = this.dispose.track( | |||
new PlotsModel(this.dvcRoot, experiments, workspaceState) |
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.
[F] Removing experiments from here so that we can't get into a race condition where the selected revisions change mid-update.
|
||
this.fetchedRevs = new Set([ | ||
...this.fetchedRevs, | ||
...revs.map(rev => cliIdToLabel[rev]) | ||
...newRevs.map(rev => cliIdToLabel[rev]) | ||
]) |
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.
[F] I think we can expand fetchedRevs
to include state information about each revision. We can then display this information on the ribbon. The 4 states would be:
- loading
- loaded with data
- loaded no data
- loaded with errors
We could potentially combine 3 & 4.
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.
WDYT?
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.
The PR diff size of 26285 lines exceeds the maximum allowed for the inline comments feature.
Code Climate has analyzed commit 44aed94 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 96.6% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.6% (0.0% change). View more on Code Climate. |
I've been chasing shadows in this PR. The specific issue that I was trying to solve is checkpoints being updated too quickly to ever be shown inside of the plots webview. This happens when there is not much data in the experiments table + checkpoints are created in a rapid manner. A better solution for that particular issue has been proposed in #2424. I am going to take a different approach to speed up the ribbon being loaded. |
WIP