gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit6da612fc6da612fclog: T36A tool defectmre6da612fc/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

  • 6da612fclog: T36A tool defectmre
  • 08e55255log: HM56 done, T36A startedmre
  • 5fd2ac75status: #36 GOmre
  • 0d253b45mission: T36Amre
  • 2aa22d23log: #36 GOmre
  • 833aee2flog: #50 closed, HM56 startedmre
  • ac58c1e5mission: HM56mre
  • 58979c0clog: HM54 held for decision, DP65 startedmre
  • bb2ebc67log: #64 live, #53 mergedmre
  • 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
  • 2156cc7flog: HM54 reviewmre
  • 9fb82efclog: HM54 gap, fill continuesmre
  • b632eb8dlog: HM53 done, HM54 startedmre
  • ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre
  • 29ad5b58log: #64 merged, DP64 and HM52 startedmre
  • fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre