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

Rework team creation constraints #5003

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Rework team creation constraints #5003

merged 3 commits into from
Jan 29, 2025

Conversation

zoldar
Copy link
Contributor

@zoldar zoldar commented Jan 22, 2025

Changes

This PR switches upsert used for creating team membership in Teams.get_or_create/1 to the newly introduced constraint which opens up the capability of user being a member in more than one team. The final step to follow will be removal of the one_team_per_user constraint. Only after this it will be possible to implement and test the rest of the logic relying on that constraint being loosened.

The change in question is done in 2910de3 while a1e97b5 is purely a refactor moving Auth.GracePeriod under Teams.GracePeriod and correcting phrasing of the docs strings which were out of date.

Depends on #5002

@zoldar zoldar changed the title Autocreated teams Rework team creation constraints Jan 22, 2025
@zoldar zoldar changed the base branch from master to team-memberships-is-autocreated January 22, 2025 11:50
@zoldar zoldar force-pushed the team-memberships-is-autocreated branch from 100dbc4 to 4a509dd Compare January 29, 2025 11:22
Base automatically changed from team-memberships-is-autocreated to master January 29, 2025 11:42
@zoldar zoldar force-pushed the autocreated-teams branch from 2910de3 to 8bbc650 Compare January 29, 2025 11:43
@zoldar zoldar added the preview label Jan 29, 2025
Copy link

Preview environment👷🏼‍♀️🏗️
PR-5003

@zoldar zoldar marked this pull request as ready for review January 29, 2025 11:48
@zoldar zoldar force-pushed the autocreated-teams branch from 42e38cf to b466339 Compare January 29, 2025 12:40
@zoldar zoldar added this pull request to the merge queue Jan 29, 2025
Merged via the queue into master with commit 339dd89 Jan 29, 2025
8 checks passed
@zoldar zoldar deleted the autocreated-teams branch January 29, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants