-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[MM-22171] Move loadedPlugins
into redux-store
#5262
[MM-22171] Move loadedPlugins
into redux-store
#5262
Conversation
/update-branch |
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 for the PR, @Qovaros! This looks good to me.
/update-branch |
/update-branch |
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 for your contribution @Qovaros! 🎉 Going through the PR I realized that with this change (my proposal) we'll be introducing another set of plugin state, I hadn't considered that when I wrote the proposal for this ticket, it was an oversight on my part :(. However please see my comment below regarding rejigging a few things that'll help make for a simpler solution.
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.
Brilliant, looks great @Qovaros 🎉! Just one tiny request to rename the plugins
reducer to manifests
so we do store.getState().plugins.manifests[manifest.id]
instead, after that your changes are good to go :)
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.
Fantastic, thanks @Qovaros!
Hey @DHaussermann this is ready for QA. Will fill in the details in the jira. |
/update-branch |
@Qovaros or @ali-farooq0 I tested the majority of the plugins in the market place.
The only issue I found is that with Zoom - when disabled the icon disappears but the |
Thanks for the thorough QA @DHaussermann, can you confirm if same behaviour is observed in |
/update-branch |
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.
@ali-farooq0 the issue did not repro when I tested on my local server with master. When I returned to this PR server, I no longer see the issue. It seems like the autocomplete was maybe caching? Maybe the merge up from master you did changed something?
Regardless - The issue no longer repros on this branch. We're fine to merge this now.
Tested and passed.
Testing noted above.
Thanks @Qovaros for this improvement!
LGTM!
Test server destroyed |
Thanks @DHaussermann! Thanks @Qovaros for your contribution! 🎉 merging this now. |
This reverts commit 00d6a96.
) This reverts commit 00d6a96. Co-authored-by: mattermod <[email protected]>
…5262)" (mattermost#5488) This reverts commit 00d6a96. Co-authored-by: mattermod <[email protected]>
Summary
This PR removes
loadedPlugins
global variable, and switches to using theplugins
redux store inmattermost-webapp
.Ticket Link
Fixes: mattermost/mattermost#13928
JIRA: https://mattermost.atlassian.net/browse/MM-22171