gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit2bae83732bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre2bae8373/tests/seed-art.hl

2.4 KB

  1. // tests/seed-art.hl — GATE FIXTURE for mission 032 (tracker#33 The Remaining: a title TMDB has no poster for; tracker#37: people
  2. // without a photo), written by tests/browser.mjs into the gate's storage while the app is STOPPED (hybriel#21):
  3. // Backdrop Gate Movie (movie 1401): public, no poster file, no runtime — the fake TMDB has no poster, a backdrop, runtime 135
  4. // Backdrop Gate Series (tv 1402): public, no poster file — the fake TMDB has no poster, a backdrop
  5. // Photo Gate Person (TMDB 3401: has a photo), Faceless Person (3402: none), Unknown Person (3403: TMDB 404) — no photo source,
  6. // added "in the future" so they head /people
  7. import { MPackDB } from 'hl:mpackdb'
  8. import { env } from 'hl:proc'
  9. import { now } from 'hl:time'
  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. personsTable = new MPackDB(file = storageDir + '/persons.db', primaryKey = '@id', indexes = ['!oldId'])
  14. title = (id, tmdbId, type, name, slug, oldId) => {
  15. showsTable.put({ adult = false id = id title = name summary = null tmdbSummary = 'no poster at TMDB' tmdbId = tmdbId
  16. language = 'fi' type = type release = '2026-09-17' year = 2026 image = null urlSegment = slug
  17. episodesCount = null homepage = null imdbId = null seasonsCount = null status = 'Released' tagline = null
  18. tvdbId = null tvmzId = null genres = [] cast = [] seasons = [] oldId = oldId kind = type == 'series' ? 'series' : null
  19. creditsAt = 1 detailsAt = 1 tmdbSync = 1 })
  20. return true
  21. }
  22. title('art0000000000mv1', 1401, 'movie', 'Backdrop Gate Movie', 'Backdrop-Gate-Movie', 'tmdb-movie-1401')
  23. title('art0000000000tv1', 1402, 'series', 'Backdrop Gate Series', 'Backdrop-Gate-Series', 'tmdb-tv-1402')
  24. later = now() + 86400000
  25. person = (id, name, slug, tmdbId, n) => {
  26. personsTable.put({ id = id name = name urlSegment = slug tmdbId = tmdbId oldId = 'tmdb-person-' + tmdbId gender = 0 image = null tmdbProfile = null
  27. adult = false shows = [] added = later + n })
  28. return true
  29. }
  30. person('art00000000000p1', 'Photo Gate Person', 'Photo-Gate-Person', 3401, 3)
  31. person('art00000000000p2', 'Faceless Person', 'Faceless-Person', 3402, 2)
  32. person('art00000000000p3', 'Unknown Person', 'Unknown-Person', 3403, 1)
  33. showsTable.persist()
  34. personsTable.persist()
  35. console.log('seed-art: 2 titles without a poster, 3 people without a photo')

Branches

Latest commits

  • 2bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre
  • 16b3354aMerge branch 'main' into rv28cmre
  • 6f4f27d8log: RV28d started (day38b)mre
  • e6cf03ffmission RV28d: rv28c onto day38bmre
  • 3ccaee19status: live sweep freeze, waiting for Apollomre
  • 49f76ecblog: watch toggle slowness = session sweep freeze (tracker#50)mre
  • 3daf6eddlog: day37 live, still waiting for day39mre
  • 796ba672records: #277 slips to day39mre
  • a9eb9827records: mpackdb integrity clean, all 12 tablesmre
  • 6cf40dbdrecords: mpackdb integrity check, shows uncheckedmre
  • 1880f42arecords: day38 deploy may swap normallymre
  • 9d806e35records: mpackdb freeze until day38mre
  • a660239drecords: day37 lacks #277, wait for day38mre
  • b0abfdeaLOG: Anton hybriel#277 fix ready for day37mre
  • 7b5b2918Tracker: hybriel#277 fix comes in day37mre
  • 7ddbeec8Tracker: RV28c blocked on day35 regressionmre
  • 529096e8RV28c: reportmre
  • a4047071RV28c: re-vendor Hybriel set day35 (source cb9e480d, bin 4bb25cfa)mre
  • 765057fbMerge main into rv28c (LOG.md, STATUS.md: both sides kept)mre
  • bf401884Tracker: RV28c startedmre