feat: add server flag to disable user custom quiet hours (#11124)

This commit is contained in:
Dean Sheather
2023-12-15 01:33:51 -08:00
committed by GitHub
parent a58e4febb9
commit 1e49190e12
22 changed files with 358 additions and 46 deletions

7
coderd/apidoc/docs.go generated
View File

@ -11353,6 +11353,9 @@ const docTemplate = `{
"codersdk.UserQuietHoursScheduleConfig": {
"type": "object",
"properties": {
"allow_user_custom": {
"type": "boolean"
},
"default_schedule": {
"type": "string"
}
@ -11377,6 +11380,10 @@ const docTemplate = `{
"description": "raw format from the cron expression, UTC if unspecified",
"type": "string"
},
"user_can_set": {
"description": "UserCanSet is true if the user is allowed to set their own quiet hours\nschedule. If false, the user cannot set a custom schedule and the default\nschedule will always be used.",
"type": "boolean"
},
"user_set": {
"description": "UserSet is true if the user has set their own quiet hours schedule. If\nfalse, the user is using the default schedule.",
"type": "boolean"