gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd714ae42d714ae42Log/status: AP56 closed out, FF1mred714ae42/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

  • d714ae42Log/status: AP56 closed out, FF1mre
  • a429d088Mission FF1mre
  • 03bbfba3Log: AP56c causemre
  • 24845fe3Log: AP56b result, AP56cmre
  • 6a6d71eaLog: gitoria membershipmre
  • 8b842dc8Log + CONDUCTOR: gitoria PR switch-onmre
  • 6bb7c20estatus: window 2026-11-09mre
  • 5db84974Log: Apollo window GO, AP56b started, BS1 copy removedmre
  • e84586a7Mission AP56bmre
  • 15917f03Record PR workflow rule (gitoria#50)mre
  • 942ac995status: paused workers statemre
  • 44b934e5log: respawn cleanupmre
  • 03a80097Log: Anton GC A/Bmre
  • c7cdef62Log: Apollo STOP, workers pausedmre
  • d0c083fbLog: usage stopmre
  • c6d464e5Log: Apollo GO backlog, AP56 and BS1 startedmre
  • 1eb6f1a1Missions AP56, BS1mre
  • 4871f8adLog: AP52 live on day52, browser gate greenmre
  • d9bf2988Merge ap52: day52, tracker#58 server argument, #51 modal close rule, #56 keyed season rowsmre
  • c4a60ef2Log: RT52 retest passed, AP52 startedmre