[BD-21] Switch to edx-toggles classes and deprecate waffle override methods - #25417
Conversation
|
Thanks for the pull request, @regisb! I've created BLENDED-640 to keep track of it in Jira. More details are on the BD-21 project page. When this pull request is ready, tag your edX technical lead. |
0bebabc to
200ba98
Compare
7ce2969 to
2f03966
Compare
|
The remaining broken unit test looks flaky to me, as I can't reproduce the behaviour locally. |
|
This should now be ready to review cc @robrap |
80f1fc9 to
1c19226
Compare
robrap
left a comment
There was a problem hiding this comment.
For many of my comments, it may be ok to refactor, to add an appropriate comment, or to explain why you don't think either is appropriate. You'll see. :)
Thanks.
|
Thanks for the thorough review of this difficult PR @robrap I appreciate it :) I pushed additional changes to resolve some of your comments. Please mark them as resolved accordingly (or comment). |
91177fa to
902274b
Compare
49d6dba to
3a12cba
Compare
robrap
left a comment
There was a problem hiding this comment.
Thanks. Just some minor updates needed, as well as handling conflicts.
3a12cba to
536f57b
Compare
|
@robrap I rebased my PR to resolve conflicts and added just one commit with the proposed changes, to make it easier to review. |
536f57b to
e1551d4
Compare
robrap
left a comment
There was a problem hiding this comment.
Thanks. Let me know when this is squashed and ready to merge.
This is part of a removal of the many override methods of toggle flag/namespace classes. This allows us to remove imports of test modules from production code.
This allows us to get rid of waffle_utils' custom WaffleFlag method.
This allows us to get rid of the custom WaffleSwitch and WaffleSwitchNamespace classes from waffle_utils in favour of edx_toggles.toggles classes.
Those classes were ported to edx_toggles. The imports remain in waffle_utils.__init__ for backward compatibility.
These functions should from now on be imported from edx_toggles.toggles.testutils.
This is for backward compatibility.
e1551d4 to
c9c1136
Compare
|
This is squashed and ready to merge. |
|
Your PR has finished running tests. There were no failures. |
|
EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production. |
|
EdX Release Notice: This PR may have caused e2e tests to fail on Stage. If you're a member of the edX org, please visit #e2e-troubleshooting on Slack to help diagnose the cause of these failures. Otherwise, it is the reviewer's responsibility. E2E tests have failed. https://gocd.tools.edx.org/go/tab/pipeline/history/deploy_to_stage |
|
EdX Release Notice: This PR has been deployed to the production environment. |
This move is part of a migration from edx-platform's waffle_utils to edx-toggles.
This depends on an edx-toggles PR: openedx/edx-toggles#75Merged ✔️This dependsThis does not depend anymore on edx/completion PR: openedx/completion#118This is not yet ready for review.TODO:
migrate WafleSwitch.override methodrebase on top of master once https://github.com/edx/edx-platform/pull/25286 is merged