tracker
All repositories: gitoria
1.1 KB
// tests/paths-m039.hl — GATE TOOL for tracker#39 (mission 032): the sync of ONE series (sync.hl syncShow) against the fake TMDB,// app STOPPED (hybriel#21): Double Episode Series (tv 1305) after the merge. TMDB lists S1 9101 9102 9103 and S2 9301 — S2's// migrated E1 carries the replaced id 9201: it must be ADOPTED by its number (no second S2E1), S1 gets only the new E3.// Prints `sync39 …` (the counts) and one `ep39 <s>x<e> <tmdbId> <migratedTmdbId> <title>` line per live listed episode.import { syncShow, persistSync } from '../lib/sync.hl'import { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'let sid = nullfor (s of showsTable.find(null, null)) { if (s.tmdbId == 1305 && s.mergedInto == null) { sid = s.id } }r = syncShow(&sid)persistSync()console.log('sync39 newSeasons=' + r.newSeasons + ' newEpisodes=' + r.newEpisodes + ' updatedEpisodes=' + r.updatedEpisodes + ' errors=' + r.errors + ' ' + r.error)show = showsTable.fetch(sid)for (x of show.seasons) {let se = seasonsTable.fetch(x)for (eid of se.episodes) {let e = episodesTable.fetch(eid)console.log('ep39 ' + e.seasonNumber + 'x' + e.episodeNumber + ' ' + e.tmdbId + ' ' + e.migratedTmdbId + ' ' + e.title)}}
Branches
Latest commits
- 45163bd4log: person/tmdb error hypothesismre
- cb38de2blog: swap 503 causemre
- fd10c3d5log: CB livemre
- 7557c025log: CB deploy try 2mre
- 06a7534aMerge branch 'cb'mre
- 2f8030d6log: CB gates greenmre
- 498bf644log: CB gates startmre
- f59c2847gc1: bound the five request caches (shows.hl cacheLimit)mre
- 6ea2c6d6log: morning re-measure 11-04mre
- 446290f0log: GC1 livemre
- 8e6aa91dlog: GC1 deploy retrymre
- 87ad2dc1log: GC1 deployingmre
- 53f10fb8Merge branch 'gc1-deploy'mre
- 7fcbf1d2log: GC1 deploy GOmre
- 1fb6664bcompose: TRACKER_QSTATS=1 (GC1 measurement)mre
- 6576c1cdgc1: release the people-view scan lists once the view is builtmre
- 94f8a373gc1: back out the kept episode-id set (no measurable gain on /my/unwatched: 4.69 -> 4.61 GB per 150 loads)mre
- a1a88bd4gc1: search skips the stale-key string while no entry is stale; /my/unwatched asks a kept id set instead of building a key string per episode rowmre
- cd830744gc1: dbSearch: no split / map / list copy per candidate (scores from the stored text, top list touched only when the hit can enter)mre
- 451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre