gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitf57f64f0f57f64f0mission 046: report, LOGmref57f64f0/tests/paths-m039.hl

1.1 KB

  1. // tests/paths-m039.hl — GATE TOOL for tracker#39 (mission 032): the sync of ONE series (sync.hl syncShow) against the fake TMDB,
  2. // app STOPPED (hybriel#21): Double Episode Series (tv 1305) after the merge. TMDB lists S1 9101 9102 9103 and S2 9301 — S2's
  3. // migrated E1 carries the replaced id 9201: it must be ADOPTED by its number (no second S2E1), S1 gets only the new E3.
  4. // Prints `sync39 …` (the counts) and one `ep39 <s>x<e> <tmdbId> <migratedTmdbId> <title>` line per live listed episode.
  5. import { syncShow, persistSync } from '../lib/sync.hl'
  6. import { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'
  7. let sid = null
  8. for (s of showsTable.find(null, null)) { if (s.tmdbId == 1305 && s.mergedInto == null) { sid = s.id } }
  9. r = syncShow(sid)
  10. persistSync()
  11. console.log('sync39 newSeasons=' + r.newSeasons + ' newEpisodes=' + r.newEpisodes + ' updatedEpisodes=' + r.updatedEpisodes + ' errors=' + r.errors + ' ' + r.error)
  12. show = showsTable.fetch(sid)
  13. for (x of show.seasons) {
  14. let se = seasonsTable.fetch(x)
  15. for (eid of se.episodes) {
  16. let e = episodesTable.fetch(eid)
  17. console.log('ep39 ' + e.seasonNumber + 'x' + e.episodeNumber + ' ' + e.tmdbId + ' ' + e.migratedTmdbId + ' ' + e.title)
  18. }
  19. }

Branches

Latest commits

  • f57f64f0mission 046: report, LOGmre
  • 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
  • 23375c58mission 044: report, LOG, STATUSmre
  • c6fd928emission 044: 4096 slices for tables over 200 K rows, 15 ms budget, TRACKER_SLICE_DEPTH for testsmre
  • fb057680mission 044: jobs.hl imports mergeLeft (gate found it), mission file, slices benchmre
  • 0d6293ebmission 043: mission filemre