gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit13dea5be13dea5belog: #56 live, HM49 and HM58 startedmre13dea5be/tests/seed-tvleftover.hl

1.4 KB

  1. // tests/seed-tvleftover.hl — GATE FIXTURE for mission 025: written by tests/browser.mjs into the gate's storage while the app is
  2. // STOPPED (one process per storage, hybriel#21). A MOVIE carrying a TV answer's fields, like Star Trek: First Contact on the
  3. // real data (the #9 sync once asked /tv/<its tmdbId>): TV text in tmdbSummary, status 'Ended', season/episode counts. It is
  4. // complete otherwise (`detailsAt` set) — the details repair must still ask /movie/2299 again (shows.hl hasTvLeftovers).
  5. import { MPackDB } from 'hl:mpackdb'
  6. import { env } from 'hl:proc'
  7. storageDir = env('TRACKER_STORAGE')
  8. if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }
  9. showsTable = new MPackDB(file = storageDir + '/shows.db', primaryKey = '@id', indexes = ['!oldId'])
  10. showsTable.put({
  11. adult = false id = 'sh000000000tvfc1' title = 'Gate First Contact' summary = null tmdbSummary = 'A TV show about small businesses.' tmdbId = 2299
  12. language = 'en' type = 'movie' release = '1996-11-22' year = 1996 image = null urlSegment = 'gate-first-contact'
  13. episodesCount = 0 homepage = null imdbId = null seasonsCount = 0 status = 'Ended' tagline = null
  14. tvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = 'shtvfc1' detailsAt = 1 creditsAt = 1
  15. })
  16. showsTable.persist()
  17. console.log('seed tv leftover: 1 movie with a TV answer\'s fields (Gate First Contact, tmdb 2299)')

Branches

Latest commits

  • 13dea5belog: #56 live, HM49 and HM58 startedmre
  • a31c8f2fdocs: tracker#36 remaining listmre
  • 975d06d1log: #36 live, DP66 startedmre
  • d6d03fa3mission: T36Bmre
  • e7512d00status: #36 rolled back, retry askedmre
  • c98e2043log: T36A rollbackmre
  • ae905f15Merge t36a: tracker#36 apply rechecks, reportmre
  • 796bfaceT36A: report validated fixes, failed live SSH check and verified rollbackmre
  • 55257852log: #53 live, #56 mergedmre
  • 78b39f1bMerge hm56-rows: tracker#56 list builders insert oncemre
  • 7aea52batmdb fix: protect owners without slugs and record passing gatesmre
  • 9b3c2559tmdb fix: revalidate planned identities and reserve target idsmre
  • 6da612fclog: T36A tool defectmre
  • d56ee0daT36A: report unsafe TMDB apply revalidation and stop before livemre
  • 08e55255log: HM56 done, T36A startedmre
  • 91bcdf0eAvoid per-row list copies and reproduce keyed-row blockersmre
  • 5fd2ac75status: #36 GOmre
  • 0d253b45mission: T36Amre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre