Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conditional parameters #11275

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

Open
stirby opened this issue Dec 19, 2023 · 5 comments
Open

Conditional parameters #11275

stirby opened this issue Dec 19, 2023 · 5 comments
Assignees
Labels
roadmap https://coder.com/roadmap. Only humans may set this.

Comments

@stirby
Copy link
Collaborator

stirby commented Dec 19, 2023

Problem statement

Many customers frequently send in requests to extend the capability of coder_parameters in the UI. There are a few desired features:

Proposal

Before we attempt to implement these features individually, @kylecarbs recommended we experiment with allowing users to express coder_parameters as code using JSONForms.

We would allow users to write their workspace parameters in the UI using JSONForms and render them using the React integration. In this scenario, the visual and functional flexibility of coder_parameter would both be dramatically improved.

Note that this is not an explicit feature request. Someone who is interested in tinkering with this can experiment and help decide whether or not it's a viable option.

@cdr-bot cdr-bot bot added the feature label Dec 19, 2023
@matifali
Copy link
Member

Indeed this would a a great UX improvement. I have a few suggestions/questions,

Allowing the selection of one parameter reveal or hide following parameters

How would this work with CLI?

I.E. Using a radio to allow multiple selection for a single parameter

A checkbox would work better here.

@BrunoQuaresma
Copy link
Collaborator

I like the idea, but @matifali raised a good question, how does it work for CLI users?

@stirby
Copy link
Collaborator Author

stirby commented Apr 22, 2024

How would this work with CLI?

I think we could pass parameter/value config as JSON through the CLI. This would support both multi-select and conditional/nested parameters as some customers have requested.

coder create --parameter '{"my parameter": ["foo", "bar"]}' 

The show/hide use case would just mean that parameter A is dependent on the config of parameter B, if the validation fails then we throw an error.

@kylecarbs kylecarbs changed the title coder_parameter lacks configurability (conditional parameters) Conditional parameters May 31, 2024
@stirby
Copy link
Collaborator Author

stirby commented May 31, 2024

Update: we're revisiting coder_parameter flexibility in Q3.

@stirby
Copy link
Collaborator Author

stirby commented Oct 16, 2024

Update again: We're rolling this into a larger "Magic Parameters" effort that will ship in Q1 2025.

@stirby stirby mentioned this issue Oct 25, 2024
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
roadmap https://coder.com/roadmap. Only humans may set this.
Projects
None yet
Development

No branches or pull requests

4 participants