gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitd049b8b8d049b8b8Log: HM50 live, #52 donemred049b8b8/tools/hm62-migration-repro.hl

874 B

  1. // HM62 minimal index migration and rollback/redeploy reproduction.
  2. import { MPackDB } from 'hl:mpackdb'
  3. import { env } from 'hl:proc'
  4. phase = env('HM62_PHASE')
  5. db = new MPackDB(file = env('HM62_DB'), primaryKey = '@id', indexes = phase == 'build' || phase == 'verify' ? ['!oldId', 'urlSegment', 'tmdbId'] : ['!oldId'], compact = false)
  6. if (phase == 'seed') { db.put({ id = 'first' oldId = 'first' urlSegment = 'First' tmdbId = 1 }) }
  7. if (phase == 'oldwrite') { db.put({ id = 'second' oldId = 'second' urlSegment = 'Second' tmdbId = 2 }) }
  8. if (phase == 'build') { console.log('build first=' + db.find('urlSegment', 'First').length) }
  9. if (phase == 'verify') {
  10. console.log('verify pk=' + (db.fetch('second') != null))
  11. console.log('verify slug=' + db.find('urlSegment', 'Second').length)
  12. console.log('verify tmdb=' + db.find('tmdbId', '2').length)
  13. }
  14. db.persist()
  15. db.close()

Branches

Latest commits

  • d049b8b8Log: HM50 live, #52 donemre
  • 6d05fa37Log: HM50 Part A mergedmre
  • 1c7dab74HM50: the shell reads the framework's online state, netProbe removed (tracker#55)mre
  • e8b91697HM50: search address follows the text via navigate(path, replace = true) (tracker#52)mre
  • 6fe1896cHM50: re-vendor Hybriel set day50 (source 0ae38232, bin d3ef9d16)mre
  • 2f391aa9Log: HM50 startedmre
  • 4b59c03dHM50 mission: doc pathmre
  • ed526d67HM50 missionmre
  • 2f986ca3Log: RT50 passmre
  • 1c4715a4RT50 mission: day50 repro retestmre
  • 57d1c0dcLog: day50 retest requestmre
  • 60b1f419Log: Anton #336 result, wake checkmre
  • 919a18aalog: scratchmre
  • 6b504440status tidymre
  • 9332bd10log: DP70 livemre
  • be11daa0DP70 brief fixmre
  • 886a7028DP70 brief, HM67 mergedmre
  • b41cdd6dMerge hm67-searchids: packed search IDsmre
  • 385904eaReport HM67 matched heap measurements and gate proofmre
  • e5c9b659Pack retained search IDs into UTF-8 bytesmre