You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor organization welcome message type definitions
Restructure the protobuf definitions for organization onboarding settings and welcome messages, including:
- Separate OnboardingSettings from OrganizationSettings
- Clarify field descriptions
- Add validation for featuredMemberResolvedAvatarUrl
- Update type references across multiple components
Tool: gitpod/catfood.gitpod.cloud
// This field **will not** be specified in server responses.
82
+
optionalboolupdate_recommended_repositories=3;
77
83
84
+
// welcome_message is the welcome message for the organization
85
+
optionalWelcomeMessagewelcome_message=4;
86
+
}
87
+
88
+
messageOrganizationSettings {
78
89
boolworkspace_sharing_disabled=1;
79
90
stringdefault_workspace_image=2;
80
91
repeatedstringallowed_workspace_classes=3;
@@ -83,9 +94,10 @@ message OrganizationSettings {
83
94
stringdefault_role=6;
84
95
TimeoutSettingstimeout_settings=7;
85
96
repeatedRoleRestrictionEntryrole_restrictions=8;
86
-
// max_parallel_running_workspaces is the maximum number of workspaces that a single user can run in parallel. 0 resets to the default, which depends on the org plan
97
+
// max_parallel_running_workspaces is the maximum number of workspaces that a
98
+
// single user can run in parallel. 0 resets to the default, which depends on
99
+
// the org plan
87
100
int32max_parallel_running_workspaces=9;
88
-
// this is nested under OrganizationSettings because of the differences between the request & response shapes (see `featured_member_resolved_avatar_url` and `update_recommended_repositories`)
89
101
OnboardingSettingsonboarding_settings=10;
90
102
boolannotate_git_commits=11;
91
103
}
@@ -166,28 +178,12 @@ message TimeoutSettings {
166
178
// inactivity is the duration of inactivity after which a workspace is stopped
167
179
optionalgoogle.protobuf.Durationinactivity=1;
168
180
169
-
// deny_user_timeout specifies whether applying custom timeouts is denied for organization members
181
+
// deny_user_timeout specifies whether applying custom timeouts is denied for
182
+
// organization members
170
183
optionalbooldeny_user_timeouts=2;
171
184
}
172
185
173
186
messageUpdateOrganizationSettingsRequest {
174
-
messageOnboardingSettings {
175
-
messageWelcomeMessage {
176
-
optionalboolenabled=1;
177
-
optionalstringmessage=2;
178
-
optionalstringfeatured_member_id=3;
179
-
}
180
-
181
-
optionalstringinternal_link=1;
182
-
183
-
// update_recommended_repositories specifies whether recommended_repositories should be updated
184
-
// this is necessary because proto 3 doesn't support optional repeated fields. Will not be specified in server responses.
185
-
optionalboolupdate_recommended_repositories=2;
186
-
repeatedstringrecommended_repositories=3;
187
-
188
-
optionalWelcomeMessagewelcome_message=4;
189
-
}
190
-
191
187
// organization_id is the ID of the organization to update the settings for
// update_role_restrictions specifies whether role_restrictions should be updated
224
+
// update_role_restrictions specifies whether role_restrictions should be
225
+
// updated
229
226
optionalboolupdate_role_restrictions=13;
230
227
231
-
// max_parallel_running_workspaces is the maximum number of workspaces that a single user can run in parallel. 0 resets to the default, which depends on the org plan
228
+
// max_parallel_running_workspaces is the maximum number of workspaces that a
229
+
// single user can run in parallel. 0 resets to the default, which depends on
230
+
// the org plan
232
231
optionalint32max_parallel_running_workspaces=15;
233
232
234
233
// onboarding_settings are the settings for the organization's onboarding
235
234
optionalOnboardingSettingsonboarding_settings=16;
236
235
237
-
// annotate_git_commits specifies whether to annotate git commits created in Gitpod workspaces with the gitpod host
236
+
// annotate_git_commits specifies whether to annotate git commits created in
0 commit comments