gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc21aff6bc21aff6bMerge branch 'records-hm55c' into mainTrackerc21aff6b/tests/seed-franchises.hl

2.3 KB

  1. // tests/seed-franchises.hl — GATE FIXTURE for tracker.worldapi.org#19 (mission 066, tests/franchises.mjs): movies with TMDB ids
  2. // for the collection seed, written into the gate's storage AFTER tests/seed-show.hl, before the server starts. What the fake TMDB
  3. // says about them (tests/franchises.mjs):
  4. // 9101 Gate Alien (1979), 9102 Gate Aliens (1986), 9103 Gate Alien 3 (1992) → collection 900 "Gate Alien Collection", whose
  5. // parts come OUT of release order, with a part we don't have (9999) and an ADULT one we have (9105, adult = true: never
  6. // asked, never in the timeline)
  7. // 9104 Gate Loner (2000) → collection 901, its only part we have → no timeline
  8. // 9106 Gate Standalone (2001) → no collection
  9. // 9107 Gate Missing (2002) → TMDB answers 404
  10. // Self-assigned ids, one put() each (never update(), see seed-show.hl).
  11. import { MPackDB } from 'hl:mpackdb'
  12. import { env } from 'hl:proc'
  13. storageDir = env('TRACKER_STORAGE')
  14. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  15. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  16. movie = (id, tmdbId, title, release, slug, adult) => {
  17. showsTable.put({
  18. adult = adult id = id title = title summary = null tmdbSummary = null tmdbId = tmdbId
  19. language = 'en' type = 'movie' release = release year = toNumber(release.slice(0, 4)) image = null urlSegment = slug
  20. episodesCount = null homepage = null imdbId = null seasonsCount = null status = 'Released' tagline = null
  21. tvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'fr-' + tmdbId
  22. })
  23. return true
  24. }
  25. movie('fr0000000000f101', 9101, 'Gate Alien', '1979-05-25', 'gate-alien', false)
  26. movie('fr0000000000f102', 9102, 'Gate Aliens', '1986-07-18', 'gate-aliens', false)
  27. movie('fr0000000000f103', 9103, 'Gate Alien 3', '1992-05-22', 'gate-alien-3', false)
  28. movie('fr0000000000f104', 9104, 'Gate Loner', '2000-01-01', 'gate-loner', false)
  29. movie('fr0000000000f105', 9105, 'Gate Adult Alien', '1990-01-01', 'gate-adult-alien', true)
  30. movie('fr0000000000f106', 9106, 'Gate Standalone', '2001-01-01', 'gate-standalone', false)
  31. movie('fr0000000000f107', 9107, 'Gate Missing', '2002-01-01', 'gate-missing', false)
  32. showsTable.persist()
  33. console.log('seed-franchises: 7 movies')

Branches

Latest commits

  • c21aff6bMerge branch 'records-hm55c' into mainTracker
  • 9ba258d3|||PR records: HM55b resultTracker
  • 64f2d300Merge branch 'records-hm55b2' into mainTracker
  • ae3b80dc|||PR records: HM55b briefTracker
  • 7ef3cb3bMerge branch 'records-st55' into mainTracker
  • fec2e080|||PR records: STATUS HM55Tracker
  • 8e174918Merge branch 'records-hm55b' into mainTracker
  • 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