diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 74b6247217..b30bd5eb5f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -15,6 +15,10 @@ Change Log Unreleased ---------- +[4.6.1] +------- +feat: Added the disable_subject_metadata_transmission flag to CornerstoneEnterpriseCustomerConfiguration. + [4.6.0] ------- feat: Added enable_source_demo_data_for_analytics_and_lpr field to EnterpriseCustomer. diff --git a/enterprise/__init__.py b/enterprise/__init__.py index c629ee4f9b..2364a6257c 100644 --- a/enterprise/__init__.py +++ b/enterprise/__init__.py @@ -2,4 +2,4 @@ Your project description goes here. """ -__version__ = "4.6.0" +__version__ = "4.6.1" diff --git a/integrated_channels/cornerstone/exporters/content_metadata.py b/integrated_channels/cornerstone/exporters/content_metadata.py index bf30865064..ce77308167 100644 --- a/integrated_channels/cornerstone/exporters/content_metadata.py +++ b/integrated_channels/cornerstone/exporters/content_metadata.py @@ -178,6 +178,8 @@ def transform_subjects(self, content_metadata_item): """ Return the transformed version of the course subject list or default value if no subject found. """ + if self.enterprise_configuration.disable_subject_metadata_transmission: + return None subjects = [] course_subjects = get_subjects_from_content_metadata(content_metadata_item) CornerstoneGlobalConfiguration = apps.get_model( diff --git a/integrated_channels/cornerstone/migrations/0030_auto_20231010_1654.py b/integrated_channels/cornerstone/migrations/0030_auto_20231010_1654.py new file mode 100644 index 0000000000..0a2d2d2e98 --- /dev/null +++ b/integrated_channels/cornerstone/migrations/0030_auto_20231010_1654.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.21 on 2023-10-10 16:54 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cornerstone', '0029_alter_historicalcornerstoneenterprisecustomerconfiguration_options'), + ] + + operations = [ + migrations.AddField( + model_name='cornerstoneenterprisecustomerconfiguration', + name='disable_subject_metadata_transmission', + field=models.BooleanField(default=False, help_text='If checked, subjects will not be sent to Cornerstone', verbose_name='Disable Subject Content Metadata Transmission'), + ), + migrations.AddField( + model_name='historicalcornerstoneenterprisecustomerconfiguration', + name='disable_subject_metadata_transmission', + field=models.BooleanField(default=False, help_text='If checked, subjects will not be sent to Cornerstone', verbose_name='Disable Subject Content Metadata Transmission'), + ), + ] diff --git a/integrated_channels/cornerstone/models.py b/integrated_channels/cornerstone/models.py index 99ae1897a7..88b0f24e93 100644 --- a/integrated_channels/cornerstone/models.py +++ b/integrated_channels/cornerstone/models.py @@ -118,6 +118,14 @@ class CornerstoneEnterpriseCustomerConfiguration(EnterpriseCustomerPluginConfigu ) ) + disable_subject_metadata_transmission = models.BooleanField( + default=False, + verbose_name="Disable Subject Content Metadata Transmission", + help_text=_( + "If checked, subjects will not be sent to Cornerstone" + ) + ) + history = HistoricalRecords() class Meta: