GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ESoCC: Create CommunityLibrarySubmission model · Issue #5145 · learningequality/studio

ESoCC: Create CommunityLibrarySubmission model #5145

New issue
Copy link
New issue
Copy link
Closed
Task
#5156
Closed
ESoCC: Create CommunityLibrarySubmission model#5145
Task
#5156
Copy link
Assignees
Jakoma02
Labels
P0 - criticalPriority: Release blocker or regressioncommunity-contribution-in-progress
Milestone
Studio: Easy Sharing of Community Channels

Description

@AlexVelezLl
AlexVelezLl
opened on Jun 30, 2025
Issue body actions

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Let's start with the Easy Sharing of Community Library with one of its most basic blocks: the data model for the "Community Library Submission" entity.

This entity will encapsulate all the information related to a single request for a channel to be included in our Community Library.

Channels in the Community Library will have special metadata, such as target countries and the subjects it contains. This metadata, once approved, will be applied to the Community Library Channel.

Technical requirements

We will need to create a new Django model in contentcuration/models.py that will include the following fields:

  • Description: A detailed explanation of the reason for submitting the channel to the Community Library.
  • Channel: A foreign key to the Channel model, linking to the channel associated with the submission. (Required)
  • Channel version: A positive integer field that describes the specific version of the channel being submitted for review. (Required)
  • Author: A foreign key to the User model, referencing the user who initiated the channel submission for review. (Required)
  • Countries (optional): We will need to create a Country table and have a many-to-many relationship. For now, let's just create the model; populating this table will be addressed in a separate task. This table will contain:
    • code: Primary Key - The Alpha-2 code of the country.
    • name: The name in English of the country.
  • Categories: A text field for storing categories, separated by commas.
  • Date created: A datetime field for storing the timestamp of when the submission was created.
  • Status: A ChoiceEnum that will contain:
    • Pending: The initial and default status of a ContentLibrarySubmission
    • Flagged: Indicates the submission has been flagged for review, meaning the sender should review and correct any noted issues.
    • Approved: The submission has been approved, but the channel is not yet published in the Community Library.
    • Live: The submission has been approved and the channel is already published in the Community Library.

Constraints:

  • The channel and channel_version fields must be unique together.

There will be other fields related to the resolution of the Community Library but we won't address it for now.

Additionally, we will need to override these class methods:

  • filter_view_queryset: Admins can view all submissions. Users can only view submissions for channels they are authorized to edit (i.e., by checking User.editable_channels) (e.g. here).
  • filter_edit_queryset: Admins can edit all submissions. Otherwise, only the user who sent the submission can edit it, also checking that user is also an editor of the channel being submitted (e.g. here).

Finally, we should add some smoke tests for the model instance creation, and add unit tests for the filter_view_queryset and filter_edit_queryset methods (e.g. here).

Acceptance criteria

  • A new CommunityLibraySubmission model has been created with the described fields and methods.
  • We have the corresponding migrations for this new model.
  • Described unit tests have been added.

Activity

  1. AlexVelezLl
    added the
    Task
    issue type on Jun 30, 2025
  2. Jakoma02 commented on Jul 1, 2025

    @Jakoma02
    Jakoma02
    on Jul 1, 2025
    Contributor
    More actions

    I will be working on this issue as a GSoC contributor.

  3. AlexVelezLl
    assigned
    Jakoma02
    on Jul 1, 2025
  4. learning-equality-bot
    added
    community-contribution-in-progress
    on Jul 1, 2025
  5. AlexVelezLl commented on Jul 1, 2025

    @AlexVelezLl
    AlexVelezLl
    on Jul 1, 2025
    MemberAuthor
    More actions

    Thanks @Jakoma02 ! Just assigned this to you :)

  6. AlexVelezLl
    added this to the Studio: Easy Sharing of Community Channels milestone on Jul 1, 2025
  7. rtibbles
    added a parent issue on Jul 3, 2025
    • Channel editor submission to the community library #5159
  8. AlexVelezLl commented on Jul 8, 2025

    @AlexVelezLl
    AlexVelezLl
    on Jul 8, 2025
    MemberAuthor
    More actions

    Closed by #5156.

  9. AlexVelezLl
    closed this as completedon Jul 8, 2025
  10. AlexVelezLl
    linked a pull request that will close this issueCommunityLibrarySubmission model #5156on Jul 17, 2025
  11. AlexVelezLl
    added
    P0 - criticalPriority: Release blocker or regression
    on Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @Jakoma02
    Jakoma02

Labels

P0 - criticalPriority: Release blocker or regressioncommunity-contribution-in-progress

Type

Task

Projects

No projects

    Milestone

    • Studio: Easy Sharing of Community Channels

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.