Skip to content

feat: enable academies by default for all enterprise customers with search (ENT-11220)#2594

Merged
iloveagent57 merged 3 commits intoopenedx:masterfrom
sjasti-sonata-svg:sjasti/ENT-11220-academies-default-enabled
Apr 14, 2026
Merged

feat: enable academies by default for all enterprise customers with search (ENT-11220)#2594
iloveagent57 merged 3 commits intoopenedx:masterfrom
sjasti-sonata-svg:sjasti/ENT-11220-academies-default-enabled

Conversation

@sjasti-sonata-svg
Copy link
Copy Markdown
Contributor

@sjasti-sonata-svg sjasti-sonata-svg commented Apr 10, 2026

Context

Currently, Academies is only available to two customers (2U and Siemens). Moving forward, Academies should be a default for all Teams and Enterprise Subscription customers that have search enabled.

What Changed

1. Model default changed (enterprise/models.py)

Changed enable_academies default from False to True so that all new enterprise customers will have academies enabled automatically.

2. Data migration (enterprise/migrations/0244_enable_academies_for_existing_customers.py)

Enables academies for all existing enterprise customers that have enable_integrated_customer_learner_portal_search=True. This ensures existing customers with search enabled also get academies turned on, not just new ones.

Ticket

https://2u-internal.atlassian.net/browse/ENT-11220

Test plan

  • Verify new enterprise customers are created with enable_academies=True
  • Verify existing customers with enable_integrated_customer_learner_portal_search=True get enable_academies=True after migration
  • Verify existing customers without search enabled are not affected
  • Verify academies section appears on learner portal for customers with search enabled
  • Verify academies section does not appear when no academies exist in the catalog
image image

Postman Testing
image

image

@sjasti-sonata-svg sjasti-sonata-svg force-pushed the sjasti/ENT-11220-academies-default-enabled branch from e0604d3 to 619d89e Compare April 10, 2026 10:23
@sjasti-sonata-svg sjasti-sonata-svg changed the title feat: enable academies by default for all enterprise customers with s… feat: enable academies by default for all enterprise customers with search (ENT-11220) Apr 10, 2026
@sjasti-sonata-svg sjasti-sonata-svg force-pushed the sjasti/ENT-11220-academies-default-enabled branch from 619d89e to a4f323a Compare April 10, 2026 11:03
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.91%. Comparing base (35a295f) to head (1e4466b).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2594   +/-   ##
=======================================
  Coverage   85.91%   85.91%           
=======================================
  Files         250      250           
  Lines       16604    16604           
  Branches     1639     1639           
=======================================
  Hits        14266    14266           
  Misses       2001     2001           
  Partials      337      337           
Flag Coverage Δ
unittests 85.91% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@rgopalrao-sonata-png rgopalrao-sonata-png left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Migration changes are fine

@iloveagent57 iloveagent57 merged commit 7704577 into openedx:master Apr 14, 2026
11 checks passed
sjasti-sonata-svg added a commit to sjasti-sonata-svg/edx-enterprise that referenced this pull request Apr 15, 2026
…h flag (ENT-11220)

Follow-up to openedx#2594. Migration 0244 only enabled academies for customers
with enable_integrated_customer_learner_portal_search=True. This adds a
data migration that enables academies for ALL existing customers so
every row matches the new model-level default.
sjasti-sonata-svg added a commit to sjasti-sonata-svg/edx-enterprise that referenced this pull request Apr 15, 2026
…220)

Follow-up to openedx#2594. The model default for enable_academies was changed
from False to True in that PR, but no corresponding migration was
generated. This adds the AlterField migration that Django's
makemigrations produces for that change.
sjasti-sonata-svg added a commit to sjasti-sonata-svg/edx-enterprise that referenced this pull request Apr 15, 2026
…220)

Follow-up to openedx#2594. The model default for enable_academies was changed
from False to True in that PR, but no corresponding migration was
generated. This adds the AlterField migration that Django's
makemigrations produces for that change.
iloveagent57 pushed a commit that referenced this pull request Apr 15, 2026
…220)

Follow-up to #2594. The model default for enable_academies was changed
from False to True in that PR, but no corresponding migration was
generated. This adds the AlterField migration that Django's
makemigrations produces for that change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants