Skip to content

feat(coder): Add PATCH /templateversions/:templateversion endpoint #6698

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 12 commits into from
Mar 23, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma commented Mar 21, 2023

Before adding tests, I would like to confirm I'm doing the right thing.

related to #6124

@BrunoQuaresma BrunoQuaresma self-assigned this Mar 21, 2023
Copy link
Member

@ammario ammario left a comment

Choose a reason for hiding this comment

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

Just minor comments.

@@ -76,6 +76,10 @@ type TemplateVersionVariable struct {
Sensitive bool `json:"sensitive"`
}

type PatchTemplateVersionRequest struct {
Copy link
Member

Choose a reason for hiding this comment

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

I think that I asked this question on slack, but it was missed.

Why in the first place we need to modify the template name? Why using the randomly generated one is bad?

Copy link
Collaborator Author

@BrunoQuaresma BrunoQuaresma Mar 22, 2023

Choose a reason for hiding this comment

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

I think being able to add a custom name for the template version is way easier to identify and find it after IMO.

Copy link
Member

Choose a reason for hiding this comment

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

Not sure if we need this feature considering the fact that everywhere we keep using the randomly generated. @bpmct what do you think?

@mtojek
Copy link
Member

mtojek commented Mar 22, 2023

CI also complains about some unit tests.

@mtojek
Copy link
Member

mtojek commented Mar 22, 2023

As agreed with @BrunoQuaresma, I will take it over to complete.

@mtojek mtojek self-assigned this Mar 22, 2023
@mtojek mtojek marked this pull request as draft March 22, 2023 14:16
@mtojek mtojek marked this pull request as ready for review March 22, 2023 15:43
@mtojek
Copy link
Member

mtojek commented Mar 22, 2023

@BrunoQuaresma I'm done with improvements. Could you please take a look and 👍 or 👎 ?

@BrunoQuaresma BrunoQuaresma requested a review from ammario March 23, 2023 10:39
@ammario
Copy link
Member

ammario commented Mar 23, 2023

if it's good by @mtojek it's good by me — i don't have the bandwidth to review this morning

@ammario ammario removed their request for review March 23, 2023 15:34
@BrunoQuaresma BrunoQuaresma merged commit 8857971 into main Mar 23, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/patch-template-version-name branch March 23, 2023 16:26
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 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.

3 participants