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

[PM-11345] Add SCIM to Teams Plan #4924

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Core/Billing/Models/StaticStore/Plans/TeamsPlan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public TeamsPlan(bool isAnnual)
Has2fa = true;
HasApi = true;
UsersGetPremium = true;
HasScim = true;

UpgradeSortOrder = 3;
DisplaySortOrder = 3;
Expand Down
10 changes: 10 additions & 0 deletions util/Migrator/DbScripts/2024-10-22_00_AddSCIMToTeamsPlan.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
SET DEADLOCK_PRIORITY HIGH;
UPDATE
[dbo].[Organization]
SET
[UseScim] = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Only updates about 5k records, but I would like to set it's deadlock priority because prod is busy on organization table:

SET DEADLOCK_PRIORITY HIGH;
UPDATE
[dbo].[Organization]
SET
[UseScim] = 1
WHERE
[PlanType] IN (
17, -- Teams (Monthly)
18 -- Teams (Annually)
);

WHERE
[PlanType] IN (
17, -- Teams (Monthly)
18 -- Teams (Annually)
);
Loading