-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into hu/ent-8713
- Loading branch information
Showing
15 changed files
with
195 additions
and
43 deletions.
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
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
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
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
24 changes: 24 additions & 0 deletions
24
integrated_channels/blackboard/migrations/0020_auto_20240422_1709.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,24 @@ | ||
# Generated by Django 3.2.23 on 2024-04-22 17:09 | ||
|
||
from django.db import migrations | ||
import fernet_fields.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('blackboard', '0019_delete_historicalblackboardenterprisecustomerconfiguration'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='blackboardenterprisecustomerconfiguration', | ||
name='decrypted_client_id', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, default='', help_text='The API Client ID (encrypted at db level) provided to edX by the enterprise customer to be used to make API calls to Degreed on behalf of the customer.', max_length=255, verbose_name='API Client ID encrypted at db level'), | ||
), | ||
migrations.AddField( | ||
model_name='blackboardenterprisecustomerconfiguration', | ||
name='decrypted_client_secret', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, default='', help_text='The API Client Secret (encrypted at db level) provided to edX by the enterprise customer to be used to make API calls to Degreed on behalf of the customer.', max_length=255, verbose_name='API Client Secret encrypted at db level'), | ||
), | ||
] |
15 changes: 15 additions & 0 deletions
15
integrated_channels/blackboard/migrations/0021_auto_20240423_1057.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,15 @@ | ||
# Generated by Django 3.2.23 on 2024-04-23 10:57 | ||
|
||
from django.db import migrations | ||
from integrated_channels.blackboard.utils import populate_decrypted_fields_blackboard | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('blackboard', '0020_auto_20240422_1709'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(populate_decrypted_fields_blackboard, 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
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,17 @@ | ||
""" | ||
Utilities for Blackboard integrated channels. | ||
""" | ||
|
||
|
||
def populate_decrypted_fields_blackboard(apps, schema_editor=None): # pylint: disable=unused-argument | ||
""" | ||
Populates the encryption fields in Blackboard config with the data previously stored in database. | ||
""" | ||
BlackboardEnterpriseCustomerConfiguration = apps.get_model( | ||
'blackboard', 'BlackboardEnterpriseCustomerConfiguration' | ||
) | ||
|
||
for blackboard_enterprise_configuration in BlackboardEnterpriseCustomerConfiguration.objects.all(): | ||
blackboard_enterprise_configuration.decrypted_client_id = blackboard_enterprise_configuration.client_id | ||
blackboard_enterprise_configuration.decrypted_client_secret = blackboard_enterprise_configuration.client_secret | ||
blackboard_enterprise_configuration.save() |
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
Oops, something went wrong.