gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit451db7cd451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre451db7cd/tests/seed-franchiseseed.hl

1.4 KB

  1. // tests/seed-franchiseseed.hl — GATE FIXTURE for tracker.worldapi.org#40 (mission 034, tests/franchiseseed.mjs): what the
  2. // CREATOR made by hand before the curated seed ever ran, written into the gate's storage AFTER tests/seed-show.hl and
  3. // tests/seed-franchises.hl, before the server starts:
  4. // the franchise "Gate Wars" (the data file names one too → the seed must ADOPT it, not make "Gate-Wars-2")
  5. // the timeline "Gate Creator Line" with Gate Alien 3 only (the file names one too → the seed must leave it ALONE)
  6. // Self-assigned ids, one put() each.
  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. franchisesTable = new MPackDB(file = storageDir + '/franchises.db', primaryKey = '@id', indexes = ['!slug'])
  13. timelinesTable = new MPackDB(file = storageDir + '/timelines.db', primaryKey = '@id', indexes = ['!slug'])
  14. franchisesTable.put({ id = 'fs00000000000f01' name = 'Gate Wars' slug = 'Gate-Wars' shortId = null summary = 'The creator\'s own franchise.' created = now() })
  15. timelinesTable.put({ id = 'fs00000000000t01' name = 'Gate Creator Line' slug = 'Gate-Creator-Line' franchise = null order = ['fr0000000000f103'] source = 'editor'
  16. tmdbCollection = null created = now() })
  17. franchisesTable.persist()
  18. timelinesTable.persist()
  19. console.log('seed-franchiseseed: 1 franchise, 1 timeline')

Branches

Latest commits

  • 451db7cdgc1: show page and check clicks read the kept watched set instead of building one from a by-value copy of every watchmre
  • ddb4127egc1: TRACKER_QSTATS=1 logs queue and cache sizes every 10 s (measurement only)mre
  • da60547fstatus: GC1 done, backup bugmre
  • e4171021log: GC1 result, backup hard-link bugmre
  • f1597214deploy.sh backup: tar --hard-dereference (hot tar stored mpackdb sidecars as hard links to .sessions files)mre
  • 6b58571elog: GC windowmre
  • 5c8baa1fdeploy lock: hold only around deploy.shmre
  • b8dac822log: hybriel#309mre
  • bf676d9elog: GC1 startedmre
  • c7828541mission GC1mre
  • ef949994conductor: neutral ticket rulemre
  • 89e91ef3log: RV39 livemre
  • ee2b677alog: RV39 deployingmre
  • c1c4178cMerge branch 'rv39'mre
  • a016e9abReapply "Merge branch 'rv39'"mre
  • f29e2502log: RV39 gate fixmre
  • d9fce111browser gate #26: exact frame count incl. SL1 people step (hybriel#308)mre
  • ad529ac1log: m572 verdictmre
  • 1b37d404RV39 on hold: hybriel#308mre
  • f9127c68Revert "Merge branch 'rv39'"mre