tracker
All repositories: gitoria
1.7 KB
// tests/paths-m026.hl — GATE TOOL for mission 026 (tracker#31): the two paths that CREATE titles, run against the gate's storage// with the app STOPPED (hybriel#21) and the fake TMDB (the gate's env): each must find the title we have — after the merge, the// keeper — and add nothing; only a title we really lack is added. Prints one `path …` line per check (tests/browser.mjs reads them):// search import (search.hl importTitle) of tv 1301 and movie 1303 → created=false, the keeper's path// filmography fill (people.hl personFillStep) of TMDB person 3301, whose credits are tv 1301, movie 1303 and the new movie 1304// → added=1, the person's credits point at the keepersimport { env } from 'hl:proc'import { importTitle } from '../lib/search.hl'import { personFillStep } from '../lib/people.hl'import { personsTable, showsTable, showById, titlePath } from '../lib/shows.hl'r1 = importTitle('tv', 1301)console.log('path import tv 1301 created=' + r1.created + ' path=' + r1.path + ' error=' + r1.error)r2 = importTitle('movie', 1303)console.log('path import movie 1303 created=' + r2.created + ' path=' + r2.path + ' error=' + r2.error)let pid = nullfor (p of personsTable.find(null, null)) { if (p.tmdbId == 3301) { pid = p.id } }let steps = 0let last = { done = false }while (pid != null && !last.done && steps < 10) {last = personFillStep(&pid)steps = steps + 1if (last.error != null) { last = { done = true error = last.error } }}credits = []if (pid != null) {for (c of personsTable.fetch(pid).shows) { credits.push(titlePath(showById(&c.show))) }}console.log('path fill person 3301 steps=' + steps + ' added=' + last.added + ' error=' + last.error + ' credits=' + credits.join(','))
Branches
Latest commits
- b4c8d3a9Document tracker#62 fixed-index migration and GC proofmre
- 66f83de3WIP tracker#62 native person indexes blocked by schema migration gapmre
- 380ba349Merge packed people order for tracker#62mre
- b5357ac4Pack the people order and release completed startup arraysmre
- 90734c6cMerge branch 'hm60-shortids'mre
- e0db0d1bHM60 report: tracker#60 packed short-ID ownersmre
- 3c79b576Pack short-ID ownership into byte buffersmre
- e822524bstatus wordingmre
- 1c7f0480log: HM60/HM61 startedmre
- 2841d215missions HM60 HM61mre
- 289c6ce4HM1 report: heap object breakdownmre
- 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