-
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
Fix issues with messages from the plots webview #3986
Conversation
return commands.executeCommand(RegisteredCommands.PLOTS_CUSTOM_ADD) | ||
return commands.executeCommand( | ||
RegisteredCommands.PLOTS_CUSTOM_ADD, | ||
this.dvcRoot |
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] 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, |
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] We had code and an extra command in here that was really duplicating logic unnecessarily.
1706238
to
1879d27
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!
1879d27
to
b152528
Compare
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. |
This PR fixes a couple of small issues with messages coming from the plots webview. Comments inline.