Skip to content

availableLanguages: seedVideoLanguages stops zeroing out container videos #9520

Description

@tanflem

Parent

Sub-issue of #9515 (Rebuild Video.availableLanguages as one cycle-safe, recursively-correct source of truth).

What to build

Running the seedVideoLanguages worker against a container video (collection/series/featureFilm) no longer zeroes out its child-derived availableLanguages. Today it overwrites the field from the video's own variants only, ignoring children entirely — a container with no direct variants of its own ends up with [] even if its children have languages. It's changed to route through the recompute engine from #9517.

Acceptance criteria

  • Seeding a container video with no variants of its own but with children that have published-variant languages results in the container's availableLanguages correctly reflecting those child-derived languages, not [].
  • Seeding a leaf video (no children) continues to work as before — its own variant languages are set correctly.
  • Existing seedVideoLanguages tests are updated to assert against the new (correct) behavior rather than the own-variants-only behavior.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions