Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It requires three other PRs, two of which have merged:

...

  • Copy content into the clipboard (content_staging), which will hold the file data and "normalized" name for the asset.

  • When pasting into a course from a library, create the assets in a subdirectory based on the UsageKey.

Longer Term Plans

As a long term thing, we want to serve static assets in a very different way from Learning Core, as outlined in this ADR. But that's out of scope for Sumac. Because we’re copying everything to contentstore anyway, Learning Core backed assets are never getting served directly to students (there’s actually an auth check to make sure people have read rights to the library in question).

Work to be picked up

The one case this PR still doesn't handle is if someone copies from a library into a course, and then copies that thing they just pasted into the course and pastes it again. (i.e. it doesn't know how to convert a path to a course asset in a subdirectory back into the abstract "normal" form to put on the clipboard). I should have this addressed soon.

...