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

Prevent plotting of running experiments #3712

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Apr 19, 2023

2/2 main <- #3665 <- this

Replaces #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.

@mattseddon mattseddon added the bug Something isn't working label Apr 19, 2023
@mattseddon mattseddon self-assigned this Apr 19, 2023
@mattseddon mattseddon changed the base branch from main to integrate-exp-show April 19, 2023 04:41
Copy link

@codeclimate codeclimate bot left a 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.

@codeclimate
Copy link

codeclimate bot commented Apr 19, 2023

Code Climate has analyzed commit 448afda and detected 4 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 2
Duplication 2

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.

@mattseddon mattseddon marked this pull request as ready for review April 19, 2023 04:51
@@ -217,15 +222,6 @@ export class Experiments extends BaseRepository<TableData> {
public toggleExperimentStatus(
id: string
): Color | typeof UNSELECTED | undefined {
if (
Copy link
Member Author

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() {
Copy link
Member Author

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', () => {
Copy link
Member Author

Choose a reason for hiding this comment

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

🤦🏻

Copy link
Contributor

@julieg18 julieg18 left a comment

Choose a reason for hiding this comment

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

Looks good!

@mattseddon mattseddon merged commit ef25c85 into integrate-exp-show Apr 19, 2023
@mattseddon mattseddon deleted the prevent-selection-of-running branch April 19, 2023 20:21
mattseddon added a commit that referenced this pull request Apr 20, 2023
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants