Comments (6)
Is there any update on this issue?
from mattermost-plugin-welcomebot.
Do you need any additional information about this issue from my side? Thanks for letting me know!
from mattermost-plugin-welcomebot.
HI @christianhueserhzdr, thank you for filing this issue. I'm thinking we can solve this in the welcomebot plugin, by debouncing the operations of adding the user to multiple channels.
We currently do not do any "waiting" in between adding the user to different channels. If we add some wait period (~3seconds) I think that would be enough to avoid this issue. What are your thoughts on this?
Here are the two places we are doing this operation in a loop:
mattermost-plugin-welcomebot/server/welcomebot.go
Lines 201 to 203 in 502eb34
mattermost-plugin-welcomebot/server/welcomebot.go
Lines 114 to 116 in 502eb34
from mattermost-plugin-welcomebot.
@raghavaggarwal2308 For context, there is a feature called "Channel Actions" in the playbooks plugin https://github.com/mattermost/mattermost-plugin-playbooks, that allows an admin to configure the channel to make it so whenever a new user joins the channel, they will have that channel added to a specific channel category.
It seems there is a race condition happening with the welcomebot and playbooks plugins, where the welcomebot plugin is adding users to the channels too quickly, so the "channel category add" process can end up creating new categories instead of using existing ones, which results in duplicate channel categories. If we slow down the welcomebot's channel member modifications to avoid this race condition, I think the issue will be avoided.
from mattermost-plugin-welcomebot.
Related Issues (20)
- [Request] Support adding to channels based on groups, not just teams HOT 2
- Neither the preview comand nor welcome message works if team name has a space in it HOT 4
- v1 HOT 1
- Implement plugin settings in admin console HOT 11
- Add example usage of Include Guest to read me HOT 2
- config.json content erased and no message saved HOT 2
- Do not write private messages HOT 1
- mmomni.yml vs config.json
- error occurred while processing greeting for team server: failed to query team server: GetTeamByName: Unable to find the existing team HOT 1
- Welcome bot will not let me add a message to private channels HOT 4
- Ignore Bot Accounts
- Cross-plugin task: Enable the CircleCI "test" job in each plugin repo that has a webapp plugin
- Action integration error HOT 3
- getting the error while running the *make* Command for welcome-bot HOT 10
- Action button faulty HOT 3
- Restricted Direct Message Setting in Server Breaks WelcomeBot
- Welcome channel message visibil for all channel members? HOT 2
- Can't use {{.UserDisplayName}} in channel welcome message HOT 2
- Error submitting welcomebot form: "We could not decode the action" HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-plugin-welcomebot.