gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Branchrecords-hm55bb1ecee57|||PR records: HM55 stateTrackerrecords-hm55b/tests/paths-m026.hl

1.7 KB

  1. // tests/paths-m026.hl — GATE TOOL for mission 026 (tracker#31): the two paths that CREATE titles, run against the gate's storage
  2. // 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
  3. // keeper — and add nothing; only a title we really lack is added. Prints one `path …` line per check (tests/browser.mjs reads them):
  4. // search import (search.hl importTitle) of tv 1301 and movie 1303 → created=false, the keeper's path
  5. // filmography fill (people.hl personFillStep) of TMDB person 3301, whose credits are tv 1301, movie 1303 and the new movie 1304
  6. // → added=1, the person's credits point at the keepers
  7. import { env } from 'hl:proc'
  8. import { importTitle } from '../lib/search.hl'
  9. import { personFillStep } from '../lib/people.hl'
  10. import { personsTable, showsTable, showById, titlePath } from '../lib/shows.hl'
  11. r1 = importTitle('tv', 1301)
  12. console.log('path import tv 1301 created=' + r1.created + ' path=' + r1.path + ' error=' + r1.error)
  13. r2 = importTitle('movie', 1303)
  14. console.log('path import movie 1303 created=' + r2.created + ' path=' + r2.path + ' error=' + r2.error)
  15. let pid = null
  16. for (p of personsTable.find(null, null)) { if (p.tmdbId == 3301) { pid = p.id } }
  17. let steps = 0
  18. let last = { done = false }
  19. while (pid != null && !last.done && steps < 10) {
  20. last = personFillStep(&pid)
  21. steps = steps + 1
  22. if (last.error != null) { last = { done = true error = last.error } }
  23. }
  24. credits = []
  25. if (pid != null) {
  26. for (c of personsTable.fetch(pid).shows) { credits.push(titlePath(showById(&c.show))) }
  27. }
  28. console.log('path fill person 3301 steps=' + steps + ' added=' + last.added + ' error=' + last.error + ' credits=' + credits.join(','))

Branches

Latest commits

  • b1ecee57|||PR records: HM55 stateTracker
  • 28eab08cMerge branch 'records-hm55' into mainTracker
  • d3edaa05|||PR records: HM55 start, PROCEDURES.mdTracker
  • 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