Peers keep the old channel list for up to an hour after the unlisted-channels setting changes
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
Read kolibri/core/content/utils/cache.py and the setting reads in kolibri/core/content/viewsets/channel_metadata.py and kolibri/core/content/viewsets/contentnode/base.py. Trace how public_metadata_cache is invalidated when device settings are saved, then add tests showing that toggling the setting updates both public responses on the next request. Done means peers immediately see newly shared channels and stop seeing them when sharing is disabled.
Written by the indexing model from the issue text.
Description
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Target branch: develop
Observed behavior
- On a server whose only channel is unlisted, ticking Device > Settings > Allow other devices on this network to view and import my unlisted channels and pressing Save changes does not change what peers see.
GET /api/public/v2/channel/?available=truekept returning[]after the save. The same endpoint without the query string, which nothing had cached, returned the channel.- On a peer, Learn > Library kept showing "No other libraries around you right now", and peer routes into the channel redirected to "No resources available".
- The responses are cached by
public_metadata_cachefor 3600 s, keyed onContentCacheKey(cache.py). Saving device settings does not change that key. - Both public endpoints that read the setting are affected: channel_metadata.py#L195-L199 and contentnode/base.py#L376-L383.
User-facing consequences
- After an admin shares their unlisted channels, learners on other devices and admins importing from a peer see no channels for up to an hour. Nothing on screen explains the delay.
- Turning the setting off keeps the unlisted channels visible to peers for the same time.
Steps to reproduce
- On server A, import an unlisted channel by token and import nothing else. Leave the unlisted-channels setting off.
- From server B on the same network, open Learn > Library (or Device > Channels > Import > Local network) and select server A. No channels are listed.
- On A, tick Allow other devices on this network to view and import my unlisted channels → Save changes.
- Repeat step 2 on B straight away. Still no channels.
Context
- Seen on Kolibri 0.20.0a2 (dev server, Linux, Chromium), with a learn-only device as the peer.
Acceptance Criteria
- After step 3, step 4 lists A's unlisted channel without waiting for the cache to expire.
- After turning the setting off, peers stop seeing A's unlisted channels and their content nodes on the next request.
- A test fails if changing the setting leaves the public channel or content node response unchanged.
AI usage
Claude Code hit this during QA of a Bloom Player PR, traced the cause in the source, and drafted this issue.
- Dominant language
- Python
- Stars
- 1.2k
- Forks
- 1.1k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 87
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learningequality/kolibri
-
Setup wizard's "Responsibilities as an administrator" step throws when left within 200 ms of openingOpenAPP: Setup Wizard bug DEV: frontend
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
learningequality/kolibri#16097 ·
Maintainers usually reply within 1 day
-
bug DEV: frontend
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
learningequality/kolibri#16050 ·
Maintainers usually reply within 1 day
-
APP: Learn bug DEV: frontend
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
learningequality/kolibri#16096 ·
Maintainers usually reply within 1 day
-
APP: Learn bug DEV: frontend
Difficulty 4/5 3-5 days Newbie friendliness 35/100
learningequality/kolibri#16095 ·
Maintainers usually reply within 1 day
-
APP: Learn bug DEV: frontend
Difficulty 3/5 1-2 days Newbie friendliness 35/100
learningequality/kolibri#16094 ·
Maintainers usually reply within 1 day
All issues in learningequality/kolibri
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
jxxghp/MoviePilot#7699 ·
Maintainers usually reply within 1 day
-
bug TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
learningequality/ricecooker#898 ·
-
next
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
j3ko/agent-plugins#80 ·
Maintainers usually reply within 1 day
-
bug:unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Heroic-Games-Launcher/HeroicGamesLauncher#6187 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
BCStudentSoftwareDevTeam/cas#491 ·
Maintainers usually reply within 8 days