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

Make plots tree items decoratable #3504

Merged
merged 2 commits into from
Mar 20, 2023
Merged

Conversation

mattseddon
Copy link
Contributor

@mattseddon mattseddon commented Mar 20, 2023

Related to #1649.

This is a step that needs to be taken in order to display errors in the plots tree. It can be done now while the discussion continues.

join(dvcRoot, path),
DecoratableTreeItemScheme.PLOTS
)
return new TreeItem(resourceUri, collapsibleState)
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] By providing a "decoratable" Uri here with the dvc.plots scheme we won't run into the SCM decorations and we'll be able to provide a color when there is an error for that plots. See extension/src/experiments/model/decorationProvider.ts for a working example.

The same approach does not work for the experiments column tree as the path can be : separated. Hence they have been left separate.

@mattseddon mattseddon marked this pull request as ready for review March 20, 2023 04:41
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 enabled auto-merge (squash) March 20, 2023 23:36
@codeclimate
Copy link

codeclimate bot commented Mar 20, 2023

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

The test coverage on the diff in this pull request is 83.3% (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 4c54059 into main Mar 20, 2023
@mattseddon mattseddon deleted the make-plots-tree-decoratable branch March 20, 2023 23:50
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