gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit05448a9805448a98Merge cb69-imports: appTitle in a dependency-free topicmre05448a98/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

  • 05448a98Merge cb69-imports: appTitle in a dependency-free topicmre
  • e55b379dKeep shared app title independent of the route import graphmre
  • 9a99659blog: hybriel#334, batch waits for day48mre
  • 85fa6c9blog: CB68 result, CB69 startedmre
  • 2f07c1b7log: DP68 boot gate failed, CB68mre
  • 9652782dlog: HM59 merged, DP68 startedmre
  • 29867a75Merge hm59-logic: tracker#59 page logic moved to libmre
  • f7bfe90bMove remaining page builders into their topicsmre
  • 7c3991f9log: day46 from Antonmre
  • ec54fc35Move show page logic into the shows topicmre
  • c1a8d074log: correct timesmre
  • 5827eba9log: HM57 merged, HM59 startedmre
  • d1a91be9Merge hm57-let: tracker#57 let only for reassigned namesmre
  • a404ed75Report HM57 audit, gates and integration notesmre
  • 1dcb87a7Use plain declarations for unchanged bindingsmre
  • b90395e3log: HM51 mergedmre
  • 9888d076Merge hm51-classes: tracker#51 views use Style referencesmre
  • 4399bc2fReference remaining component-owned root Style rulesmre
  • 9edcc2dflog: #58 live, HM57 startedmre
  • 73fa20ddMerge hm49b-styles: tracker#49 rest of the component stylesmre