-
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
Prevent plotting of running experiments #3712
Conversation
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 37376 lines exceeds the maximum allowed for the inline comments feature.
Code Climate has analyzed commit 448afda and detected 4 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 94.7% (85% is the threshold). This pull request will bring the total coverage in the repository to 94.7% (0.0% change). View more on Code Climate. |
@@ -217,15 +222,6 @@ export class Experiments extends BaseRepository<TableData> { | |||
public toggleExperimentStatus( | |||
id: string | |||
): Color | typeof UNSELECTED | undefined { | |||
if ( |
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] Moved this down into the model so that all of the logic is together.
@@ -353,8 +349,10 @@ export class Experiments extends BaseRepository<TableData> { | |||
return this.experiments.getWorkspaceCommitsAndExperiments() | |||
} | |||
|
|||
public async selectExperiments() { | |||
const experiments = this.experiments.getWorkspaceCommitsAndExperiments() | |||
public async selectExperimentsToPlot() { |
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] This is the only thing this function is used for so I think the name better explains the usage
@@ -2072,121 +2099,4 @@ suite('Experiments Test Suite', () => { | |||
expect(mockUpdateExperimentsData).to.be.calledOnce | |||
}) | |||
}) | |||
|
|||
describe('checkForFinishedWorkspaceExperiment', () => { |
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.
🤦🏻
448afda
to
ca4c711
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.
Looks good!
…outside the workspace) (#3665) * wrap all loose test data in test data generator * add new type * duplicate required functions but use new data * update test fixtures * deduplicate functions * remove checkpoints model and file system watcher (#3684) * extend timeout of run experiment test (e2e) (#3713) * prevent plotting of running experiments (#3712) * trigger plot updates whenever commit data changes (#3715) * update demo project and min required version of DVC * fix experiment id for commits (shown in plots) (#3724)
2/2
main
<- #3665 <- thisReplaces #3705
This PR ensures that queued/running experiments cannot be selected for plotting. In the special case that an experiment is running in the workspace and the user tries to select that experiment for plotting the workspace will be selected.