-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Refactor StudioEditableBlock's callbacks for editing & duplication #33715
Comments
Re: the rename: |
I would do a text search for the string I don't think DEPR or any other involved communication process is necessary here, since this was never a supported part of the public XBlock API. |
It's important to remember that our APIs have not been historically strong so while people aren't supposed to use features, they still might be because of a lack of other options. It may be worth making and announcing the DEPR anyway if it's not significant overhead. |
Maybe. To get edx-platform to a good state, I expect that we'll need to make many dozens of changes to things that aren't public APIs but might be in use by somebody. One DEPR is not significant overhead, but dozens of DEPRs would be. Perhaps batching the refactors together into big DEPRs could work, a la |
Given that you also suggest renaming them, we could create new supported functions with those names and add a deprecation warning to the old ones. Then people can use the new inheritable methods when fixing the deprecation warnings. Once there's a bunch of other DEPRs, they can all be removed at once in a singe big DEPR as suggested above. |
Also I can start working on implementing the base functions while deprecation is still in discussion |
@kdmccormick drafted the refactor here, please let me know if this looks like the approach you were looking for. |
@DanielVZ96 Cool, I'll take a look tomorrow and let you know. |
…uplication Solves openedx#33715 Instead of applying duplicated logic after getattr, that logic is incorporated into inheritable methods of the StudioEditable block. Risks: - Assumes all cms blocks that are duplicated inherit from StudioEditableBlock.
Make studio_post_duplicate, editor_saved, and post_editor_saved real inheritable methods on StudioEditableBlock, rather than some
getattr
hackery, as suggested here: https://github.com/openedx/edx-platform/pull/7482/files#r27728847Also, consider renaming:
The text was updated successfully, but these errors were encountered: