-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(scopes): Add Distribution permission UI for integration tokens #102298
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
base: no/add-project-distribution-permission
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ export type Permissions = { | |
| Release: PermissionValue; | ||
| Team: PermissionValue; | ||
| Alerts?: PermissionValue; | ||
| Distribution?: PermissionValue; | ||
| }; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How come only |
||
|
|
||
| export type PermissionResource = keyof Permissions; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,6 +107,7 @@ export default function ApiNewToken() { | |
| setPermissions(p); | ||
| setPreview(getPreview()); | ||
| }} | ||
| hiddenPermissions={['Distribution']} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure if this is a good idea or if there is a better way of doing this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One alternative would be to change this component to take I think doing it positively (e.g. show acd) rather than negatively (e.g. show everything except b) is a bit more of a clear API. |
||
| /> | ||
| </PanelBody> | ||
| <TextareaField | ||
|
|
||
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.
nit: Maybe:
"Pre-release app distribution for trusted testers."
or something along those lines.