Skip to content

Show the reviewed Pinkfong video under Music and Narrative - #7

Closed
shaoyuchu wants to merge 1 commit into
mainfrom
013-growing-dataset
Closed

shaoyuchu wants to merge 1 commit into
mainfrom
013-growing-dataset

Conversation

@shaoyuchu

Copy link
Copy Markdown
Contributor

Related issue

Refs #1. This fixes the reviewed example and keeps the broader classifier evaluation open.

Type of change

  • Bug fix (something didn't work as intended)
  • New feature (something new visitors can see or use)
  • Improvement to an existing feature
  • Breaking change (a link stops working, or scores change meaning)
  • Docs, tests or refactoring only (no visible change)

Problem

The reviewed Pinkfong upload opens with a story and ends with a featured song. The previous single-category filter showed it under Music, so visitors looking for stories missed it.

Solution

  • Apply the reviewed Music and Narrative memberships by video ID when loading the dataset and writing collector exports. Legacy rows still use their primary category.
  • Use memberships in the real video and channel rankings endpoints. Keep the existing primary category and filter URLs, and add a category list to the typed API contract.
  • Keep the current classifier for other videos. The weighted candidate matched fewer reviewed memberships in the preliminary blind review. The wider evaluation remains open.

Visitor-facing changes

  • Interface: The existing Music and Narrative filters both find the video. It appears once in All.
  • Claims and text: None.

Screenshots

None. The existing controls and layout present the corrected results.

Ready for review

  • Tests added or updated; a bug fix includes a test that fails without it.
  • Lint, type check, tests (unit, component, end-to-end) and build pass. Verified 529 backend tests, 601 frontend tests, and 355 browser tests against the static build and real backend (33 configuration skips). The Pinkfong regression passed in Chromium and WebKit on phone and desktop.
  • Test coverage of the changed lines (npm run test:coverage, uv run pytest --cov): frontend N/A (type-only application change), backend 100% (17 of 17 executable lines).
  • UI changes checked at the three sizes above, with the keyboard, and in the Safari check. N/A for layout and control changes. The separate Safari suite passed all 16 checks, including the rankings controls.
  • Docs updated (READMEs, .env.example) if setup, commands or settings changed. N/A, none changed. Plans 007 and 013 describe the behavior.
  • The privacy policy (/privacy) is still true.
  • Nothing secret or server-specific in the diff (keys, tokens, hostnames, server paths, unreleased research data).
  • Every commit message follows "Commit messages" in DEVELOPMENT.md (PRs are merged with "Rebase and merge", so each commit lands as written).

@sonarqubecloud

Copy link
Copy Markdown

@aruship4

Copy link
Copy Markdown
Collaborator

Superseded by #8, opened by aruship4 with the same tested commit.

@aruship4 aruship4 closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants