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

When ExperimentalPrimaryTeam is set then when a new user signsup with… #8236

Conversation

csduarte
Copy link
Contributor

@csduarte csduarte commented Feb 9, 2018

Summary

This change joins new users to the default team if there's a team defined in config ExperimentalPrimaryTeam. This config assumes that new users will be part of this primary team.

When config to have a ExperimentalPrimaryTeam was added this change was pushed back pushed back.
https://github.com/mattermost/mattermost-server/pull/8039/files
#7846

cc @esethna @lindalumitchell @dmeza

Copy link
Member

@hmhealey hmhealey left a comment

Choose a reason for hiding this comment

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

Would you be able to add some unit tests for this behaviour?

Also, this looks like this will create the user successfully, but just return an error if it's unable to join the team for whatever reason. Would it be better to print the error in that case and still return that the user was created successfully?

@hmhealey hmhealey self-assigned this Feb 12, 2018
@jasonblais
Copy link
Contributor

@dmeza Did you have any questions about the above? We'd be more than happy to help.

1 similar comment
@jasonblais
Copy link
Contributor

@dmeza Did you have any questions about the above? We'd be more than happy to help.

@hmhealey hmhealey removed their assignment Jul 27, 2018
@jasonblais
Copy link
Contributor

jasonblais commented Aug 6, 2018

Hey all,

Given we added a config setting for default teams, this change is no longer necessary. pr-mattermost-server-9068

#9068

You can now define a team to be both a default and primary team starting in v5.2.

The above PR I referenced was for default channels not default teams. So this PR is still valid.

@esethna
Copy link
Contributor

esethna commented Sep 17, 2018

Hi @dmeza. Just checking if there's anything we can help with to get this PR in?

@dmeza
Copy link
Contributor

dmeza commented Sep 18, 2018

Hi @esethna, last time we discussed with @jasonblais, this PR was going to be closed. I see that the comment is that it's still valid. You can take over the PR since it's something that was used as a test but it's not part of shift.

@esethna
Copy link
Contributor

esethna commented Sep 18, 2018

Okay thanks. Adding @wiersgallak as this is related to work her team is doing

@jasonblais
Copy link
Contributor

Will close for now given Shift only used it as a test. It can be resubmitted at a later time.

@jasonblais jasonblais closed this Nov 1, 2018
@dmeza dmeza deleted the RegisterUserToPrimaryTeamWhenSet branch December 7, 2018 18:20
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 developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants