Skip to content
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

[Libraries] [Collections] [Backend] REST CRUD API for Collections in v2 Libraries #226

Closed
Tracked by #1084
bradenmacdonald opened this issue Jul 31, 2024 · 2 comments

Comments

@bradenmacdonald
Copy link
Contributor

bradenmacdonald commented Jul 31, 2024

  1. Define new CRUD REST API to be able to query/manipulate the instances of the newly created Collection Model ([Libraries] [Collections] [Backend] Collections model in Learning Core #225).
  2. These should be defined in edx-platform (in the content_libraries django app) to handle permission checks and interface with the Collection model defined in openedx_learning repo.
    • Similar to how the taxonomy views and apis are implemented.
    • For permissions, use the ContentLibrary associated with the Collection's LearningPackage to determine the user's permissions on the Collection. If the LearningPackage is not associated with a ContentLibrary, raise an error.
  3. We also need to emit events when collections are created/edited/updated, which will require adding new event & data types to https://github.com/openedx/openedx-events
@pomegranited
Copy link

@bradenmacdonald To clarify: we should use the ContentLibrary associated with the Collection's LearningPackage to determine the user's permissions on the Collection?

@bradenmacdonald
Copy link
Contributor Author

@pomegranited Yes, exactly. And if the LearningPackage is something other than a content library: throw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants