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

Skip to content

feat(coderd): enable setting max port share level during template creation #14366

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

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Aug 20, 2024

Previously, the max port share level could only be set during template metadata updates. It can now be set during creation, but only for enterprise deployments.

This change is most useful for the coderd provider, which can now set the max port share level during creation, without needing to make another request.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ethanndickson and the rest of your teammates on Graphite Graphite

Copy link

alwaysmeticulous bot commented Aug 20, 2024

✅ Meticulous spotted zero visual differences across 1408 screens tested: view results.

Expected differences? Click here. Last updated for commit b4ba88c. This comment will update as new commits are pushed.

@ethanndickson ethanndickson marked this pull request as ready for review August 20, 2024 12:16
@ethanndickson ethanndickson changed the title feat: enable setting max port share level during template creation feat(api): enable setting max port share level during template creation Aug 20, 2024
@ethanndickson ethanndickson changed the title feat(api): enable setting max port share level during template creation feat(coderd): enable setting max port share level during template creation Aug 20, 2024
@ethanndickson ethanndickson force-pushed the 08-20-feat_enable_setting_max_port_share_level_during_template_creation branch from c73e535 to fa16bf0 Compare August 20, 2024 12:24
@@ -329,6 +331,14 @@ func (api *API) postTemplateByOrganization(rw http.ResponseWriter, r *http.Reque
validErrs = append(validErrs, codersdk.ValidationError{Field: "autostart_requirement.days_of_week", Detail: err.Error()})
}
}
if createTemplate.MaxPortShareLevel != nil {
err = portSharer.ValidateTemplateMaxLevel(*createTemplate.MaxPortShareLevel)
Copy link
Member Author

Choose a reason for hiding this comment

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

Of note is that this will always error for AGPL deployments.

@ethanndickson ethanndickson force-pushed the 08-20-feat_enable_setting_max_port_share_level_during_template_creation branch from fa16bf0 to 9b5e512 Compare August 20, 2024 12:28
@ethanndickson ethanndickson force-pushed the 08-20-feat_enable_setting_max_port_share_level_during_template_creation branch from 9b5e512 to b4ba88c Compare August 20, 2024 12:38
@ethanndickson ethanndickson merged commit cca4519 into main Aug 20, 2024
32 of 34 checks passed
@ethanndickson ethanndickson deleted the 08-20-feat_enable_setting_max_port_share_level_during_template_creation branch August 20, 2024 12:48
@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 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.

2 participants