Skip to content

Conversation

@mattseddon
Copy link
Contributor

@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

@qlty-cloud-legacy qlty-cloud-legacy 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.

@qlty-cloud-legacy
Copy link

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
public toggleExperimentStatus(
id: string
): Color | typeof UNSELECTED | undefined {
if (
Copy link
Contributor 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.


public async selectExperiments() {
const experiments = this.experiments.getWorkspaceCommitsAndExperiments()
public async selectExperimentsToPlot() {
Copy link
Contributor 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

})
})

describe('checkForFinishedWorkspaceExperiment', () => {
Copy link
Contributor 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