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

Fix issues with messages from the plots webview #3986

Merged
merged 1 commit into from
May 26, 2023
Merged

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented May 26, 2023

This PR fixes a couple of small issues with messages coming from the plots webview. Comments inline.

@mattseddon mattseddon added the bug Something isn't working label May 26, 2023
@mattseddon mattseddon self-assigned this May 26, 2023
return commands.executeCommand(RegisteredCommands.PLOTS_CUSTOM_ADD)
return commands.executeCommand(
RegisteredCommands.PLOTS_CUSTOM_ADD,
this.dvcRoot
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] If there were multiple dvc projects in the workspace then clicking on the add custom plot button in the webview would have prompted the user for which project they wanted to run the add command against.

case MessageFromWebviewType.REFRESH_REVISIONS:
return this.refreshData()
return commands.executeCommand(
RegisteredCommands.PLOTS_REFRESH,
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] We had code and an extra command in here that was really duplicating logic unnecessarily.

@mattseddon mattseddon marked this pull request as ready for review May 26, 2023 02:04
@mattseddon mattseddon requested review from sroy3 and julieg18 as code owners May 26, 2023 02:04
@mattseddon mattseddon force-pushed the fix-plot-commands branch 2 times, most recently from 1706238 to 1879d27 Compare May 26, 2023 03:46
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 force-pushed the fix-plot-commands branch from 1879d27 to b152528 Compare May 26, 2023 20:42
@mattseddon mattseddon enabled auto-merge (squash) May 26, 2023 20:42
@codeclimate
Copy link

codeclimate bot commented May 26, 2023

Code Climate has analyzed commit b152528 and detected 0 issues on this pull request.

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 95.0% (0.0% change).

View more on Code Climate.

@mattseddon mattseddon merged commit 9c9e15d into main May 26, 2023
@mattseddon mattseddon deleted the fix-plot-commands branch May 26, 2023 21:00
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