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
- a6dfd6ecdeploy: person-lookup gate (tracker#46)mre
- 33ad4bd5Merge commit 'f57f64f'mre
- 7d38cec4docker-compose: nofile 65536 (default soft 1024 refused boot: errno 24 in fs.listDir, Hybriel 528bc89f)mre
- f57f64f0mission 046: report, LOGmre
- 5965963adeploy: backup copies index files first and *.mpack data last (hot-copy skew, hybriel #203)mre
- efe1b485mission 046: re-vendor Hybriel master 60b2817b (integration 8, #203): plugins mpackdb + web (bin/ git-ignored: hybriel, libhlrt.a, hlc.o, hlrt/ from native/zig-out)mre
- 53099ffbmission 046: person page reads a slim per-title credit row cache (no whole-record fetch per credit); gate tests/person-lookup.mjsmre
- 9b3828aemission 046a: report, LOGmre
- 4b37356emission 046: franchise seed supersedeCollections reads the curated timelines once (10 s one-tick block at the end of boot)mre
- ac6268e3mission 046a: re-vendor Hybriel 528bc89f (integration 6): plugins mpackdb/time/web (bin/ git-ignored)mre
- 322b3293mission 046: photoQueue guard for non-row fetch results (damaged persons index)mre
- e5b99aecmission 046: photoQueue in slices (people.hl photoQueueStart/Step, jobs.hl photoTick), tests/photoqueue.hlmre
- 31dcf2admission 045: report, LOGmre
- 9c3971d0tests/persons-skip-count.hlmre
- 4d72e365mission 045mre
- b9cae4c9slices: skip and count non-row values from range(); merge persons pass falls back to iterate; guard testmre
- 3db7dc31merge w44-jobs-slices into w43-trkmemmre
- 593dab6fmission 043: report, LOGmre
- 1a5a4818boot scans back to iterate (slices measured slower: titles 114 s, episodes 141 s, persons failed); lambda per rowmre
- 03d29893boot scans read primary-key slices (lib/slices.hl from mission 044): iterate is eager too; people view log line back; allShows/allEpisodes stay for toolsmre