-
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 remote-tracking branch 'origin/master' into asaeed/ENT-7871
- Loading branch information
Showing
10 changed files
with
222 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
Your project description goes here. | ||
""" | ||
|
||
__version__ = "4.7.3" | ||
__version__ = "4.7.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
44 changes: 44 additions & 0 deletions
44
integrated_channels/moodle/migrations/0028_auto_20230928_1530.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,44 @@ | ||
# Generated by Django 3.2.20 on 2023-09-28 15:30 | ||
|
||
from django.db import migrations | ||
import fernet_fields.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('moodle', '0027_alter_historicalmoodleenterprisecustomerconfiguration_options'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='historicalmoodleenterprisecustomerconfiguration', | ||
name='decrypted_password', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, help_text="The encrypted API user's password used to obtain new tokens. It will be encrypted when stored in the database.", max_length=255, null=True, verbose_name='Encrypted Webservice Password'), | ||
), | ||
migrations.AddField( | ||
model_name='historicalmoodleenterprisecustomerconfiguration', | ||
name='decrypted_token', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, help_text="The encrypted API user's token used to obtain new tokens. It will be encrypted when stored in the database.", max_length=255, null=True, verbose_name='Encrypted Webservice Token'), | ||
), | ||
migrations.AddField( | ||
model_name='historicalmoodleenterprisecustomerconfiguration', | ||
name='decrypted_username', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, help_text="The encrypted API user's username used to obtain new tokens. It will be encrypted when stored in the database.", max_length=255, null=True, verbose_name='Encrypted Webservice Username'), | ||
), | ||
migrations.AddField( | ||
model_name='moodleenterprisecustomerconfiguration', | ||
name='decrypted_password', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, help_text="The encrypted API user's password used to obtain new tokens. It will be encrypted when stored in the database.", max_length=255, null=True, verbose_name='Encrypted Webservice Password'), | ||
), | ||
migrations.AddField( | ||
model_name='moodleenterprisecustomerconfiguration', | ||
name='decrypted_token', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, help_text="The encrypted API user's token used to obtain new tokens. It will be encrypted when stored in the database.", max_length=255, null=True, verbose_name='Encrypted Webservice Token'), | ||
), | ||
migrations.AddField( | ||
model_name='moodleenterprisecustomerconfiguration', | ||
name='decrypted_username', | ||
field=fernet_fields.fields.EncryptedCharField(blank=True, help_text="The encrypted API user's username used to obtain new tokens. It will be encrypted when stored in the database.", max_length=255, null=True, verbose_name='Encrypted Webservice Username'), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
integrated_channels/moodle/migrations/0028_auto_20231116_1826.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,23 @@ | ||
# Generated by Django 3.2.20 on 2023-11-16 18:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('moodle', '0027_alter_historicalmoodleenterprisecustomerconfiguration_options'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='historicalmoodleenterprisecustomerconfiguration', | ||
name='enable_incomplete_progress_transmission', | ||
field=models.BooleanField(default=False, help_text='When set to True, the configured customer will receive learner data transmissions, for incomplete courses as well'), | ||
), | ||
migrations.AddField( | ||
model_name='moodleenterprisecustomerconfiguration', | ||
name='enable_incomplete_progress_transmission', | ||
field=models.BooleanField(default=False, help_text='When set to True, the configured customer will receive learner data transmissions, for incomplete courses as well'), | ||
), | ||
] |
27 changes: 27 additions & 0 deletions
27
integrated_channels/moodle/migrations/0029_auto_20231106_1233.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,27 @@ | ||
# Generated by Django 3.2.20 on 2023-11-06 12:33 | ||
|
||
from django.db import migrations | ||
|
||
|
||
def populate_decrypted_fields(apps, schema_editor): | ||
""" | ||
Populates the encryption fields with the data previously stored in database. | ||
""" | ||
MoodleEnterpriseCustomerConfiguration = apps.get_model('moodle', 'MoodleEnterpriseCustomerConfiguration') | ||
|
||
for moodle_enterprise_configuration in MoodleEnterpriseCustomerConfiguration.objects.all(): | ||
moodle_enterprise_configuration.decrypted_username = moodle_enterprise_configuration.username | ||
moodle_enterprise_configuration.decrypted_password = moodle_enterprise_configuration.password | ||
moodle_enterprise_configuration.decrypted_token = moodle_enterprise_configuration.token | ||
moodle_enterprise_configuration.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('moodle', '0028_auto_20230928_1530'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(populate_decrypted_fields, reverse_code=migrations.RunPython.noop), | ||
] |
14 changes: 14 additions & 0 deletions
14
..._channels/moodle/migrations/0030_merge_0028_auto_20231116_1826_0029_auto_20231106_1233.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,14 @@ | ||
# Generated by Django 3.2.20 on 2023-11-22 08:24 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('moodle', '0028_auto_20231116_1826'), | ||
('moodle', '0029_auto_20231106_1233'), | ||
] | ||
|
||
operations = [ | ||
] |
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