Skip to content

chore(cli): rename build options to ephemeral parameters in cli #15030

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 18 commits into from
Oct 16, 2024

Conversation

defelmnq
Copy link
Contributor

@defelmnq defelmnq commented Oct 9, 2024

This PR aims to rename build-option to ephemeral-parameters based on #10488 conversation.

build-option has been renamed ephemeral-parameter and can be used to define a value for an ephemeral parameter in the template.

build-options has been renamed prompt-ephemeral-parameters and can be used to prompt the user to put values for the ephemeral parameters in the template.

@defelmnq defelmnq self-assigned this Oct 9, 2024
@defelmnq defelmnq requested a review from matifali October 10, 2024 12:56
ephemeral parameters to model specific behaviors in a Coder workspace, such as
reverting to a previous image, restoring from a volume snapshot, or building a
project without using cache.
Ephemeral parameters are introduced to users in order to model specific behaviors
Copy link
Contributor

Choose a reason for hiding this comment

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

@EdwardAngert would you mind weighing in on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, definitely up for some help here.

The main point @EdwardAngert is that I'd like to remove anything related to build_options. For the rest, really keen for some help but nothing has changed per itself in the logic.

@matifali matifali requested a review from EdwardAngert October 10, 2024 13:49
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Left a few suggestions, but otherwise looks good 👍

defelmnq and others added 2 commits October 13, 2024 22:44
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
@defelmnq
Copy link
Contributor Author

Thanks @mafredri - your suggestions improved the usage of it.

Just waiting for some feedback in the documentation, but all good for me otherwise.

@defelmnq defelmnq requested a review from mafredri October 13, 2024 20:46
@matifali matifali removed their request for review October 13, 2024 21:14
Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

@defelmnq Looks like CI is complaining about some missing changes.

@EdwardAngert
Copy link
Contributor

EdwardAngert commented Oct 14, 2024

incoming commit to try to fix some 404 errors and appease the CI

@defelmnq
Copy link
Contributor Author

Just fixed the CI here - logic and test side should be good - just waiting for a last review from @EdwardAngert as now the CI is happy and it will simplify changes.

@defelmnq defelmnq requested a review from EdwardAngert October 16, 2024 18:00
Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

LGTM, let's add a test to ensure the deprecated field still works.
Doesn't need to be exhaustive like the current tests, just one will suffice.

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks a lot @defelmnq

@defelmnq defelmnq merged commit 02f6203 into main Oct 16, 2024
27 checks passed
@defelmnq defelmnq deleted the chore/rename-build-option-to-ephemeral-param branch October 16, 2024 21:54
@github-actions github-actions bot locked and limited conversation to collaborators Oct 16, 2024
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.

5 participants