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

UI: Prefill parameters for the workflow submit form #12124

Open
tolleiv opened this issue Nov 1, 2023 · 1 comment · May be fixed by #13922
Open

UI: Prefill parameters for the workflow submit form #12124

tolleiv opened this issue Nov 1, 2023 · 1 comment · May be fixed by #13922
Labels
area/ui solution/suggested A solution to the bug has been suggested. Someone needs to implement it. type/feature Feature request

Comments

@tolleiv
Copy link

tolleiv commented Nov 1, 2023

Summary

When submitting workflows through the web ui, it's not possible (or just not documented) to prefill the parameters through the URL (without triggering the Workflow right away). Deeplinking from external systems with the parameters prefilled allows to integrate with external systems for easier runbook automation.

Use Cases

Coming from Jenkins users might be familiar with "buildWithParameters" jobs. These were useful e.g. when linking from Alerts/Incidents to Troubleshooting Workflows passing the correct context information into the parameters.

An alert could e.g. easily pass the Pod and Namespace information into the workflow as a parameter so the user doesn't have to copy/paste it.


Message from the maintainers:

Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

@tolleiv tolleiv added the type/feature Feature request label Nov 1, 2023
@agilgur5 agilgur5 changed the title Prefill parameters for the workflow submit form UI: Prefill parameters for the workflow submit form Oct 15, 2024
@agilgur5
Copy link
Contributor

We discussed this during today's Contributor Meeting, so noting here that this should be straightforward to do, basically read the initial state from query parameters.

Can use existing code that uses query parameters to set state as an example, such as usage of location.search or URLSearchParams

@agilgur5 agilgur5 added the solution/suggested A solution to the bug has been suggested. Someone needs to implement it. label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui solution/suggested A solution to the bug has been suggested. Someone needs to implement it. type/feature Feature request
Projects
Status: No status
2 participants