-
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 pull request #1872 from openedx/iahmad/ENT-7633
feat: Added enable_career_engagement_network_on_learner_portal field to EnterpriseCustomer
- Loading branch information
Showing
10 changed files
with
72 additions
and
3 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.2.0" | ||
__version__ = "4.3.0" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Generated by Django 3.2.21 on 2023-09-21 10:07 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('enterprise', '0184_auto_20230914_2057'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='enterprisecustomer', | ||
name='career_engagement_network_message', | ||
field=models.TextField(blank=True, help_text='Message text shown on the learner portal dashboard for career engagement network.'), | ||
), | ||
migrations.AddField( | ||
model_name='enterprisecustomer', | ||
name='enable_career_engagement_network_on_learner_portal', | ||
field=models.BooleanField(default=False, help_text='If checked, the learners will be able to see the link to CEN on the learner portal dashboard.', verbose_name='Allow navigation to career engagement network from learner portal dashboard'), | ||
), | ||
migrations.AddField( | ||
model_name='historicalenterprisecustomer', | ||
name='career_engagement_network_message', | ||
field=models.TextField(blank=True, help_text='Message text shown on the learner portal dashboard for career engagement network.'), | ||
), | ||
migrations.AddField( | ||
model_name='historicalenterprisecustomer', | ||
name='enable_career_engagement_network_on_learner_portal', | ||
field=models.BooleanField(default=False, help_text='If checked, the learners will be able to see the link to CEN on the learner portal dashboard.', verbose_name='Allow navigation to career engagement network from learner portal dashboard'), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1180,6 +1180,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'hide_course_original_price': False, | ||
'enable_analytics_screen': True, | ||
'enable_integrated_customer_learner_portal_search': True, | ||
'enable_career_engagement_network_on_learner_portal': False, | ||
'enable_portal_lms_configurations_screen': False, | ||
'sender_alias': 'Test Sender Alias', | ||
'identity_providers': [], | ||
|
@@ -1192,6 +1193,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'enable_browse_and_request': False, | ||
'admin_users': [], | ||
'enable_generation_of_api_credentials': False, | ||
'career_engagement_network_message': 'Test message', | ||
}], | ||
), | ||
( | ||
|
@@ -1237,6 +1239,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'enable_portal_subscription_management_screen': False, | ||
'hide_course_original_price': False, 'enable_analytics_screen': True, | ||
'enable_integrated_customer_learner_portal_search': True, | ||
'enable_career_engagement_network_on_learner_portal': False, | ||
'enable_portal_lms_configurations_screen': False, | ||
'sender_alias': 'Test Sender Alias', 'identity_providers': [], | ||
'enterprise_customer_catalogs': [], 'reply_to': '[email protected]', | ||
|
@@ -1245,6 +1248,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'enable_universal_link': False, 'enable_browse_and_request': False, | ||
'admin_users': [], | ||
'enable_generation_of_api_credentials': False, | ||
'career_engagement_network_message': 'Test message', | ||
}, | ||
'active': True, 'user_id': 0, 'user': None, | ||
'data_sharing_consent_records': [], 'groups': [], | ||
|
@@ -1313,6 +1317,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'hide_course_original_price': False, | ||
'enable_analytics_screen': True, | ||
'enable_integrated_customer_learner_portal_search': True, | ||
'enable_career_engagement_network_on_learner_portal': False, | ||
'enable_portal_lms_configurations_screen': False, | ||
'sender_alias': 'Test Sender Alias', | ||
'identity_providers': [ | ||
|
@@ -1330,6 +1335,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'enable_browse_and_request': False, | ||
'admin_users': [], | ||
'enable_generation_of_api_credentials': False, | ||
'career_engagement_network_message': 'Test message', | ||
}], | ||
), | ||
( | ||
|
@@ -1379,6 +1385,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'hide_course_original_price': False, | ||
'enable_analytics_screen': True, | ||
'enable_integrated_customer_learner_portal_search': True, | ||
'enable_career_engagement_network_on_learner_portal': False, | ||
'enable_portal_lms_configurations_screen': False, | ||
'sender_alias': 'Test Sender Alias', | ||
'identity_providers': [], | ||
|
@@ -1391,6 +1398,7 @@ class TestEnterpriseCustomerViewSet(BaseTestEnterpriseAPIViews): | |
'enable_browse_and_request': False, | ||
'admin_users': [], | ||
'enable_generation_of_api_credentials': False, | ||
'career_engagement_network_message': 'Test message', | ||
}], | ||
), | ||
( | ||
|
@@ -1611,6 +1619,7 @@ def test_enterprise_customer_with_access_to( | |
'hide_course_original_price': False, | ||
'enable_analytics_screen': False, | ||
'enable_integrated_customer_learner_portal_search': True, | ||
'enable_career_engagement_network_on_learner_portal': False, | ||
'enable_portal_lms_configurations_screen': False, | ||
'sender_alias': 'Test Sender Alias', | ||
'identity_providers': [], | ||
|
@@ -1623,6 +1632,7 @@ def test_enterprise_customer_with_access_to( | |
'enable_browse_and_request': False, | ||
'admin_users': [], | ||
'enable_generation_of_api_credentials': False, | ||
'career_engagement_network_message': 'Test message', | ||
} | ||
else: | ||
mock_empty_200_success_response = { | ||
|
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