forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract
save_xblock_to_user_clipboard
Python API (openedx…
…#35027) Previously, the logic for copying an XBlock's OLX to the clipboard was directly in a POST view handler. This commit extracts it into a Python API function. In addition to following architectural guidelines [1], this change will help me develop the Content Libraries Relaunch, as I need a way to locally test library content reference via copy-paste while the UX for it is still being developed. [1] https://docs.openedx.org/projects/openedx-proposals/en/latest/best-practices/oep-0049-django-app-patterns.html
- Loading branch information
1 parent
a11d7c0
commit 12f63dd
Showing
4 changed files
with
179 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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 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 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.