tracker
All repositories: gitoria
2.3 KB
// tests/seed-franchises.hl — GATE FIXTURE for tracker.worldapi.org#19 (mission 066, tests/franchises.mjs): movies with TMDB ids// for the collection seed, written into the gate's storage AFTER tests/seed-show.hl, before the server starts. What the fake TMDB// says about them (tests/franchises.mjs):// 9101 Gate Alien (1979), 9102 Gate Aliens (1986), 9103 Gate Alien 3 (1992) → collection 900 "Gate Alien Collection", whose// parts come OUT of release order, with a part we don't have (9999) and an ADULT one we have (9105, adult = true: never// asked, never in the timeline)// 9104 Gate Loner (2000) → collection 901, its only part we have → no timeline// 9106 Gate Standalone (2001) → no collection// 9107 Gate Missing (2002) → TMDB answers 404// Self-assigned ids, one put() each (never update(), see seed-show.hl).import { MPackDB } from 'hl:mpackdb'import { env } from 'hl:proc'storageDir = env('TRACKER_STORAGE')if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])movie = (id, tmdbId, title, release, slug, adult) => {showsTable.put({adult = adult id = id title = title summary = null tmdbSummary = null tmdbId = tmdbIdlanguage = 'en' type = 'movie' release = release year = toNumber(release.slice(0, 4)) image = null urlSegment = slugepisodesCount = null homepage = null imdbId = null seasonsCount = null status = 'Released' tagline = nulltvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'fr-' + tmdbId})return true}movie('fr0000000000f101', 9101, 'Gate Alien', '1979-05-25', 'gate-alien', false)movie('fr0000000000f102', 9102, 'Gate Aliens', '1986-07-18', 'gate-aliens', false)movie('fr0000000000f103', 9103, 'Gate Alien 3', '1992-05-22', 'gate-alien-3', false)movie('fr0000000000f104', 9104, 'Gate Loner', '2000-01-01', 'gate-loner', false)movie('fr0000000000f105', 9105, 'Gate Adult Alien', '1990-01-01', 'gate-adult-alien', true)movie('fr0000000000f106', 9106, 'Gate Standalone', '2001-01-01', 'gate-standalone', false)movie('fr0000000000f107', 9107, 'Gate Missing', '2002-01-01', 'gate-missing', false)showsTable.persist()console.log('seed-franchises: 7 movies')
Branches
Latest commits
- 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
- fd8570b1|||PR search: one server exchange per keystrokeTracker
- e8f5cbcaLog: SR1 result, SR1bTracker
- 8ad275a4Log/status: tracker 68, SR1Tracker
- f5a06a0fLog: gitoria push setup, SR1Tracker
- d6b109baMission SR1mre
- 608b7558Log: FF1 merged via PR #1mre
- 2939d94cMerge branch 'ff1-gate-failfast' into mainTracker
- c934361a|||PR tests: gates fail fast when the app exits during startmre
- 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