-
Notifications
You must be signed in to change notification settings - Fork 154
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
Exclude organization members feature #154
Conversation
This issue has been automatically labelled "stale" because it hasn't had recent activity. /cc @jasonblais @hanzei |
@marianunez / @ali-farooq0 friendly reminder to help review of this PR some time this coming week :) |
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.
Apologies for the delay @enolal826! Overall looks good. Some minor feedback below
Co-Authored-By: Maria A Nunez <[email protected]>
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 @enolal826! 🎉
@marianunez Details provided by enolal826 Thank you! |
@enolal826 when I try to pass in the There may be unrelated problem where there is not proper feedback when the subscription command is invalid. but, for now, can you help by providing a sample subscribe command where 1 or multiple members are excluded. |
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.
Great addition @enolal826 🎉! Just one minor concern around where we're parsing the SubscriptionFlags
, looks great otherwise.
Hey @enolal826 thanks for updating the help to include the flag. I'm still not seeing this work on my server. (The subscription not delivering before was because I tried to append values to the the flag which was invalid) When I use the flag I'm not seeing members being excluded. Can you please look over these steps and let me know if you see anything else I'm doing wrong?
|
@enolal826 do you mind updating the branch to resolve conflicts as well as answer @DHaussermann's comment above? Thanks! |
@aaronrothschild I added the |
I can update the README and @aaronrothschild could validate it if it's ok for him |
Yes, that would be great and helpful for me @enolal826 ! Happy to review, then can remove the "Docs Needed" label when this is all set. |
/update-branch |
/update-branch |
@enolal826 Do you want to include the doc changes in this PR or open a separate one? |
This issue has been automatically labelled "stale" because it hasn't had recent activity. /cc @jasonblais @hanzei |
Hi @enolal826! Wasn't sure if you and @aaronrothschild were planning to make the doc changes in this PR or separately. Looks like this is otherwise good to merge. Thanks for your contribution! :) |
@aaronrothschild Would you be fine merging the PR as it is and doing the doc changes in a different PR? |
@hanzei Yes, no problem. |
/update-branch |
Thanks for adding this valuable feature @enolal826 🕺 |
#192) * Revert "Update main.go (#154)" This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475. * Revert "[MM-33506] Use embed package to include plugin manifest (#145)" This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f. * Revert "Don't generate manifest.ts (#127)" This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e. * install-go-tools target, adopt gotestsum * bring back make apply + automatic versioning * Update build/manifest/main.go Co-authored-by: Michael Kochell <[email protected]> * suppress git describe error when no tags match * make version/release notes opt-in * fix whitespace in Makefile * document version management options --------- Co-authored-by: Michael Kochell <[email protected]>
* Make use of github.com/mattermost/mattermost/server/public * [MM-36] Update plugin with respect to phase 1 upgrades * [MM-36] Update makefile command for testcases * Sync with playbooks: install-go-tools, gotestsum, and dynamic versions (#192) * Revert "Update main.go (#154)" This reverts commit be4a281d0cc791d10e6e5ae917b325b2f054e475. * Revert "[MM-33506] Use embed package to include plugin manifest (#145)" This reverts commit ca9ee3c17c6920a636a33f378e17395afd6f329f. * Revert "Don't generate manifest.ts (#127)" This reverts commit 18d30b50bc7ba800c9f05bfd82970781db0aea3e. * install-go-tools target, adopt gotestsum * bring back make apply + automatic versioning * Update build/manifest/main.go Co-authored-by: Michael Kochell <[email protected]> * suppress git describe error when no tags match * make version/release notes opt-in * fix whitespace in Makefile * document version management options --------- Co-authored-by: Michael Kochell <[email protected]> * Fetch plugin logs from server (#193) Co-authored-by: Jesse Hallam <[email protected]> * [MM-36] Update plugin.json file --------- Co-authored-by: Ben Schumacher <[email protected]> Co-authored-by: Mattermost Build <[email protected]> Co-authored-by: Jesse Hallam <[email protected]> Co-authored-by: Michael Kochell <[email protected]>
Command: we iterate through every parameter, identifying if it's a "feature" or a "flag" (for this purpose, some helper functions have been included in "utils")
Subscription: a new struct for flags has been created.
Plugin: a new method isUserOrganizationMember has been added.
Webhook: a new method excludeConfigOrgMember has been included. It's responsible for fetching configuration and creating the GitHub client.
I have created two different methods so isUserOrganizationMember could be reused without any links to the purpose of this task.
Thanks!
Fixes #125