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
[MM-44056] Make Calls plugin's state on Cloud controllable by feature flag #20161
Conversation
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.
Nice! Just one suggestion below.
@@ -32,12 +32,16 @@ type FeatureFlags struct { | |||
PluginPlaybooks string `plugin_id:"playbooks"` | |||
PluginApps string `plugin_id:"com.mattermost.apps"` | |||
PluginFocalboard string `plugin_id:"focalboard"` | |||
PluginCalls string `plugin_id:"com.mattermost.calls"` |
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.
I /think/ most of these are now unused, but no objection to extending.
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, wasn't sure either but given there was a check that made use of those in installFeatureFlagPlugins
I opted to include it although it shouldn't have any impact on the PR's scope.
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 Claudio, looks great!
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
/e2e-test |
Successfully triggered e2e testing! |
@saturninoabril Could you suggest someone to have a quick look at this from a QA perspective? If possible, we are looking to merge this asap to get into tomorrow's Cloud release. Main things to check would be:
/cc @amyblais |
@angeloskyratzakos This landing on Community will likely mean we need to have the flag on in order for Calls to remain enabled. So it's about setting |
Claudio, I'll take a look. |
Amazing, thank you 🙌 |
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 @streamer45! Tested and passed.
/update-branch |
Test server destroyed |
1 similar comment
Test server destroyed |
/cherry-pick cloud |
Cherry pick is scheduled. |
… flag (mattermost#20161) * Make Calls plugin's state on Cloud controllable by feature flag * Prepackage Calls v0.4.9 (mattermost#20148) * Update app/plugin.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Update app/plugin_install.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Bump Calls version to latest Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com> (cherry picked from commit aee68c7)
… flag (#20161) (#20174) * Make Calls plugin's state on Cloud controllable by feature flag * Prepackage Calls v0.4.9 (#20148) * Update app/plugin.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Update app/plugin_install.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Bump Calls version to latest Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com> (cherry picked from commit aee68c7) Co-authored-by: Claudio Costa <cstcld91@gmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
… flag (#20161) * Make Calls plugin's state on Cloud controllable by feature flag * Prepackage Calls v0.4.9 (#20148) * Update app/plugin.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Update app/plugin_install.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Bump Calls version to latest Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
… flag (mattermost#20161) * Make Calls plugin's state on Cloud controllable by feature flag * Prepackage Calls v0.4.9 (mattermost#20148) * Update app/plugin.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Update app/plugin_install.go Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> * Bump Calls version to latest Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com> Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Summary
Fortunately it looks like Apps solved our problem already so I am following a similar approach.
CallsEnabled
feature flag is set to true and only in that case we allow the plugin to be started.None of this should impact on-prem as all the checks are guarded by the
IsCloud
util (leveragingMM_CLOUD_INSTALLATION_ID
).Since we are here, I also added the code to pre-package as it will make it easier to test this PR. Just bear in mind I may have to bump the plugin's version before merging to get the latest changes necessary for it to work properly on Cloud.
Ticket Link
https://mattermost.atlassian.net/browse/MM-44056
Release Note