Skip to content

Comments

Activate team on account activation only#85

Merged
jschaul merged 1 commit intodevelopfrom
feature/pending-teams
Oct 10, 2017
Merged

Activate team on account activation only#85
jschaul merged 1 commit intodevelopfrom
feature/pending-teams

Conversation

@jschaul
Copy link
Member

@jschaul jschaul commented Oct 6, 2017

Add Pending state to Teams, which is their initial state. Upon the first user account activation, an associated team also becomes active.

Copy link
Contributor

Choose a reason for hiding this comment

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

This could be shortened to: getBindingTeamId zusr = withBindingTeam zusr $ pure . json

Copy link
Contributor

Choose a reason for hiding this comment

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

How about:

for_ tid $ (`Intra.changeTeamStatus` Team.Active)

or

for_ tid $ flip Intra.changeTeamStatus Team.Active

Copy link
Contributor

Choose a reason for hiding this comment

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

How about using PendingActive to give a bit more info similarly to what we do with PendingDelete ?

Copy link
Contributor

@tiago-loureiro tiago-loureiro left a comment

Choose a reason for hiding this comment

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

Besides the small nitpicks, :shipit:

@jschaul jschaul force-pushed the feature/pending-teams branch from 78a36f9 to 748fb75 Compare October 9, 2017 12:27
@jschaul
Copy link
Member Author

jschaul commented Oct 9, 2017

Thanks for the review, I implemented your suggestions.

Add Pending state to Teams, which is their initial state. Upon the first
user account activation, teams also become active.
@jschaul jschaul force-pushed the feature/pending-teams branch from 748fb75 to b11cdf0 Compare October 9, 2017 13:02
@jschaul jschaul merged commit 3fa39a5 into develop Oct 10, 2017
@jschaul jschaul deleted the feature/pending-teams branch October 10, 2017 10:02
smatting pushed a commit that referenced this pull request Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants