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

Focus pipeline when dvc.yaml file is open in the active editor #4273

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Jul 14, 2023

3/3 main <- #4264 <- #4272 <- this

This PR focuses a pipeline when the respective dvc.yaml file is open in the active editor.

This means that we can add the Show Pipeline DAG command to the editor/title and bypass showing a choice of pipelines to the user if they choose to run an experiment with a dvc.yaml file open.

Demo

Screen.Recording.2023-07-14.at.1.36.41.pm.mov

PR needs tests.

@mattseddon mattseddon added the product PR that affects product label Jul 14, 2023
@mattseddon mattseddon self-assigned this Jul 14, 2023
@mattseddon mattseddon changed the base branch from main to rewrite-getter-stub July 14, 2023 03:34
@@ -420,7 +420,8 @@
{
"title": "Show Pipeline DAG",
"command": "dvc.showPipelineDAG",
"category": "DVC"
"category": "DVC",
"icon": "$(symbol-class)"
Copy link
Member Author

Choose a reason for hiding this comment

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

I am open to suggestions for a different codicon.

setActiveEditorContext(path)
})

export const setContextForEditorTitleIcons = (
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] this code is close to what we do for experiments.

@mattseddon mattseddon marked this pull request as ready for review July 14, 2023 05:34
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!

Base automatically changed from rewrite-getter-stub to main July 16, 2023 22:14
@codeclimate
Copy link

codeclimate bot commented Jul 17, 2023

Code Climate has analyzed commit 7a626c7 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

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

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

View more on Code Climate.

@mattseddon mattseddon merged commit 320e9c5 into main Jul 17, 2023
3 checks passed
@mattseddon mattseddon deleted the focus-pipeline branch July 17, 2023 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR that affects product
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants