tracker
All repositories: gitoria
2.0 KB
// tests/peek-shows.hl — the gate's look INTO the shows table (tracker.worldapi.org#18): the description fields the page does// not show all of. Run only while the app is stopped (hl:mpackdb: one process per storage).//// TRACKER_STORAGE=<gate mpackdb> TRACKER_PEEK=1001,1003 ./bin/hybriel tests/peek-shows.hl// → one line per TMDB id (null prints as ''): peek <tmdbId>|<title>|<summary>|<tmdbSummary>|<tvmazeSummary>|<tagline>|<tmdbSync>// |<migratedTitle>|<migratedSummary>|<migratedGenres count> (mission 070: what the sync keeps of the migration)// TRACKER_PEEK_EPISODES=1001 → one line per episode of that title: ep <s>x<e>|<title>|<migratedTitle>|<summary>|<migratedSummary>// TRACKER_CLEAR_TEXTS=1002 first sets summary and tmdbSummary of that title to null (the TVmaze-only case)import { env } from 'hl:proc'import { showsTable, episodesTable } from '../lib/shows.hl'wanted = env('TRACKER_PEEK') != null ? env('TRACKER_PEEK').split(',') : []clear = env('TRACKER_CLEAR_TEXTS')for (s of showsTable.find(null, null)) {if (s.tmdbId != null && clear != null && '' + s.tmdbId == clear && s.type != 'movie') {let x = sx.summary = nullx.tmdbSummary = nullshowsTable.update(x.id, x)console.log('cleared ' + clear)}}showsTable.persist()for (s of showsTable.find(null, null)) {if (s.tmdbId != null && wanted.includes('' + s.tmdbId)) {console.log('peek ' + s.tmdbId + '|' + s.title + '|' + s.summary + '|' + s.tmdbSummary + '|' + s.tvmazeSummary + '|' + s.tagline + '|' + s.tmdbSync+ '|' + s.migratedTitle + '|' + s.migratedSummary + '|' + (s.migratedGenres != null ? s.migratedGenres.length : ''))}}epsOf = env('TRACKER_PEEK_EPISODES')if (epsOf != null) {for (s of showsTable.find(null, null)) {if (s.tmdbId != null && '' + s.tmdbId == epsOf) {for (e of episodesTable.find(null, null)) {if (e.show == s.id) { console.log('ep ' + e.seasonNumber + 'x' + e.episodeNumber + '|' + e.title + '|' + e.migratedTitle + '|' + e.summary + '|' + e.migratedSummary) }}}}}
Branches
Latest commits
- b5357ac4Pack the people order and release completed startup arraysmre
- 2e7d6257log: HM1 startedmre
- 2f790465mission HM1: heap object breakdownmre
- a18957falog: evening re-measure after CBmre
- aac9a98dlog: evening re-measure startmre
- 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