Skip to content

Copy/Paste associated static assets #16

Closed

Description

@ormsbee
  • 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.

Activity

  1. bradenmacdonald commented on May 2, 2023

    @bradenmacdonald
    Contributor

    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.

  2. bradenmacdonald commented on May 29, 2023

    @bradenmacdonald
    Contributor

    Also, show this notification at the top of the Studio page (see Figma):

    Screenshot 2023-05-29 at 4 05 10 PM

    And this one for python_lib.zip :

    Screenshot 2023-05-29 at 4 04 32 PM

  3. moved this from Refined to In Progress in New Feature: Copy/Pasteon Jun 2, 2023
  4. moved this from In Progress to Done in New Feature: Copy/Pasteon Jun 15, 2023
  5. moved this from Done to In Progress in New Feature: Copy/Pasteon Jun 15, 2023
  6. moved this from In Progress to Done in New Feature: Copy/Pasteon Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions