gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc8da40f3c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Trackerc8da40f3/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

  • c8da40f3|||PR AP61: re-vendor Hybriel set day61 (source a05af47c, bin a11042e5)Tracker
  • 0b86324aMerge branch 'records-dp73' into mainTracker
  • 9ce5f59b|||PR records: DP73 live 613ae0e; deploy.sh keeps 2 backupsTracker
  • 613ae0ecMerge branch 'bs3' into mainTracker
  • 1383264b|||PR BS3: keep shared synchronous sorting fastTracker
  • 63e5ba1a|||PR BS3: guard boot imports and share resumable sort buffersTracker
  • 310613f1Merge branch 'records-dp72' into mainTracker
  • 6f7b61ba|||PR records: deploy-swap fix live, Kunibert findingsTracker
  • c41587d2Merge branch 'bs2' into mainTracker
  • 0dd538a6|||PR BS2: finish the boot index in slices so a booting instance keeps answeringTracker
  • 019d5cedMerge branch 'records-1110' into mainTracker
  • f88ae8b9|||PR records: day56 toggle live, reviewTracker
  • b6b3bb4dMerge branch 'ap56e' into mainTracker
  • 29a26da9|||PR AP56e: guard hidden show helpers during session syncTracker
  • 7c9ec236|||PR AP56e: re-vendor Hybriel set day56 (source 36ae83a8, bin c1f595a2)Tracker
  • 4b54f6f9Merge branch 'records-audit' into mainTracker
  • cab4a3bc|||PR records: branch audit, PR-onlyTracker
  • 641e1c4cMerge branch 'records-dp71' into mainTracker
  • 85a6e9f5|||PR records: DP71 checked in ChromeTracker
  • f5be5f18records: gitoria PR-only planTracker