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

Using new splited emojis and webhooks permissions #2339

Merged
merged 4 commits into from
Mar 7, 2019

Conversation

jespino
Copy link
Member

@jespino jespino commented Feb 5, 2019

Summary

Using new splited emojis and webhooks permissions

Ticket Link

MM-11101

Checklist

@jespino jespino changed the title Please make sure you've read the [pull request](http:https://docs.mattermost.com/developer/contribution-guide.html#preparing-a-pull-request) section of our [code contribution guidelines](http:https://docs.mattermost.com/developer/contribution-guide.html). Using new splited emojis and webhooks permissions Feb 5, 2019
@jespino jespino added 2: Dev Review Requires review by a core commiter 4: Reviews Complete All reviewers have approved the pull request Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) and removed 2: Dev Review Requires review by a core commiter 4: Reviews Complete All reviewers have approved the pull request labels Feb 5, 2019
@jespino
Copy link
Member Author

jespino commented Feb 6, 2019

The tests are failing because it needs the mattermost-redux PR merged.

Copy link
Contributor

@grundleborg grundleborg left a comment

Choose a reason for hiding this comment

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

Just one thing I think needs fixing.

@@ -875,6 +881,10 @@
"admin.permissions.permission.manage_team.name": "Manage team",
"admin.permissions.permission.manage_webhooks.description": "Create, edit, and delete incoming and outgoing webhooks.",
"admin.permissions.permission.manage_webhooks.name": "Manage Webhooks",
"admin.permissions.permission.manage_incoming_webhooks.description": "Create, edit, and delete incoming webhooks.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do the old translation strings also need to be removed from here, or will that get done automatically now?

Copy link
Member Author

Choose a reason for hiding this comment

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

Can be done automatically using the tool, but must be committed.

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.

👍 Just one question.

{roleName: 'team_user', permission: Permissions.MANAGE_SLASH_COMMANDS, shouldHave: false},
{roleName: 'system_user', permission: Permissions.MANAGE_OAUTH, shouldHave: false},
],
false: [
{roleName: 'team_user', permission: Permissions.MANAGE_WEBHOOKS, shouldHave: true},
{roleName: 'team_user', permission: Permissions.MANAGE_INCOMING_WEBHOOKS, shouldHave: true},
{roleName: 'team_user', permission: Permissions.MANAGE_OUTGOING_WEBHOOKS, shouldHave: true},
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah OK I see you updated the adapter here 👍

"admin.permissions.permission.delete_emojis.description": "Delete custom emoji.",
"admin.permissions.permission.delete_emojis.name": "Delete Custom Emoji",
"admin.permissions.permission.delete_others_emojis.description": "Delete others' custom emoji.",
"admin.permissions.permission.delete_others_emojis.name": "Delete Others' Custom Emoji",
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the descriptions if they simply echo the names or could they be left blank?

Copy link
Member Author

Choose a reason for hiding this comment

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

I would say they must be different string, no matter if they are equal, because in the future they can change, and they can change independently. From my perspective they are different text that are temporary equal because are related, but aren't the same text.

Copy link
Contributor

@grundleborg grundleborg left a comment

Choose a reason for hiding this comment

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

LGTM

@jespino jespino force-pushed the MM-11101 branch 3 times, most recently from 9c475ad to 136c905 Compare February 26, 2019 16:48
@grundleborg
Copy link
Contributor

@mkraft please could you re-review this when you have a moment? I'd like to get it merged sooner rather than later.

@grundleborg grundleborg added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Mar 6, 2019
@jespino jespino merged commit cc2d3b6 into mattermost:master Mar 7, 2019
@jespino jespino deleted the MM-11101 branch March 7, 2019 15:07
@lindalumitchell lindalumitchell added this to the v5.10.0 milestone Mar 8, 2019
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Done Required documentation has been written labels Mar 19, 2019
stevepartridge pushed a commit to stevepartridge/mattermost-webapp that referenced this pull request Mar 30, 2019
* Using new splited emojis and webhooks permissions

* Fixed review comments

* Removed unnecesary translations

* Fixing tests after redux is merged
@DHaussermann DHaussermann added the Tests/Done Release tests have been written label Apr 10, 2019
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/Done Required changelog entry has been written Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) Docs/Done Required documentation has been written Tests/Done Release tests have been written
Projects
None yet
6 participants