From 6ad773ab3d4d370e7e17b4972b7852751f2363a7 Mon Sep 17 00:00:00 2001 From: MueezKhan246 Date: Mon, 9 Sep 2024 20:58:05 +0500 Subject: [PATCH 1/2] refactor: making unencrypted credentials nullable so after removing refs tests can run --- .../migrations/0023_auto_20240909_1556.py | 23 +++++++++++++++++++ .../sap_success_factors/models.py | 6 +++-- 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 integrated_channels/sap_success_factors/migrations/0023_auto_20240909_1556.py diff --git a/integrated_channels/sap_success_factors/migrations/0023_auto_20240909_1556.py b/integrated_channels/sap_success_factors/migrations/0023_auto_20240909_1556.py new file mode 100644 index 000000000..042e01ef8 --- /dev/null +++ b/integrated_channels/sap_success_factors/migrations/0023_auto_20240909_1556.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.23 on 2024-09-09 15:56 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('sap_success_factors', '0022_auto_20240906_1349'), + ] + + operations = [ + migrations.AlterField( + model_name='sapsuccessfactorsenterprisecustomerconfiguration', + name='key', + field=models.CharField(blank=True, default='', help_text='OAuth client identifier.', max_length=255, null=True, verbose_name='Client ID'), + ), + migrations.AlterField( + model_name='sapsuccessfactorsenterprisecustomerconfiguration', + name='secret', + field=models.CharField(blank=True, default='', help_text='OAuth client secret.', max_length=255, null=True, verbose_name='Client Secret'), + ), + ] diff --git a/integrated_channels/sap_success_factors/models.py b/integrated_channels/sap_success_factors/models.py index aaa8ff365..002ee57ce 100644 --- a/integrated_channels/sap_success_factors/models.py +++ b/integrated_channels/sap_success_factors/models.py @@ -79,7 +79,8 @@ class SAPSuccessFactorsEnterpriseCustomerConfiguration(EnterpriseCustomerPluginC blank=True, default='', verbose_name="Client ID", - help_text=_("OAuth client identifier.") + help_text=_("OAuth client identifier."), + null=True ) decrypted_key = EncryptedCharField( @@ -142,7 +143,8 @@ def encrypted_key(self, value): blank=True, default='', verbose_name="Client Secret", - help_text=_("OAuth client secret.") + help_text=_("OAuth client secret."), + null=True ) decrypted_secret = EncryptedCharField( From 82cfbe612485faedd9217631369e59ae87191c0f Mon Sep 17 00:00:00 2001 From: MueezKhan246 Date: Mon, 9 Sep 2024 20:59:21 +0500 Subject: [PATCH 2/2] refactor: update build version --- CHANGELOG.rst | 4 ++++ enterprise/__init__.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index acd830242..276bf462b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,6 +17,10 @@ Unreleased ---------- * nothing unreleased +[4.25.5] +---------- +* refactor: making unencrypted credentials nullable so after removing refs tests can run + [4.25.4] ---------- * feat: replaced references from unencrypted to encrypted columns. diff --git a/enterprise/__init__.py b/enterprise/__init__.py index 05a40dcd8..2d8e12f09 100644 --- a/enterprise/__init__.py +++ b/enterprise/__init__.py @@ -2,4 +2,4 @@ Your project description goes here. """ -__version__ = "4.25.4" +__version__ = "4.25.5"