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

Allow overrides for default task values via URL parameters #1320

Merged
merged 3 commits into from
Dec 14, 2023

Conversation

kovyrin
Copy link
Contributor

@kovyrin kovyrin commented Dec 14, 2023

Allow new task page to accept default value overrides for task variables. This should allow users to construct urls like https://shipit.example.com/something/production/tasks/restart/new?REGION=gcp-us-east1 and provide their parameters with a default value.

One very important use-case here is links from documentation/playbooks, where we'd want to hardcode specific values for a task and allow the operator to review those and then click the button without having to re-type the values every time (especially dangerous when under fire).

Copy link
Contributor

@casperisfine casperisfine left a comment

Choose a reason for hiding this comment

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

Fine by me, just think the implementation could be improved a bit.

kovyrin and others added 2 commits December 14, 2023 15:41
Co-authored-by: Jean byroot Boussier <jean.boussier+github@shopify.com>
@kovyrin
Copy link
Contributor Author

kovyrin commented Dec 14, 2023

Fine by me, just think the implementation could be improved a bit.

Great suggestion, thank you!

@kovyrin kovyrin merged commit 7018749 into main Dec 14, 2023
17 checks passed
@kovyrin kovyrin deleted the kovyrin/task-var-override branch December 14, 2023 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants