feat: add search_default_sort_newest waffle flag (ENT-11384)#2638
Draft
macdiesel wants to merge 1 commit into
Draft
feat: add search_default_sort_newest waffle flag (ENT-11384)#2638macdiesel wants to merge 1 commit into
macdiesel wants to merge 1 commit into
Conversation
Adds the enterprise.search_default_sort_newest WaffleFlag, surfaced via enterprise_features, to gate the Learner Portal "newest courses first" search sort (eligibility gate / kill-switch for the Optimizely A/B experiment). Bumps version to 7.0.1 and updates the two exact-match enterprise_features test fixtures. ENT-11384 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
iloveagent57
approved these changes
Jun 16, 2026
Contributor
|
you appear to be quite far behind |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds the
enterprise.search_default_sort_newestwaffle flag, surfaced viaenterprise_features, to gate the Learner Portal "newest courses first" search sort. This is the eligibility gate / kill-switch for the Optimizely A/B experiment.SEARCH_DEFAULT_SORT_NEWESTWaffleFlag +search_default_sort_newest_enabled()helper + entry inenterprise_features()(enterprise/toggles.py).enterprise_featurestest fixtures (test_views.py,test_filters.py).Testing
The two affected tests pass in an isolated venv (pinned Django 5.2.12):
TestEnterpriseCustomerViewSet::test_enterprise_customer_with_access_to(15 passed) andTestEnterpriseLinkedUserFilterBackend::test_filter(4 passed).Related (rollout order)
ENT-11384.
🤖 Generated with Claude Code