-
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
Show plots errors in plots tree #3522
Conversation
import { ErrorDecorationProvider } from '../../tree/errorDecorationProvider' | ||
import { uniqueValues } from '../../util/array' | ||
|
||
export class DecorationProvider extends ErrorDecorationProvider { |
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.
Similar blocks of code found in 2 locations. Consider refactoring.
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.
This is identical to extension/src/repository/model/decorationProvider.ts
and close to extension/src/experiments/model/decorationProvider.ts
I can follow up.
d627859
to
f2eda8c
Compare
9d07c0b
to
e7c905f
Compare
e7c905f
to
4f4f31e
Compare
4f4f31e
to
ae197a0
Compare
@@ -90,6 +92,9 @@ export abstract class BasePathSelectionTree< | |||
if (description) { | |||
treeItem.description = description | |||
} | |||
if (tooltip) { | |||
treeItem.tooltip = tooltip |
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.
What's the point of checking for the element before assigning it? If tooltip
is undefined
, treeItem.tooltip
is undefined
as well anyway, no? I'm asking because I'm probably missing something.
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.
you are right, there is no point. I'll update
ae197a0
to
a7f586f
Compare
a7f586f
to
e560f67
Compare
e560f67
to
82fa5b4
Compare
Code Climate has analyzed commit 82fa5b4 and detected 2 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 90.5% (85% is the threshold). This pull request will bring the total coverage in the repository to 95.1% (0.0% change). View more on Code Climate. |
3/4
main
<- #3477 <- #3520 <- this <- #3532Relates to #2277
Demo
Screen.Recording.2023-03-21.at.7.21.53.pm.mov
Note: The above shows that I need to add the "full update" logic for when the dvc.yaml is changed (will be done in #3532).