Skip to content

Draft channel versions break version comparison because of None #5832

Description

@sentry

❌ 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions