fix: show a notice when workspace sharing is disabled globally in organization settings (#22580)

This commit is contained in:
Kayla はな
2026-03-04 11:14:52 -07:00
committed by GitHub
parent fda181bb26
commit e35717bc19
12 changed files with 142 additions and 52 deletions
+13 -1
View File
@@ -4808,7 +4808,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.WorkspaceSharingSettings"
"$ref": "#/definitions/codersdk.UpdateWorkspaceSharingSettingsRequest"
}
}
}
@@ -20283,6 +20283,14 @@ const docTemplate = `{
}
}
},
"codersdk.UpdateWorkspaceSharingSettingsRequest": {
"type": "object",
"properties": {
"sharing_disabled": {
"type": "boolean"
}
}
},
"codersdk.UpdateWorkspaceTTLRequest": {
"type": "object",
"properties": {
@@ -22121,6 +22129,10 @@ const docTemplate = `{
"properties": {
"sharing_disabled": {
"type": "boolean"
},
"sharing_globally_disabled": {
"description": "SharingGloballyDisabled is true if sharing has been disabled for this\norganization because of a deployment-wide setting.",
"type": "boolean"
}
}
},
+13 -1
View File
@@ -4253,7 +4253,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/codersdk.WorkspaceSharingSettings"
"$ref": "#/definitions/codersdk.UpdateWorkspaceSharingSettingsRequest"
}
}
}
@@ -18601,6 +18601,14 @@
}
}
},
"codersdk.UpdateWorkspaceSharingSettingsRequest": {
"type": "object",
"properties": {
"sharing_disabled": {
"type": "boolean"
}
}
},
"codersdk.UpdateWorkspaceTTLRequest": {
"type": "object",
"properties": {
@@ -20337,6 +20345,10 @@
"properties": {
"sharing_disabled": {
"type": "boolean"
},
"sharing_globally_disabled": {
"description": "SharingGloballyDisabled is true if sharing has been disabled for this\norganization because of a deployment-wide setting.",
"type": "boolean"
}
}
},