Skip to content

variantLanguages: filter to published variants #9524

Description

@tanflem

Parent

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

What to build

Video.variantLanguages (a video's own direct variant languages, intentionally flat and unrelated to the recursive availableLanguages work) is missing the published: true filter that its sibling field variantLanguagesCount already has, so an unpublished variant's language can currently appear in a language picker meant to reflect only what's actually available. The filter is added to match. This is unrelated to and independent of the rest of #9515 — a small, adjacent, same-file bug fix.

Acceptance criteria

  • variantLanguages filters to published: true variants, matching variantLanguagesCount's existing filter.
  • A video with one published and one unpublished variant: variantLanguages returns only the published variant's language.
  • variantLanguages' semantics otherwise remain unchanged — it stays a flat, own-video-only field, not recursive.

Blocked by

None (can start immediately) — unrelated field, independent fix.

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