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
- b7e6b48ePack normalized search text behind numeric offsetsmre
- 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
- 4171672flog: #60 livemre
- f52862a2log: HM62b startedmre
- 88fde2c4mission HM62bmre
- a722e526log: #62 blocked by hybriel#317mre
- 074a7418log: #62 assigned to Tracker; pending rulemre