tracker
All repositories: gitoria
1.4 KB
// tests/seed-shortids.hl — GATE FIXTURE for mission 060 (tracker.worldapi.org#27, short ids): written by tests/browser.mjs into// the gate's storage while the app is STOPPED (one process per storage, hybriel#21), after every record already has its short// id. Self-assigned ids, one put() each.//// Short Person 01…60 no short id → the next start's backfill gives them one (the resume check stops it part way)// Dupe Person A, B BOTH carry 'aaaa1' → the next start keeps it for A (scanned first) and gives B a new oneimport { MPackDB } from 'hl:mpackdb'import { env } from 'hl:proc'storageDir = env('TRACKER_STORAGE')if (storageDir == null || !storageDir.startsWith('/')) { hlError('set TRACKER_STORAGE, absolute') }personsTable = new MPackDB(file = storageDir + '/persons.db', primaryKey = '@id', indexes = ['!oldId'])let i = 1while (i <= 60) {let nn = i < 10 ? '0' + i : '' + ipersonsTable.put({ id = 'sp00000000000p' + nn name = 'Short Person ' + nn urlSegment = 'Short-Person-' + nn tmdbId = null shows = [] oldId = 'sp' + nn })i = i + 1}personsTable.put({ id = 'sp0000000000dupa' name = 'Dupe Person A' urlSegment = 'Dupe-Person-A' tmdbId = null shows = [] oldId = 'spdupa' shortId = 'aaaa1' })personsTable.put({ id = 'sp0000000000dupb' name = 'Dupe Person B' urlSegment = 'Dupe-Person-B' tmdbId = null shows = [] oldId = 'spdupb' shortId = 'aaaa1' })personsTable.persist()console.log('seed short ids: 62 persons (60 without a short id, 2 sharing aaaa1)')
Branches
Latest commits
- 4e018678|||PR deploy.sh: gates use Tracker's ports 8716-8719 and LC_ALL=C; README: 2 backups keptTracker
- 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