-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add marked_authorized flag to SSO config
chore: bump version to 4.8.6
- Loading branch information
1 parent
bae4c25
commit 97c9128
Showing
6 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
Your project description goes here. | ||
""" | ||
|
||
__version__ = "4.8.5" | ||
__version__ = "4.8.6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.2.23 on 2023-11-30 18:37 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('enterprise', '0194_auto_20231013_1359'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='enterprisecustomerssoconfiguration', | ||
name='marked_authorized', | ||
field=models.BooleanField(blank=True, default=False, help_text='Whether admin has indicated the service provider metadata was uploaded.', null=True), | ||
), | ||
migrations.AddField( | ||
model_name='historicalenterprisecustomerssoconfiguration', | ||
name='marked_authorized', | ||
field=models.BooleanField(blank=True, default=False, help_text='Whether admin has indicated the service provider metadata was uploaded.', null=True), | ||
), | ||
] |
29 changes: 29 additions & 0 deletions
29
enterprise/migrations/0196_backfill_sso_marked_authorized.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 3.2.23 on 2023-11-30 19:01 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def backfill_sso_marked_authorized(apps, app_schema): | ||
""" | ||
Sets all Enterprise Customer SSO Configuration records 'marked_authorized' to False, in anticipation | ||
of making it the default value | ||
""" | ||
EnterpriseCustomerSsoConfiguration = apps.get_model('enterprise', 'EnterpriseCustomerSsoConfiguration') | ||
queryset = EnterpriseCustomerSsoConfiguration.all_objects.all() | ||
for sso_config in queryset: | ||
sso_config.marked_authorized = False | ||
EnterpriseCustomerSsoConfiguration.all_objects.bulk_update(queryset, ['marked_authorized']) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('enterprise', '0195_auto_20231130_1837'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython( | ||
code=backfill_sso_marked_authorized, | ||
reverse_code=migrations.RunPython.noop, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 3.2.23 on 2023-11-30 22:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('enterprise', '0196_backfill_sso_marked_authorized'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='enterprisecustomerssoconfiguration', | ||
name='marked_authorized', | ||
field=models.BooleanField(default=False, help_text='Whether admin has indicated the service provider metadata was uploaded.'), | ||
), | ||
migrations.AlterField( | ||
model_name='historicalenterprisecustomerssoconfiguration', | ||
name='marked_authorized', | ||
field=models.BooleanField(default=False, help_text='Whether admin has indicated the service provider metadata was uploaded.'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters