Skip to content

feat: Removing the feature flag able to learner and admin tab#2623

Open
chethan2106 wants to merge 2 commits into
openedx:masterfrom
chethan2106:chethan/ENT-11269
Open

feat: Removing the feature flag able to learner and admin tab#2623
chethan2106 wants to merge 2 commits into
openedx:masterfrom
chethan2106:chethan/ENT-11269

Conversation

@chethan2106

Copy link
Copy Markdown

Description:

This PR removes the enterprise_invite_admins_enabled feature flag and enables the Learners tab and Admin tab functionality for all customers by default. The goal of this task is to:

  1. Remove all conditional rendering based on the enterprise_invite_admins_enabled feature flag.
  2. Remove feature flag references from Redux state and component props.
  3. Clean up unused imports and related dead code.
  4. Update and maintain unit tests to align with the new default behavior.
  5. Ensure all customers can access the Learners tab and Admin tab along with their existing functionalities.

Jira:

ENT-11269


Merge checklist:

  • Removed all conditional rendering based on the enterprise_invite_admins_enabled feature flag.
  • Removed feature flag usage from Redux and component props.
  • Cleaned up unused imports and obsolete code paths.
  • Verified Learners tab and Admin tab functionality is visible for all customers.
  • Updated unit tests and ensured all tests are passing.

TESTING

  • Unit test cases were updated and executed successfully for the related code changes.
  • Verified that:
    • Learners tab is visible without feature flag dependency.
    • Admin tab and its functionalities are accessible for all customers.
    • No feature flag checks remain in the codebase.
  • All existing and updated unit tests are passing successfully.
image image

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Need to check CI

@marlonkeating marlonkeating self-assigned this May 26, 2026
@codecov

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.05%. Comparing base (68e111c) to head (a0e0f64).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2623      +/-   ##
==========================================
- Coverage   86.05%   86.05%   -0.01%     
==========================================
  Files         251      251              
  Lines       16721    16718       -3     
  Branches     1658     1658              
==========================================
- Hits        14390    14387       -3     
  Misses       1997     1997              
  Partials      334      334              
Flag Coverage Δ
unittests 86.05% <ø> (-0.01%) ⬇️

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.

Comment thread enterprise/toggles.py

def enterprise_ai_pathways_operator_enabled():
"""
Returns whether the invite admins feature flag is enabled.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: This comment was an erroneous copy-paste from enterprise_invite_admins_enabled, we might as well correct it now.

Suggested change
Returns whether the invite admins feature flag is enabled.
Returns whether the AI pathways operator feature flag is enabled.

enterprise_admin_onboarding_enabled,
enterprise_edit_highlights_enabled,
enterprise_invite_admins_enabled,
_removed_feature_placeholder,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we need to keep this unused argument in the tests?

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