-
Notifications
You must be signed in to change notification settings - Fork 21
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
[BD-21] Get rid of deprecated waffle namespace classes #120
[BD-21] Get rid of deprecated waffle namespace classes #120
Conversation
Thanks for the pull request, @regisb! I've created BLENDED-653 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. |
d38dee1
to
7e009a1
Compare
This is ready for review @robrap. |
7e009a1
to
73d78b1
Compare
e8af9c3
to
3b0df65
Compare
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.
Reminder to update dependencies once it has been released. I will update the PR description as well.
The WaffleSwitchNamespace class is going to be deprecated soon. edx-platform needs this app to stop using the namespace class in order to upgrade to the latest edx-toggles release.
3b0df65
to
cdf334b
Compare
Is there any advantage to making this work with the |
Good question. It would make it easier to run CI on this PR, as we would only have to wait for the the release of edx-toggles==1.2.0. But we should not release this too early; otherwise, if people need to make changes to edx-completion, they would also need to upgrade edx-platform and the applications (if any) that make use of the deprecated |
WAFFLE_NAMESPACE = "completion" | ||
|
||
|
||
def waffle(): |
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.
Another option is leaving this, setting a deprecated
custom attribute, and making this v3.2.6 instead of v4.0.0 with no backward compatible changes. That way, if we missed anything where this was used outside of tests, we could catch it before its removal.
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.
If this breaks anything then the fix should be relatively straightforward. edx-platform should not be impacted, so we should only be concerned by other applications. I think this is a reasonable risk.
7b48b64
to
a694142
Compare
@robrap Can we merge this now that edx-toggles has been upgraded to 1.2.0 on edx-platform? |
This can merge after the minor changelog fix. |
This is possible by making use of the `__future__` module.
a694142
to
efcb3b8
Compare
@robrap done 👍 |
The WaffleSwitchNamespace class is going to be deprecated soon.
edx-platform needs this app to stop using the namespace class in order
to upgrade to the latest edx-toggles release.
JIRA: https://openedx.atlassian.net/wiki/spaces/COMM/pages/1596358943/BD-21+Toggles+Settings+Documentation
Reviewers:
Merge checklist:
Post merge:
finished.
Note that this will break unit tests in edx-platform.