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
- 3059f86cMerge branch 'records-design-rule' into mainTracker
- 421a4809|||PR records: his-design rule (Apollo 2026-11-13)Tracker
- d1390692Merge branch 'records-dp75b' into mainTracker
- a4d1a7d2|||PR records: later steps checked, branch auditTracker
- e070e16fMerge branch 'records-dp75' into mainTracker
- 642b4fa8|||PR records: DP75 day62 live, AP62 briefTracker
- bfc4ea4dMerge branch 'ap62' into mainTracker
- 2c95ac46|||PR AP62: re-vendor Hybriel set day62 (source 70341ad2, bin a54f5f08)Tracker
- b9c7c3c8Merge branch 'records-dp74' into mainTracker
- 85cfb4ae|||PR records: AP61 day61, DP74 liveTracker
- b1496147Merge branch 'ap61' into mainTracker
- 2047955bMerge branch 'u12-gateports' into mainTracker
- c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
- 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
- 0b86324aMerge branch 'records-dp73' into mainTracker
- 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
- 613ae0ecMerge branch 'bs3' into mainTracker
- 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
- 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
- 310613f1Merge branch 'records-dp72' into mainTracker