Skip to content

included_languages M2M table was never migrated when the Language id field was extended to 14 characters max length #5618

@sentry

Description

@sentry

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

Sentry Issue: STUDIO-J2D

DataError: value too long for type character varying(7)

StringDataRightTruncation: value too long for type character varying(7)

  File "django/db/backends/utils.py", line 84, in _execute
    return self.cursor.execute(sql, params)
  File "django_prometheus/db/common.py", line 69, in execute
    return super().execute(*args, **kwargs)

DataError: value too long for type character varying(7)

(12 additional frame(s) were not displayed)
...
  File "contentcuration/viewsets/channel.py", line 524, in publish_from_changes
    self.publish(
  File "contentcuration/viewsets/channel.py", line 551, in publish
    channel = publish_channel(
  File "contentcuration/utils/publish.py", line 1025, in publish_channel
    fill_published_fields(channel, version_notes)
  File "contentcuration/utils/publish.py", line 904, in fill_published_fields
    channel.included_languages.add(lang)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions