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 — Update the public ChannelMetadata viewset to support token filter · Issue #5462 · learningequality/studio

Update the public ChannelMetadata viewset to support token filter #5462

New issue
Copy link
New issue
Copy link
Closed as not planned
Task
Closed as not planned
Update the public ChannelMetadata viewset to support token filter#5462
Task
Copy link
Assignees
taoerman
Labels
P0 - criticalPriority: Release blocker or regression
Milestone
Studio: Patch Releases

Description

@AlexVelezLl
AlexVelezLl
opened on Oct 9, 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

After implementing the new ChannelVersion model, we need to expose a way to retrieve specific channel version metadata via the studio public API. The current endpoint that Kolibri uses to retrieve channel metadata using tokens is views_v1.get_public_channel_lookup. However, to introduce the new support for channel version tokens, some tweaks will be needed, and instead of continuing to build on top of the v1 endpoints, we will rather add support for channel tokens on the public channel v2 viewset.

Technical details

The main problem with allowing the public ChannelMetadataViewset to receive a token filter is that, if a token is passed, we need to retrieve these channels from the contentcuration models. That means, we'll need to modify the viewset get_queryset method to return the queryset of token-related channels, but these channels will come from the ContentCuration models. For this:

  • We'll need to create a get_queryset_from_token method. This method will receive a token and will build the channel queryset, fetching the Channels with the token matching one of its secret tokens, and ChannelVersions whose secret token matches the token. Then, we will need to annotate this queryset to fill the missing fields that the Viewset exposes or filters, or that have a different name in the contentcuration models. The idea is that all transformations that we do with the current queryset can be made within the context of this new queryset.
    • Note that for channel version tokens, fields like the published_size should match the specific version's published_size, not the current channel published_size, since it may be different if a new version has been released.
    • Since, for now, we don't support collections of channels with specific versions, we can assume that if we found channels in the Channel model with a given token, then we can return that queryset without checking the token in ChannelVersion.
  • Check in the get_queryset method if a token query param is present in the request; if so, return the queryset from get_queryset_from_token.
  • For now, if a token is passed, then we will disable all other filters present in the ChannelMetadataFilter. For this, we will override the filter_queryset method to return the queryset unfiltered if a token is present in the request query_params.
  • The consolidate method will also need to be upgraded to
    • Skip the included_languages computation for channels fetched via token since they are already computed in the ChannelVersion model.
    • Skip the countries array computation since it does not apply to private channels.

Finally, we should update the channel metadata test suites to test that the filter by token is working fine with channel tokens, channel version tokens, and channelset tokens.

Acceptance criteria

  • The ChannelMetadataViewSet now has support for token filtering.
  • The ChannelMetadataViewSet returns the adequate values for channel and channel version tokens.
  • New unit tests have been added to ensure that other filters keep working as expected.

Activity

  1. AlexVelezLl
    added this to the Studio: Easy Sharing of Community Channels milestone on Oct 9, 2025
  2. AlexVelezLl
    added a parent issue on Oct 9, 2025
    • Update channel publishing experience to allow draft channels #5172
  3. AlexVelezLl
    added
    TODO: draftIssue is a working in progress and not ready to be worked on
    on Oct 9, 2025
  4. AlexVelezLl
    added the
    Task
    issue type on Oct 9, 2025
  5. AlexVelezLl
    marked this as blocked on Oct 9, 2025
    • Create ChannelVersion model with token support #5460
  6. AlexVelezLl
    changed the title [-]Add a new v2 public lookup endpoint that supports channel version tokens[/-] [+]Update the public ChannelMetadata viewset to support token filter[/+] on Nov 26, 2025
  7. AlexVelezLl
    added
    P0 - criticalPriority: Release blocker or regression
    and removed
    TODO: draftIssue is a working in progress and not ready to be worked on
    on Dec 4, 2025
  8. AlexVelezLl
    self-assigned this
    on Jan 26, 2026
  9. AlexVelezLl
    marked this as blocked on Jan 26, 2026
    • Implement Community Library notifications page #5457
  10. AlexVelezLl
    removed their assignment
    on Jan 26, 2026
  11. AlexVelezLl
    unmarked this as blocked on Jan 26, 2026
    • Implement Community Library notifications page #5457
  12. AlexVelezLl
    assigned
    taoerman
    on Feb 10, 2026
  13. rtibbles
    removed a parent issue on May 21, 2026
    • Update channel publishing experience to allow draft channels #5172
  14. rtibbles
    added a parent issue on May 21, 2026
    • Admin Resource Discovery and Management kolibri#14003
  15. marcellamaki
    modified the milestones: Studio: Easy Sharing of Community Channels, Studio: Patch Releases on May 26, 2026
  16. AlexVelezLl commented on Aug 25, 2026

    @AlexVelezLl
    AlexVelezLl
    on Aug 25, 2026
    MemberAuthor
    More actions

    We ended up implementing this in the v1 viewset for ESoCC. More investigation will be needed for Admin Resource Discovery.

  17. AlexVelezLl
    closed this as not plannedon Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @taoerman
    taoerman

Labels

P0 - criticalPriority: Release blocker or regression

Type

Task

Projects

No projects

    Milestone

    • Studio: Patch ReleasesNo due date

    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.