Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-34838] Remove Ancillary Permissions That Are Purposefully Being Remove #7959

Conversation

hahmadia
Copy link
Contributor

@hahmadia hahmadia commented Apr 20, 2021

Summary
If I have a section permission that gives me ancillary permissions, I cannot remove an ancillary permission individually via MMCTL anymore. This PR aims to resolve this issue.

For example.
I have SYSCONSOLE_XXXX_WRITE which gives me manage_team permission, if I try to remove manage_team, it will always keep being re-added.

Ticket Link
https://mattermost.atlassian.net/browse/MM-34838

Server Changes: mattermost/mattermost#17466

NONE

@hahmadia hahmadia requested a review from mkraft April 20, 2021 15:13
@amyblais amyblais added this to the v5.35 milestone Apr 20, 2021
@hahmadia
Copy link
Contributor Author

/update-branch

Copy link
Contributor

@mkraft mkraft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice to not have to open a separate PR for Redux! :)

@sbishel sbishel self-requested a review April 20, 2021 16:19
@sbishel sbishel added 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Apr 20, 2021
@sbishel sbishel requested a review from furqanmlk April 20, 2021 16:22
@hahmadia hahmadia removed the 2: Dev Review Requires review by a core commiter label Apr 20, 2021
@amyblais amyblais added the CherryPick/Approved Meant for the quality or patch release tracked in the milestone label Apr 20, 2021
@furqanmlk furqanmlk added the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Apr 20, 2021
Copy link
Contributor

@furqanmlk furqanmlk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@furqanmlk furqanmlk removed the Setup Cloud Test Server Setup a test server using Mattermost Cloud label Apr 20, 2021
@mm-cloud-bot
Copy link

Test server destroyed

Copy link
Contributor

@furqanmlk furqanmlk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hahmadia hahmadia added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Apr 21, 2021
@mm-cloud-bot
Copy link

@hahmadia: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

I understand the commands that are listed here

@mattermod
Copy link
Contributor

Cherry pick is scheduled.

@hahmadia hahmadia deleted the MM-34838-RemoveUnwantedAncillaryPermissions branch April 21, 2021 15:36
@mattermod
Copy link
Contributor

Error trying doing the automated Cherry picking. Please do this manually

+++ Updating remotes...
Fetching upstream
Failed to add the RSA host key for IP address '140.82.114.4' to the list of known hosts (/app/.ssh/known_hosts).
From github.com:mattermost/mattermost-webapp
   ac725eb2e..559e554b0  MM-33462_manifest     -> upstream/MM-33462_manifest
 * [new branch]          MM-34169_data-retention-cypress -> upstream/MM-34169_data-retention-cypress
 * [new branch]          MM-34437              -> upstream/MM-34437
 * [new branch]          MM-34460              -> upstream/MM-34460
   97fb51499..aa99c800b  MM-34503-new-option-for-cloud-trial -> upstream/MM-34503-new-option-for-cloud-trial
   ba42ce9f4..4c18b633d  MM-34758              -> upstream/MM-34758
   025e8435f..ffde35333  MM-34910              -> upstream/MM-34910
   0eed30586..ed7c391df  MM-34977-fix-upgrade-trial-button -> upstream/MM-34977-fix-upgrade-trial-button
   ce3a686e8..ccacddc96  cloud                 -> upstream/cloud
 * [new branch]          compass-icon-font-update-pr-3 -> upstream/compass-icon-font-update-pr-3
   9446bbf01..e75e3cdc9  fix-Zephyr-keys-and-polish-3 -> upstream/fix-Zephyr-keys-and-polish-3
   5a9f4cc08..21991f233  master                -> upstream/master
 * [new branch]          mm34134_emoji-updates -> upstream/mm34134_emoji-updates
Fetching origin
Failed to add the RSA host key for IP address '140.82.114.4' to the list of known hosts (/app/.ssh/known_hosts).
+++ Updating remotes done...
!!! 'upstream/release-5.35' not found. The second argument should be something like upstream/release-0.21.
    (In particular, it needs to be a valid, existing remote branch that I can 'git checkout'.)

+++ Returning you to the master branch and cleaning up.

@hahmadia
Copy link
Contributor Author

/cherry-pick cloud

@mattermod
Copy link
Contributor

Cherry pick is scheduled.

mattermost-build pushed a commit to mattermost-build/mattermost-webapp that referenced this pull request Apr 21, 2021
…emove (mattermost#7959)

* Get Ancillary Permissions in FrontEnd

* fix typo

* fix linting

* Update packages/mattermost-redux/src/client/client4.ts

Co-authored-by: Mattermod <[email protected]>
(cherry picked from commit 21991f2)
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Apr 21, 2021
@amyblais amyblais added CherryPick/Approved Meant for the quality or patch release tracked in the milestone and removed CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone labels Apr 21, 2021
@amyblais
Copy link
Member

/cherry-pick release-5.35

@mattermod
Copy link
Contributor

Cherry pick is scheduled.

mattermost-build pushed a commit to mattermost-build/mattermost-webapp that referenced this pull request Apr 22, 2021
…emove (mattermost#7959)

* Get Ancillary Permissions in FrontEnd

* fix typo

* fix linting

* Update packages/mattermost-redux/src/client/client4.ts

Co-authored-by: Mattermod <[email protected]>
(cherry picked from commit 21991f2)
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Apr 22, 2021
mattermod pushed a commit that referenced this pull request Apr 22, 2021
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Apr 22, 2021
prapti pushed a commit that referenced this pull request Apr 22, 2021
…emove (#7959)

* Get Ancillary Permissions in FrontEnd

* fix typo

* fix linting

* Update packages/mattermost-redux/src/client/client4.ts

Co-authored-by: Mattermod <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation release-note-none
Projects
None yet
7 participants