gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6c1936f96c1936f9log+status: GC planmre6c1936f9/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

  • 6c1936f9log+status: GC planmre
  • 2846a840log: m569 result, GC hypothesismre
  • b24cd2d5log: Anton on hl:fetch, mission 569mre
  • 7d42cac1log+status: SL1 measured, fetch stalls remainmre
  • 8e5f2ceflog: SL1 deployedmre
  • 29f34212log: SL1 deploy startedmre
  • 529dd741Merge sl1-slices: slice details repair and person fill (SL1)mre
  • 8a83316blog: SL1 result, session drain slowermre
  • 35e93e8dSL1: slice the details repair and person fill: catalog lists changed in place, 40 ms fill steps, people created in steps, writes one table per tickmre
  • 72c9119flog+status: SL1 startedmre
  • d74620fcmission SL1: slice repair and person fillmre
  • 5d542d73log+status: ST1 resultmre
  • 3945eb81ST1: stall diagnosis reportmre
  • 404733aclog: ST1 startedmre
  • 3e3d5a55mission ST1: stall diagnosismre
  • 9c3180eblog+status: RV28d measured after deploymre
  • fdf10b1alog: RV28d deployed on day38bmre
  • 320005e9log: RV28d merged, deploy runningmre
  • a8fef27dRV28d: reportmre
  • 2bae8373RV28d: re-vendor Hybriel set day38b (source 1e554d75, bin 5ff2a46d)mre