-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-27909: Add shared channel permission #6555
Conversation
We add the UI element to show the shared channel permission. It is gated by the toggling of the config setting EnableSharedChannels. https://mattermost.atlassian.net/browse/MM-27909
Gentle ping @mkraft and @wiersgallak |
And changed the right string
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.
LGTM 👍
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.
Hi @agnivade
I am testing this PR along with its dependent PRs and I am seeing the following issues.
- The Managed Shared Channels permission is only displayed for All Members and Sysadmins. Its not displayed for Channel Admins and Team Admins as shown in this screenshot.
-
Manage Shared Channel permission is not displayed in Team Override Schemes. It is expected to be displayed even in this screen.
-
Manage Shared Channel permission is displayed on an E10 instance as well. I believe Shared Channels is only a E20 feature and hence this permission should only be displayed on E20 instance.
Hi @srkgupta
|
Hi @agnivade, Regarding 3, we generally test all the dependent PRs together and comment on one of the PRs. In this case, this PR was tested along with the server PR mattermost/mattermost#15601 and it was found that the new permission is also displayed on E10 instance, which is wrong and should be fixed. |
From what I understand, a system scoped permission is for the entire system and not tied to a channel or a team. You will see other various system scoped permission behave in the same way. They don't appear for channel or team admins because it's not at that level. For more information you can follow the conversation that happened on mattermost/mattermost#15601. We agreed to change the scope from channel to system. On E20, we are still in the process of creating the basic scaffolding needed for this feature. So things may not be in the perfect order. If it's required to be done as part of this PR, then we can park this PR until that ticket is merged, and then I can incorporate the changes after that. |
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.
Thanks @agnivade. I have updated the ticket MM-27909 based on the issues 1 & 2 mentioned above. Regarding issue 3, as long as it is being tracked and will be handled in future PRs, it's fine. Tested the PR along with its dependent PRs and permission is showing up and working fine on System Console. Approving the PR.
* MM-27909: Add shared channel permission We add the UI element to show the shared channel permission. It is gated by the toggling of the config setting EnableSharedChannels. https://mattermost.atlassian.net/browse/MM-27909 * Fix i18n * Improve text * Fix config permission check And changed the right string * Fix snapshots * change to system scoped * Use new redux
We add the UI element to show the shared channel permission.
It is gated by the toggling of the config setting EnableSharedChannels.
For now, we just test with snapshots. Since it's not fully clear yet how the permissions and roles will look finally. Later we need a Cypress test to validate all of this. Ticket filed: https://mattermost.atlassian.net/browse/MM-29047
https://mattermost.atlassian.net/browse/MM-27909
Summary
Ticket Link
Related Pull Requests
Screenshots