-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
force-pushed
the
fix-plugin-message-propagation-ha
branch
5 times, most recently
from
September 15, 2021 15:22
b5dca61
to
af95197
Compare
mgdelacroix
force-pushed
the
fix-plugin-message-propagation-ha
branch
from
September 15, 2021 15:33
af95197
to
ffaecf7
Compare
wiggin77
approved these changes
Sep 15, 2021
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.
LGTM 👍
jespino
approved these changes
Sep 16, 2021
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.
LGTM
mgdelacroix
added a commit
that referenced
this pull request
Sep 17, 2021
…1213) Co-authored-by: Jesús Espino <jespinog@gmail.com>
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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