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

Add ability to pause data updates #1123

Merged
merged 2 commits into from
Dec 6, 2021
Merged

Add ability to pause data updates #1123

merged 2 commits into from
Dec 6, 2021

Conversation

mattseddon
Copy link
Contributor

@mattseddon mattseddon commented Dec 6, 2021

4/5 master <- #1120 <- #1122 <- #1124 <- this <- #1125

Follow up from https://github.com/iterative/vscode-dvc/pull/1120/files#r762631396 i.e the "temporary fix" (waitForLock) which was implemented so that we could queue experiments without error because they were running into the locks created by status, diff, exp show, etc.

This will mitigate the issue of updates running whenever we perform an action running within the extension but there is nothing that comes to mind for something that we can do about updates running when a user uses the CLI directly.

Also relates to #948 (comment).

@mattseddon mattseddon self-assigned this Dec 6, 2021
@mattseddon mattseddon changed the base branch from master to nest-repo-files December 6, 2021 02:35
@@ -177,11 +177,16 @@ export class WorkspaceExperiments extends BaseWorkspaceWebviews<
}
}

public createRepository(dvcRoot: string, resourceLocator: ResourceLocator) {
public createRepository(
Copy link

Choose a reason for hiding this comment

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

Function createRepository has 26 lines of code (exceeds 25 allowed). Consider refactoring.

@mattseddon mattseddon changed the base branch from nest-repo-files to remove-unnecessary-emitter December 6, 2021 02:50
@@ -1,3 +1,4 @@
import { EventEmitter } from 'vscode'
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] These are the functional changes and the corresponding test is here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The rest is just EventEmitter drilling and signature changes.

@mattseddon mattseddon force-pushed the remove-unnecessary-emitter branch from a7969dd to 55ee93f Compare December 6, 2021 23:04
Base automatically changed from remove-unnecessary-emitter to master December 6, 2021 23:10
@mattseddon mattseddon enabled auto-merge (squash) December 6, 2021 23:13
@codeclimate
Copy link

codeclimate bot commented Dec 6, 2021

Code Climate has analyzed commit 211138d and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

The test coverage on the diff in this pull request is 100.0% (85% is the threshold).

This pull request will bring the total coverage in the repository to 96.7% (0.1% change).

View more on Code Climate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants