-
Notifications
You must be signed in to change notification settings - Fork 5
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
New channel permissions helper #293
Conversation
This commit adds a new `channel-management` helper to Valkyrie which will always ensure permissions on new channels within the `defense` category are assigned to the same permission set as the channel category permissions. It then sends a message to the newly created channel, listing the permissions and access levels they have.
Also marking this one ready to review, if we want to get the permission mapper for #defense cat pushed before our next release. |
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.
This is pretty much good to go.
I will leave it up to you if you want to merge & then address in one of the following PRs, or if you want to address & then we merge.
- Removes list of permissions sent to channel - Changes defense to load from specific channel id. You must setup env `DEFENSE_CATEGORY_ID` to have it function correctly. - Merges into one function
@Shadowfiend Thanks for the review comments and have now fixed this up so it's ready to be merged. Just need to add env |
if (process.env.DEFENSE_CATEGORY_ID) { | ||
if (application) { |
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.
No need to nest, these can combine into one.
This has already been applied.
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.
Pushed a commit with the kube config updates. Let's do it.
Notes
This commit adds a new
channel-management
helper to Valkyrie which will always ensure permissions on new channels within thedefense
category are assigned to the same permission set as the base channel category permissions.It then sends a message to the newly created channel, listing the permissions and access levels they have for quick verification on channel permissions.
If the channel is created with different permissions than base category, it will be overwritten by the permissions on base category. However, permissions can also be altered after creation if needed manually.
Screenshot