gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit7c9ec2367c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker7c9ec236/tests/seed-reduced.hl

2.1 KB

  1. // tests/seed-reduced.hl — GATE FIXTURE for tracker#33 (mission 029): written by tests/browser.mjs into the gate's storage while the
  2. // app is STOPPED (one process per storage, hybriel#21). Two titles like the old tracker's MIGRATED rows that were never synced
  3. // (old `oldId`, no `tmdbSync`, no `detailsAt`, no `minimal`/`imported` — #26's test let them pass) and one complete title TMDB
  4. // has no poster for (like The Remaining):
  5. // Reduced Gate Series tv 1401: no seasons, no poster, no genres, no status → the details repair completes it
  6. // Reduced Gate Movie movie 1402: no poster, no genres, no IMDb id → completed when its page is opened
  7. // Posterless Gate Movie movie 1403, synced (`tmdbSync`), no poster on TMDB → complete: the placeholder, never asked
  8. import { MPackDB } from 'hl:mpackdb'
  9. import { env } from 'hl:proc'
  10. storageDir = env('TRACKER_STORAGE')
  11. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  12. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  13. title = (id, tmdbId, type, name, slug, release, synced) => {
  14. return { adult = false id = id title = name summary = null tmdbSummary = 'An old text of ' + name + '.' tmdbId = tmdbId
  15. language = 'en' type = type release = release year = toNumber(release.slice(0, 4)) image = null urlSegment = slug
  16. episodesCount = null homepage = null imdbId = null seasonsCount = null status = null tagline = null kind = type == 'movie' ? null : 'series'
  17. tvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'rd-' + tmdbId creditsAt = 1 tmdbSync = synced ? 1 : null }
  18. }
  19. showsTable.put(title('rd00000000000sr1', 1401, 'series', 'Reduced Gate Series', 'reduced-gate-series', '2010-04-01', false))
  20. showsTable.put(title('rd00000000000mv1', 1402, 'movie', 'Reduced Gate Movie', 'reduced-gate-movie', '1999-09-09', false))
  21. showsTable.put(title('rd00000000000mv2', 1403, 'movie', 'Posterless Gate Movie', 'posterless-gate-movie', '2026-09-17', true))
  22. showsTable.persist()
  23. console.log('seed reduced: 2 never-synced migrated titles (series 1401, movie 1402), 1 synced movie without a poster (1403)')

Branches

Latest commits

  • 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
  • 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