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] Collections model in Learning Core #225

Closed
Tracked by #1084
bradenmacdonald opened this issue Jul 31, 2024 · 1 comment · Fixed by openedx/openedx-learning#206

Comments

@bradenmacdonald
Copy link
Contributor

Define new Collection Model with the following fields in a new collections app in the openedx_learning repo:

  • id: models.AutoField(primary_key=True)
  • context: ForeignKey to the LearningPackage (which is a 1-to-1 with ContentLibrary) instance this collection belongs to
    • name
    • description
    • date_created
    • date_updated
    • enabled
    • allow_multiple
    • ... possibly other fields - see collections design in Figma

Create a python API for CRUD operations on these collection objects, and appropriate test cases.

@rpenido
Copy link

rpenido commented Aug 5, 2024

Hi @bradenmacdonald! CC @pomegranited

Do you think this should live in openedx-learning?
If this is the case, the context should be just a string field (with no validation) with the key to the library, as we don't have OpaqueKey or other entities from edx-platform here, right?
My bad! I just found the LearningPackage entity in openedx-learning.

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

Successfully merging a pull request may close this issue.

2 participants