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

Dvc 8568 variations update in variables create #309

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

elliotCamblor
Copy link
Collaborator

@elliotCamblor elliotCamblor commented Oct 2, 2023

variables_create

@elliotCamblor elliotCamblor force-pushed the DVC-8568-variations-update-in-variables-create branch 6 times, most recently from d4cc2e8 to cb8e36d Compare October 3, 2023 18:06
@elliotCamblor elliotCamblor marked this pull request as ready for review October 3, 2023 18:10
@elliotCamblor elliotCamblor requested a review from a team October 3, 2023 18:40
@elliotCamblor elliotCamblor force-pushed the DVC-8568-variations-update-in-variables-create branch from cb8e36d to cf05dc2 Compare October 3, 2023 18:46
@@ -100,7 +100,7 @@ $ npm install -g @devcycle/cli
$ dvc COMMAND
running command...
$ dvc (--version)
@devcycle/cli/5.11.1 linux-x64 node-v18.16.0
Copy link
Contributor

Choose a reason for hiding this comment

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

are we supposed to be committing these changes? my env always generates them but i just delete them

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Im not sure lol, Its just in the readme so I dont think it particularly matters

await variableListOptions.promptVariationValues(params as Variable)
await updateFeature(this.authToken, this.projectKey, feature.key, feature)
const message = `The variable was associated to the existing feature ${feature.key}. ` +
`Use "dvc feature get ${feature.key}" to see its details`
Copy link
Contributor

Choose a reason for hiding this comment

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

should be dvc features get --keys=${feature.key}, i don't think we support get <key> currently (although we should)

Copy link
Contributor

Choose a reason for hiding this comment

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

also should we still output the variable result here as well as the success message? might be kind of awkward since we'd have to find the new variable in the result of updateFeature but i feel like it might be annoying to have to get the feature separately just to check if you made a typo or something

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tbh I dont really think outputting the full variable is that useful here. Adam suggested that this be the response and I think I agree with him. Checking for a type is pretty much the only use case (especially since the command doesnt support headless mode if youre creating a feature)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will change the command thats output though, good catch!

Copy link
Contributor

Choose a reason for hiding this comment

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

makes sense, works for me!

@elliotCamblor elliotCamblor force-pushed the DVC-8568-variations-update-in-variables-create branch 2 times, most recently from b973651 to 53050f1 Compare October 6, 2023 14:38
@elliotCamblor elliotCamblor force-pushed the DVC-8568-variations-update-in-variables-create branch from 53050f1 to 2fa99cf Compare October 6, 2023 15:06
@elliotCamblor elliotCamblor force-pushed the DVC-8568-variations-update-in-variables-create branch from 2fa99cf to 59bb792 Compare October 6, 2023 15:10
@elliotCamblor elliotCamblor merged commit a52939e into main Oct 6, 2023
4 checks passed
@elliotCamblor elliotCamblor deleted the DVC-8568-variations-update-in-variables-create branch October 6, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants