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
- 1ef7a3b1RV44: report day44 gates and migration/restart proofsmre
- a5f62f6cRV44: re-vendor Hybriel set day44 (source 222edef7, bin 4f0f263e)mre
- 6159a248Merge branch 'hm62-personindex' into rv44mre
- a8923d93log: RV44 startedmre
- cf28cf77mission RV44mre
- 585782dfLog: tracker#60 Chrome look, STATUS rewrittenmre
- 147d0172conductor: caramboleyo is the user, not owner/creatorApollo
- 21dd0cfblog: #60 live measurement, reviewmre
- 7793cf94HM62b report: person indexes with fixed mpackdbmre
- b4c8d3a9Document tracker#62 fixed-index migration and GC proofmre
- 09d66ed5status: #60 livemre
- 4171672flog: #60 livemre
- f52862a2log: HM62b startedmre
- 88fde2c4mission HM62bmre
- a722e526log: #62 blocked by hybriel#317mre
- 074a7418log: #62 assigned to Tracker; pending rulemre
- 06f6ae8fHM62 report: mpackdb index gapmre
- 66f83de3WIP tracker#62 native person indexes blocked by schema migration gapmre
- 380ba349Merge packed people order for tracker#62mre
- 86fe5430log: HM62 startedmre