Skip to content

Commit

Permalink
feat: Added the ability for enterprise customers to enable/disable ac…
Browse files Browse the repository at this point in the history
…ademies.
  • Loading branch information
saleem-latif committed Jan 30, 2024
1 parent 7e3ee47 commit 8ff83a5
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Change Log
Unreleased
----------

[4.11.0]
---------
* Added the ability for enterprise customers to enable/disable academies.

[4.10.11]
---------
* fix: add missing comma to catalog query fields list.
Expand Down
2 changes: 1 addition & 1 deletion enterprise/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Your project description goes here.
"""

__version__ = "4.10.11"
__version__ = "4.11.0"
2 changes: 1 addition & 1 deletion enterprise/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class EnterpriseCustomerAdmin(DjangoObjectActions, SimpleHistoryAdmin):
'enable_executive_education_2U_fulfillment',
'enable_career_engagement_network_on_learner_portal',
'career_engagement_network_message', 'enable_pathways', 'enable_programs',
'enable_demo_data_for_analytics_and_lpr'),
'enable_demo_data_for_analytics_and_lpr', 'enable_academies'),
'description': ('The following default settings should be the same for '
'the majority of enterprise customers, '
'and are either rarely used, unlikely to be sold, '
Expand Down
2 changes: 1 addition & 1 deletion enterprise/api/v1/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class Meta:
'enterprise_customer_catalogs', 'reply_to', 'enterprise_notification_banner', 'hide_labor_market_data',
'modified', 'enable_universal_link', 'enable_browse_and_request', 'admin_users',
'enable_career_engagement_network_on_learner_portal', 'career_engagement_network_message',
'enable_pathways', 'enable_programs', 'enable_demo_data_for_analytics_and_lpr',
'enable_pathways', 'enable_programs', 'enable_demo_data_for_analytics_and_lpr', 'enable_academies',
)

identity_providers = EnterpriseCustomerIdentityProviderSerializer(many=True, read_only=True)
Expand Down
23 changes: 23 additions & 0 deletions enterprise/migrations/0199_auto_20240130_0628.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.23 on 2024-01-30 06:28

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('enterprise', '0198_alter_enterprisecourseenrollment_options'),
]

operations = [
migrations.AddField(
model_name='enterprisecustomer',
name='enable_academies',
field=models.BooleanField(default=False, help_text='If checked, the learners will be able to see the academies on the learner portal dashboard.', verbose_name='Display academies screen'),
),
migrations.AddField(
model_name='historicalenterprisecustomer',
name='enable_academies',
field=models.BooleanField(default=False, help_text='If checked, the learners will be able to see the academies on the learner portal dashboard.', verbose_name='Display academies screen'),
),
]
8 changes: 8 additions & 0 deletions enterprise/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,14 @@ class Meta:
)
)

enable_academies = models.BooleanField(
verbose_name="Display academies screen",
default=False,
help_text=_(
"If checked, the learners will be able to see the academies on the learner portal dashboard."
)
)

enable_analytics_screen = models.BooleanField(
verbose_name="Display analytics page",
default=True,
Expand Down

0 comments on commit 8ff83a5

Please sign in to comment.