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

Rearrange internals of base workspace webviews #1706

Merged
merged 1 commit into from
May 14, 2022

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented May 13, 2022

1/2 main <- this <- #1701

Noticed this misalignment whilst working on #1701. Pulled it out to make it easier to review.

@@ -255,14 +246,6 @@ export class WorkspaceExperiments extends BaseWorkspaceWebviews<
return this.runCommand(commandId, cwd, experiment.name)
}

private async getDvcRoot(overrideRoot?: string) {
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] In #1701 we need this property to be in both classes derived from BaseWorkspaceWebviews

import { WorkspacePlots } from '../workspace'

export const registerPlotsCommands = (plots: WorkspacePlots) => {
commands.registerCommand(RegisteredCommands.PLOTS_SHOW, () => {
Copy link
Member Author

@mattseddon mattseddon May 13, 2022

Choose a reason for hiding this comment

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

[F] Having this registered in this way means we have no telemetry events for it so far 🤦🏻 .

@mattseddon mattseddon marked this pull request as ready for review May 13, 2022 06:20
@codeclimate
Copy link

codeclimate bot commented May 13, 2022

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

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

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

View more on Code Climate.

@mattseddon
Copy link
Member Author

Overall coverage from the two PRs is 90.2%.

@mattseddon mattseddon requested a review from a team May 13, 2022 06:34
@mattseddon mattseddon merged commit 4e49246 into main May 14, 2022
@mattseddon mattseddon deleted the correctly-register-plot-show branch May 14, 2022 02:26
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