gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit633ee210633ee210mission 044: sliced table scans (slices.hl, pk-range slices) for the adult/kind/status/art/credits/details-repair queuesmre633ee210/reports/032-people-search-settings.md

7.7 KB

  1. # Report 032 — tracker#37: /people, people in the search, /settings (w089, 2026-10-04)
  2. Commits on main: 718bfb8 (code + gates + README/STATUS/LOG), 9bce1f6 (STATUS note). NOT deployed, not pushed.
  3. **/people** (+ `/people/page/<n>`): everyone (no adult filter, as before), the one updated last first. "Updated" = the newest of
  4. `updatedAt` (new: the person page's TMDB fill stamps it), `filmographyAt` and `added`; migrated people without any come last.
  5. Photo + name tiles through `components/tilelist.hl` (new prop `tileClass="tile person-tile"`: name in the person colour, no year),
  6. the same pagination as /movies, "105018 people, last updated first · page 1 of 4376". The letters and `/people/<letter>` are gone.
  7. - Cached view (the mission 025 approach): `lib/people.hl warmPeopleView()` runs at boot: one pass over the people, one sort, the cast
  8. photos. Log: `people view: 105018 people, 51922 cast photos in 3753 ms`. A page slices 24 ids. People created (`castPersonId`) or
  9. updated (the fill) move to the front on the next read (`personTouched`), no restart needed.
  10. - `util.hl sortDesc` now starts from the runs that are already sorted. Output is the same and the gates are unchanged. 105k
  11. nearly-sorted people take 0.15 s instead of 1.6 s.
  12. **Photos**: the order is our file, then `tmdbProfile` (TMDB w185), then the `profile` from a title's cast or crew entry (in-memory
  13. map built at boot), then the new "no photo" placeholder (`assets/photo-placeholder.svg`; titles still show "no poster"). New
  14. people now keep TMDB's profile: cast, crew and `created_by` entries carry `profile`, and `castPersonId` stores `tmdbProfile`.
  15. I first tried a one-time write of the cast profiles into the person records. On the live copy it took **511 s at boot** for
  16. 51,907 people, so I dropped it for the in-memory map (~1–3 s at boot).
  17. **Search**: people rows now show the photo before the name, which links to the person page. The database search and "Fetch from
  18. web" are unchanged. "Jared Harris" finds Jared Harris with his photo.
  19. **/settings**: only `<h1>Settings</h1>`, plain. The typed style ("<type> | <name>") does not fit a page without a type.
  20. **Gates**: browser **369/0** (4 new #37 checks, 3 extended: order after the fill and after a new person, pagination page 2,
  21. search photos for cast / created_by / crew / cast-map / placeholder, "no photo", Settings heading only, the boot log line),
  22. kinds 32/0, franchises 52/0, check-theme 0. One browser run that crossed 04:00 UTC failed 9 #18/#35 checks. The gate sets
  23. TRACKER_SYNC_HOUR to the hour it started in, so a run that crosses the hour fails. This is an old flake; the rerun was 369/0.
  24. **Real copy** (live storage 2026-10-04, tree without .env, jobs off; base 96ba683 for A/B):
  25. - /people pages 1/2/3: server 13–17 ms each, page 4376 ~15 ms. Full load to hydrated (1280, signed in, median of 10): 85 / 67 / 77 ms.
  26. The base had 0.54 s on its first /people (lazy letters).
  27. - Search "Jared Harris": found with photo, 16 ms server (base 12 ms). /search/star trek 120 vs 106 ms load (noise ±10 ms; /movies,
  28. whose code did not change, measured +9 ms).
  29. - Boot RSS ≈ base (+~20 MB). Peak varies ±150 MB between runs of the same build.
  30. - Screenshots 390/1280 signed in and out, all looked at (`.scratch/w089/shots-final/`): header 52 px, no sideways scroll, 0 console
  31. problems.
  32. **Open / for the architect and the creator**:
  33. - On live, /people pages 1–3 are **all crew people** (72/72). They are the writers and directors of the credits job's last titles,
  34. and crew entries had no profile before this mission. So the first pages show "no photo" until someone opens the person (the fill
  35. downloads the photo) or that title's credits are stored again. Cast people with a TMDB photo show it (page 20: 24/24).
  36. Filling them all would need a backfill job (TMDB /person per person, ~50k requests), not built.
  37. - Mission 033 (worktree t38) may also touch `components/tilelist.hl`; this mission added `tileClass` there.
  38. - Housekeeping: my first local copy went into the shared scratchpad dir `…/scratchpad/t` and overwrote the copies of
  39. lib/components/project.hl/tests/browser.mjs/README/STATUS/LOG that an earlier session had left there (an old pre-028 tracker
  40. layout). The repo is unaffected.
  41. ---
  42. # Added: The Remaining (urgent) and tracker#39 (w089, 2026-10-04 06:45)
  43. **The Remaining**: live is not an empty stub. Headless Chrome at 390 and 1280, plus client-side navigation from /search, /movies
  44. and /, shows the overview, 4 genres, director/writer and 5 cast members (Loreana `.scratch/w089/remaining/live-before-*.png`). The
  45. stored record has tmdbSummary, tagline, genres, cast, crew, detailsAt and tmdbSync. Asking TMDB with the app's own request
  46. (`/movie/1775752?append_to_response=external_ids,credits`): poster_path null, imdb_id null, runtime 7, backdrop_path set.
  47. Missing on the page: the poster (TMDB has none), the IMDb link (TMDB has none) and runtime/release date (the app never shows
  48. them). I proposed using the backdrop as a poster fallback plus showing release date and runtime. Waiting for the lead's decision.
  49. No code changed for this.
  50. **tracker#39** (commit b10f00c): migrated episodes still carry TMDB ids that TMDB has since replaced. sync.hl matched by number
  51. only when an episode had no tmdbId at all, so the sync and the repair added a second episode with the same number. Live copy:
  52. 850 extra episodes in 112 series.
  53. - Sync: a stale-id episode is now adopted by its number (old id kept as `migratedTmdbId`).
  54. - Merge: merge.hl step 3 (keeper: most watches, else the synced one, else the first; watches moved or parked; tombstones).
  55. - Check: `tools/count-duplicate-episodes.hl`.
  56. - Gates: 373/0, 32/0, 52/0. With the old sync.hl the new sync check fails.
  57. - Real copy: 850 → 0 in 64 s. The creator's 12,525 watch rows are unchanged; /my/unwatched 993 → 905.
  58. - Seasons: Flash S9 22 → 13; Discovery S5 20 → 10; Scrubs S1 48 → 24. Shots: `.scratch/w089/flash-shots/`.
  59. - Open: Specials stay large (TMDB's own: Flash 72, Discovery 70). 68 pairs with the same tmdbId under different episode numbers
  60. (old-tracker rows) are untouched.
  61. ---
  62. # Added: backdrop poster, runtime, art + photo backfills (w089, 2026-10-04 08:20; main after 4ecc67b)
  63. **Poster fallback**: when TMDB has no poster, syncPoster downloads the backdrop (w780) as the title's poster file
  64. (`posterFromBackdrop`). The existing CSS on every poster box shows it centre-cropped to 2:3. A real poster later replaces it.
  65. **Runtime**: movies now store `runtime`, and a movie page shows "17 September 2026 · 7 min" under its title.
  66. **Art backfill**: one TMDB request for each public title without a poster file and each public movie without runtime.
  67. **Photo backfill**: one TMDB request for each person without any photo source, in /people's order (page 1 first).
  68. - Both run last, after every other start job. They are paced at ≤ 40 requests per 10 s, resume after a restart and ask each item
  69. only once.
  70. - Switches: `TRACKER_ART=0` and `TRACKER_PHOTOS=0`. Every gate and realdata script starts with both off.
  71. **Gates**: browser 379/0, kinds 32/0, franchises 53/0, pager 229/0, franchiseseed 26/0, check-theme 0.
  72. **Real copy**, with real TMDB through a link to .env (never read):
  73. - Art: 4,977 titles done in 42 min — 115 posters, 15 backdrops, 4,609 runtimes, 0 failed.
  74. - The Remaining now shows its backdrop as poster plus "17 September 2026 · 7 min". Shots: `.scratch/w089/remaining/after/`; before
  75. = live, `remaining/live-before-*`.
  76. - Photos: the queue has 53,106 people at about 0.5 s each, so roughly 7.5 h.
  77. - After 5 min, /people pages 1–3 had 8, 3 and 4 of 24 with a photo (0 before). TMDB has no photo for most crew people.
  78. Shot: `.scratch/w089/photos-after/`.
  79. - RSS stayed at 1.5–1.7 GB.
  80. **Open**:
  81. - Only 15 titles had a backdrop to use; most poster-less public titles have no art at TMDB at all.
  82. - Runtime is stored for movies only.
  83. - After deploy the photo job runs for about 7.5 h.

Branches

Latest commits

  • 633ee210mission 044: sliced table scans (slices.hl, pk-range slices) for the adult/kind/status/art/credits/details-repair queuesmre
  • 6648ba44mission 042: real-browser E2E on ce6f2e0a re-vendor 69/0 at 390 + 1280mre
  • 3ed3a0efmission 042: gates old/new equal (browser #41 route-table regex accepts unescaped hl:web output), real-data TTFB, E2E blocked by lisbeth lockmre
  • d5b61e90LOG 042mre
  • 4acdbaccmission 042: memory comparison old vs ce6f2e0a (stopped: warm VmHWM higher), reportmre
  • d0f620d6mission 042: re-vendor Hybriel ce6f2e0a (plugins incl. mpackdb; bin runtime built from the same archive, git-ignored), compact=false keptmre
  • 5bd14e12mission 040: theme 76f99f6 gates + E2E green; 44 px fixes (skeleton row, type-word, genre-link/pill); README, reportmre
  • 77cfa45cmission 040: partial report (theme/modal/pagination re-copied, tilelist onPage, 44 px taps; gates new + E2E pending)mre
  • 4b14822fe2e-theme: menu marker by colourmre
  • 09780f4emission 040 WIP: theme, modal, pagination, tokens re-copied from layouts 76f99f6; tilelist uses onPage; tap sizes 44 px for tracker's own small buttons; tests/e2e-theme.mjsmre
  • fb80bb8chotfix: open the 5 show stores without compaction (compact = false) — compact-on-open left another handle on stale offsets, every read gave a bare Number (hybriel mpackdb refresh after a shrink); live down 2026-10-20 05:11mre
  • e00d3bf7paths: projects moved into /media/STORAGE/projects/WorldAPI/mre
  • a8c7f234tracker#36 (mission 039): tools/tmdb-check.hl survives a dropped connection (on Error, asked again, failed lines) and resumes with --from N; tests/tmdbcheck.mjs 6/6 against a fake TMDBmre
  • 9c230516mission brief w39mre
  • 3609121dmission 038 docs + report (quota stop): README/kinds.md for #43 #42 #36, STATUS, LOG; HEAD browser gate 374/8 in the in-app daily run block (hour-boundary suspected, rerun pending), other gates green; #36 real run needs TMDB_READ_TOKENmre
  • a5d06e79tracker#36 (mission 038): tools/tmdb-check.hl + lib/tmdbcheck.hl — every live migrated title's migrated title + year against its TMDB entry (one GET /movie|tv/<id>?append_to_response=alternative_titles, 260 ms apart, passing failures asked once more): ok / ambiguous (one of title, year disagrees) / clear (both, or 404); read-only; token only from TMDB_READ_TOKEN; --stored = a title-only preview from the TMDB names already stored (no request). Tested against a fake TMDB (.scratch/w38/t36): 7 titles, 3 ok, 2 ambiguous, 2 clear, data unchangedmre
  • 982554f3tracker#42 (mission 038): series pages — an unknown slug no longer scans every title (lib/shows.hl showBySlug: the slug map only; new titles are noted by refreshTitleCaches, which both title puts already reach): 10.7–15.7 s → 0.013 s on the real copy (the one-request-at-a-time server was blocked meanwhile); cast/crew rows take name + slug from a person-link cache (personLinkOf) instead of whole person records (SNL: 303 cast with 4,761 credits, ~49k allocations per render) — allocations per series page −5…−40 %; HTML of 20 pages identical to beforemre
  • 4586b6e3docker-compose: init: true (hybriel#156)mre
  • 085c2e5ftracker#43 (mission 038): TVmaze's type makes Variety / Talk Show / Game Show / Reality / News / Panel Show / Award Show / Sports titles Shows (TMDB calls Saturday Night Live UK Scripted) — the #43 part of parked w37-wip a79c8c1 only (no re-vendor, no cache volume): tvmazeType stored by the sync and the TVmaze status backfill (asks every series with a TVmaze id once), kindOfTitle/kindWithTvmaze, tools/tvmaze-types.hl, gate fixture Variety Gate Series; start waits 150 smre
  • 4fa303b5mission brief w38mre