Skip to content

feat: mark coder_parameter as optional #107

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

Merged
merged 4 commits into from
Mar 6, 2023
Merged

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Mar 2, 2023

Related: coder/coder#6100

This PR adds a new computed property to coder_parameter, optional.

Analogically to Terraform variables - a parameter is considered to be required if it doesn't have a default property, or it's = null. An empty string is an acceptable value, and it means that the parameter is not required.

@mtojek mtojek requested a review from kylecarbs March 2, 2023 17:38
@mtojek mtojek self-assigned this Mar 2, 2023
@mtojek mtojek marked this pull request as ready for review March 2, 2023 17:43
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Should we instead flip this to be optional? I feel like we implicitly might want options required.

@mtojek mtojek changed the title feat: mark coder_parameter as required feat: mark coder_parameter as optional Mar 3, 2023
@mtojek mtojek requested review from kylecarbs March 3, 2023 13:37
@mtojek
Copy link
Member Author

mtojek commented Mar 3, 2023

Hey @kylecarbs, I flipped the property implementation to "optional". Feel free to re-review this changeset.

@mtojek mtojek merged commit 44988b0 into coder:main Mar 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants