Skip to content
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

Propagate block changes to all of the cluster nodes in plugin mode #1213

Merged
merged 3 commits into from
Sep 16, 2021

Conversation

mgdelacroix
Copy link
Contributor

Summary

This PR uses the plugin API to propagate the block changes to all the plugin nodes, making each node responsible of deciding if they need to distribute a given update to any of their subscribed websockets.

The implementation adds the sendWorkspaceMessage function with the intention of creating a baseline and add more functions if we need to direct messages to other entities in the future.

Fixes #1154

@mgdelacroix mgdelacroix added 2: Dev Review Requires review by a core committer 2: QA Review Requires review by a QA tester labels Sep 15, 2021
@mgdelacroix mgdelacroix force-pushed the fix-plugin-message-propagation-ha branch 5 times, most recently from b5dca61 to af95197 Compare September 15, 2021 15:22
@mgdelacroix mgdelacroix force-pushed the fix-plugin-message-propagation-ha branch from af95197 to ffaecf7 Compare September 15, 2021 15:33
@mgdelacroix mgdelacroix marked this pull request as ready for review September 15, 2021 15:37
@mgdelacroix mgdelacroix requested a review from a team as a code owner September 15, 2021 15:37
@mgdelacroix mgdelacroix removed the request for review from a team September 15, 2021 15:37
Copy link
Contributor

@wiggin77 wiggin77 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@jespino jespino left a comment

Choose a reason for hiding this comment

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

LGTM

@mgdelacroix mgdelacroix merged commit f794682 into main Sep 16, 2021
@mgdelacroix mgdelacroix deleted the fix-plugin-message-propagation-ha branch September 16, 2021 10:18
mgdelacroix added a commit that referenced this pull request Sep 17, 2021
mgdelacroix added a commit that referenced this pull request Sep 17, 2021
* Update focalboard to be compatible with mattermost v6 (#1020)

* Update focalboard to be compatible with mattermost v6

* Point to the new plugin API version

* Fix collectors linter issues

* Move all CI jobs to 1.16

* Add a plugin adapter to reuse MM websocket in plugin mode (#1079)

* Add a plugin adapter to reuse MM websocket in plugin mode

* Remove development replace

* Switch all go.mod files to use 1.16

* Fix linter issues

* Fix linter

* Update server version to contain the new hooks

* Add retry mechanism when opening WSClient in plugin mode (#1135)

* Add retry mechanism when opening WSClient in plugin mode

* Fix linter

* Add return when sending command

* Propagate block changes to all of the cluster nodes in plugin mode (#1213)

Co-authored-by: Jesús Espino <jespinog@gmail.com>

* Set mattermost-server dependency as the current v6 tip commit

Co-authored-by: Jesús Espino <jespinog@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer 2: QA Review Requires review by a QA tester
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Refresh required after every action in HA
3 participants