gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit4043945640439456Merge hm63-searchtext: tracker#63 packed search textmre40439456/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

  • 40439456Merge hm63-searchtext: tracker#63 packed search textmre
  • b7e6b48ePack normalized search text behind numeric offsetsmre
  • b35f53e1log: DP62 stale runtime decisionmre
  • f9593602log: Apollo deploy rule correctionmre
  • 3c95f7f3log: DP62 and HM63 startedmre
  • 9c4397c9mission HM63mre
  • 8dfe42c8mission DP62mre
  • e347fef4Merge rv44: tracker#61 #62 on Hybriel day44mre
  • 8274bcf1log: RV44 done, deploy held for the usage windowmre
  • 1ef7a3b1RV44: report day44 gates and migration/restart proofsmre
  • a5f62f6cRV44: re-vendor Hybriel set day44 (source 222edef7, bin 4f0f263e)mre
  • 6159a248Merge branch 'hm62-personindex' into rv44mre
  • a8923d93log: RV44 startedmre
  • cf28cf77mission RV44mre
  • 585782dfLog: tracker#60 Chrome look, STATUS rewrittenmre
  • 147d0172conductor: caramboleyo is the user, not owner/creatorApollo
  • 21dd0cfblog: #60 live measurement, reviewmre
  • 7793cf94HM62b report: person indexes with fixed mpackdbmre
  • b4c8d3a9Document tracker#62 fixed-index migration and GC proofmre
  • 09d66ed5status: #60 livemre