Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedAug 20, 2024
edited
Loading

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 thecoderd provider, which can now set the max port share level during creation, without needing to make another request.

@ethanndicksonGraphite App
Copy link
MemberAuthor

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

Join@ethanndickson and the rest of your teammates onGraphiteGraphite

@alwaysmeticulousalwaysmeticulous
Copy link

alwaysmeticulousbot commentedAug 20, 2024
edited
Loading

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

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

@ethanndicksonethanndickson marked this pull request as ready for reviewAugust 20, 2024 12:16
@ethanndicksonethanndickson changed the titlefeat: enable setting max port share level during template creationfeat(api): enable setting max port share level during template creationAug 20, 2024
@ethanndicksonethanndickson changed the titlefeat(api): enable setting max port share level during template creationfeat(coderd): enable setting max port share level during template creationAug 20, 2024
@ethanndicksonethanndicksonforce-pushed the08-20-feat_enable_setting_max_port_share_level_during_template_creation branch fromc73e535 tofa16bf0CompareAugust 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
MemberAuthor

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.

@ethanndicksonethanndicksonforce-pushed the08-20-feat_enable_setting_max_port_share_level_during_template_creation branch fromfa16bf0 to9b5e512CompareAugust 20, 2024 12:28
@ethanndicksonethanndicksonforce-pushed the08-20-feat_enable_setting_max_port_share_level_during_template_creation branch from9b5e512 tob4ba88cCompareAugust 20, 2024 12:38
@ethanndicksonethanndickson merged commitcca4519 intomainAug 20, 2024
32 of 34 checks passed
@ethanndicksonethanndickson deleted the 08-20-feat_enable_setting_max_port_share_level_during_template_creation branchAugust 20, 2024 12:48
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 20, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@ethanndicksonethanndickson

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ethanndickson@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp