Skip to content

ESoCC: Add a public filter to the kolibri-public's ChannelMetadata viewset #5263

@AlexVelezLl

Description

@AlexVelezLl

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

Observed behavior

Kolibri uses the ChannelMetadataViewset to allow for remote browsing in Learn. However we don't currently have a filter on the public field, and we return all public and non-public channels (i.e. community channels) on the public channels request:

Image

We will need to add a filter on the public field, and set it to true if the filter is not present on the request. We can use this on the filterset.

Expected behavior

This viewset should only return public channels unless otherwise requested.

Prerrequisites

  • Try to visualize the local Studio public Library in Kolibri by setting the KOLIBRI_CENTRAL_CONTENT_BASE_URL environment variable in Kolibri to point to the local Studio URL. Then go to Learn > Library.
  • Replicate the error by approving a Community Library Submission in Studio, and see that this channel is (incorrectly) visible in the Kolibri Library channel list in Kolibri.

Acceptance criteria

  • Community Library Channels are not visible in the Kolibri Library channel list in Kolibri.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions