You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This must be implemented in a way that is pluggable.
A bit of prior art from LabXchange work might be useful as a starting point, e.g. see the OLX REST API which provides a list of the static assets used by the given components/OLX.
Must be smart enough to detect when an asset already exists in the destination location (matching filename).
Should display in the Paste preview.
Edge cases:
If a linked asset in the Source and Destination courses have the same name and data, there is no need to copy the asset.
If a linked asset in the Source course has the same name as a different asset in the Destination course (identified by hash), we should copy over the asset but rename it to avoid overwriting.
If the python_lib.zip is not the same between the Source and Destination courses, a warning should be surfaced to the user.
We make no effort to copy python_lib.zip at this time.
For what it's worth, the xblock_serializer code that I made (and that is already the basis of the copy/paste feature) already has a pretty good implementation of listing the static assets used by a block, and retrieving them via API. We just need to store them in the "staged content" area and import them into the course on paste.
Activity
bradenmacdonald commentedon May 2, 2023
For what it's worth, the
xblock_serializercode that I made (and that is already the basis of the copy/paste feature) already has a pretty good implementation of listing the static assets used by a block, and retrieving them via API. We just need to store them in the "staged content" area and import them into the course on paste.bradenmacdonald commentedon May 29, 2023
Also, show this notification at the top of the Studio page (see Figma):
And this one for
python_lib.zip: