-
Notifications
You must be signed in to change notification settings - Fork 2
Ignore edx failures variable usage #3260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0a1edae
Default keep_failed_enrollments to feature flag in enrollments
cp-at-mit 7a5a66e
Default keep_failed_enrollments to feature flag
cp-at-mit a26e8fe
Use settings.FEATURES for IGNORE_EDX_FAILURES
cp-at-mit 6c8bdf5
Log and optionally ignore edX sync failures
cp-at-mit 38d583d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 7a1d82a
Import is_enabled and adjust feature-flag tests
cp-at-mit 1f66eca
Merge branch 'ignore-edx-failures-variable-usage' of https://github.c…
cp-at-mit 1fe76a2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 44e4db5
Fix tests
cp-at-mit e340841
fix tests
cp-at-mit de93314
Fix test
cp-at-mit 8997b2c
fix mock
cp-at-mit 0067a49
lint
cp-at-mit 255f3b6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 53a3289
lint
cp-at-mit 82590df
Merge branch 'ignore-edx-failures-variable-usage' of https://github.c…
cp-at-mit b0a04e8
lint
cp-at-mit 8fb7877
ruff
cp-at-mit 06f9947
Merge branch 'main' into ignore-edx-failures-variable-usage
cp-at-mit f73aab5
Fix enrollment
cp-at-mit f9bdf48
Suppress PLR0913 lint warning on test func
cp-at-mit 938c533
Merge branch 'main' into ignore-edx-failures-variable-usage
cp-at-mit 212260f
Merge branch 'main' into ignore-edx-failures-variable-usage
cp-at-mit e0b0feb
Fix merge
cp-at-mit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Inconsistent feature flag mechanisms are used. Enabling
SYNC_ON_DASHBOARD_LOADvia PostHog without settingIGNORE_EDX_FAILURESin Django settings will cause dashboard load failures if edX sync fails.Severity: HIGH
Suggested Fix
Unify the feature flag checks. Either check both flags using the same mechanism (e.g., both via PostHog or both via Django settings) or ensure the
IGNORE_EDX_FAILURESflag is also checked via PostHog alongsideSYNC_ON_DASHBOARD_LOAD. Additionally, add a test case to cover the scenario where sync is enabled, the ignore flag is disabled, and an error occurs.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.