-
Notifications
You must be signed in to change notification settings - Fork 81
add detail to site-wide template policy doc #426
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
✨ Coder.com for PR #426 deployed! It will be updated on every commit.
|
admin/templates.md
Outdated
- **append** - Workspaces can append items to the field, lists only (e.g | ||
configure.start steps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works for lists or mappings. So labels
for example is a mapping
admin/templates.md
Outdated
@@ -20,38 +20,45 @@ If you enable the use of workspace templates, a **template policy** allows you | |||
to control which fields users can set and which values can be used when they | |||
define their workspaces. | |||
|
|||
The following policies can be applied to fields: | |||
|
|||
- **read** - Workspaces cannot modify the field |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to say that omitted policy
is read
by default?
now matches "dev urls - access control" section
b1d4b5f
to
c1ab817
Compare
|
||
- `read` - **Default.** Workspaces cannot modify the field | ||
- `write` - Workspaces can overwrite the field | ||
- `append` - Workspaces can append lists (e.g., configure.start steps) or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the comma here intended? @khorne3 e.g,
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bpmct yup it is!
This PR documents the fields that can be applied to template policies, as well as the behavior of the template policy on custom workspaces and workspaces that have conflicting values.