-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add top-level plots wizard #4586
Conversation
extension/src/fileSystem/index.ts
Outdated
const plotYaml = yaml.stringify({ plots: [{ [plotName]: plot }] }).split('\n') | ||
|
||
// TBD this only works correctly for yaml with 2 space indent and no plots | ||
// will adjust for other possibilities in another pr |
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.
Will get taken care of in #4628 (Almost done, found a bug while finishing up tests. Will finish it tomorrow).
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.
[C] Let's not leave comments TODO in the code/merge before fixing obvious/known issue. It would have been enough to add a do not merge
label to this PR and leave a comment linking to #4628 instead.
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.
Makes sense! Removed the unneeded comments.
extension/src/pipeline/util.ts
Outdated
export const pickPlotConfiguration = async (): Promise< | ||
PlotConfigData | undefined | ||
> => { | ||
// TBD data file validation will be in next pr |
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.
Taken care of in #4627.
@@ -423,6 +423,12 @@ | |||
"category": "DVC", | |||
"icon": "$(symbol-class)" | |||
}, | |||
{ | |||
"title": "Add Plot", |
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.
Maybe "Add Top-Level Plot" to better differentiate between "Add Custom Plot"?
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 ok for now.
@@ -903,6 +909,10 @@ | |||
"command": "dvc.showPipelineDAG", | |||
"when": "dvc.commands.available && dvc.project.available" | |||
}, | |||
{ | |||
"command": "dvc.addTopLevelPlot", | |||
"when": "dvc.commands.available && dvc.project.available" |
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.
Is currently available in the command pallette.
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.
👍🏻
extension/src/fileSystem/index.ts
Outdated
const plotYaml = yaml.stringify({ plots: [{ [plotName]: plot }] }).split('\n') | ||
|
||
// TBD this only works correctly for yaml with 2 space indent and no plots | ||
// will adjust for other possibilities in another pr |
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.
[C] Let's not leave comments TODO in the code/merge before fixing obvious/known issue. It would have been enough to add a do not merge
label to this PR and leave a comment linking to #4628 instead.
return | ||
} | ||
|
||
return { ...templateAndFields, dataFile: file } |
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.
Avoid too many return
statements within this function.
Code Climate has analyzed commit 0a0960f and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 91.9% (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. |
1/3
main
<= this <= #4627 <= #4628Demo
Screen.Recording.2023-09-06.at.6.30.47.PM.mov
Fixes #3539