gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit63e5ba1a63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker63e5ba1a/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

  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker
  • 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
  • c41587d2Merge branch 'bs2' into mainTracker
  • 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
  • 019d5cedMerge branch 'records-1110' into mainTracker
  • f88ae8b9|||PR records: day56 toggle live, reviewTracker
  • b6b3bb4dMerge branch 'ap56e' into mainTracker
  • 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker
  • 7c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker
  • 4b54f6f9Merge branch 'records-audit' into mainTracker
  • cab4a3bc|||PR records: branch audit, PR-onlyTracker
  • 641e1c4cMerge branch 'records-dp71' into mainTracker
  • 85a6e9f5|||PR records: DP71 checked in ChromeTracker
  • f5be5f18records: gitoria PR-only planTracker
  • 46a37036records: DP71 liveTracker
  • 3bcb7039Status/log: DP71 in progressTracker
  • 5b3a5693Log: SR1b merged via PR 2, DP71 startedTracker
  • 783957c2Merge branch 'sr1-search' into mainTracker
  • 792b9652README: search results come from the routeTracker