GeezerVison is showing github.com — Draft channel versions break version comparison because of None · Issue #5832 · learningequality/studio
Draft channel versions break version comparison because of None #5832
Description

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

This should be resolved by adding a None check to the comparison logic and including all channel version information instead.
Sentry Issue: STUDIO-J6Z
TypeError: '<=' not supported between instances of 'int' and 'NoneType'
(8 additional frame(s) were not displayed)
...
File "kolibri_public/views_v1.py", line 174, in get_public_channel_lookup
channel_list = _serialize_channel_version(channel_list)
File "kolibri_public/views_v1.py", line 74, in _serialize_channel_version
"version_notes": _get_version_notes(channel, channel_version),
File "kolibri_public/views_v1.py", line 36, in _get_version_notes
data = {
File "kolibri_public/views_v1.py", line 39, in <dictcomp>
if int(k) <= channel_version.version
Activity
rtibblesbot commented on Apr 16, 2026
Plan: Fix TypeError: '<=' not supported between instances of 'int' and 'NoneType' in _get_version_notes when channel_version.version is None by adding a None guard that returns all version notes in that case.
- Add regression test for None
channel_version.version
- Fix the None guard in
_get_version_notes

@rtibblesbot's comments are generated by an LLM, and should be evaluated accordingly
How was this generated?
- Implemented code following the pre-approved plan using test-driven development (red-green-refactor)
- Ran the project's full test suite and linter before committing
- For UI changes: captured live screenshots to verify rendering
- For backend changes: verified with example API/CLI output
Metadata
Metadata
Development
No branches or pull requestsIssue actions