gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit8dfe42c88dfe42c8mission DP62mre8dfe42c8/tools/count-migrated.hl

1.4 KB

  1. // tools/count-migrated.hl — mission 070: how many records keep a migrated value the sync replaced (`migratedSummary`, `migratedTitle`,
  2. // `migratedGenres`, `migratedHomepage`, `migratedTagline`; seasons/episodes `migratedTitle`/`migratedSummary`) + a few examples.
  3. // ONLY on a COPY or the stopped app: TRACKER_STORAGE=$PWD/.scratch/realdata/storage/mpackdb ./bin/hybriel tools/count-migrated.hl
  4. import { showsTable, seasonsTable, episodesTable } from '../lib/shows.hl'
  5. c = { summary = 0 title = 0 genres = 0 homepage = 0 tagline = 0 seasonTitle = 0 seasonSummary = 0 episodeTitle = 0 episodeSummary = 0 }
  6. ex = []
  7. for (s of showsTable.find(null, null)) {
  8. if (s.migratedSummary != null) { c.summary = c.summary + 1 }
  9. if (s.migratedTitle != null) { c.title = c.title + 1 if (ex.length < 8) { ex.push(s.migratedTitle + ' → ' + s.title) } }
  10. if (s.migratedGenres != null) { c.genres = c.genres + 1 }
  11. if (s.migratedHomepage != null) { c.homepage = c.homepage + 1 }
  12. if (s.migratedTagline != null) { c.tagline = c.tagline + 1 }
  13. }
  14. for (s of seasonsTable.find(null, null)) {
  15. if (s.migratedTitle != null) { c.seasonTitle = c.seasonTitle + 1 }
  16. if (s.migratedSummary != null) { c.seasonSummary = c.seasonSummary + 1 }
  17. }
  18. for (e of episodesTable.find(null, null)) {
  19. if (e.migratedTitle != null) { c.episodeTitle = c.episodeTitle + 1 }
  20. if (e.migratedSummary != null) { c.episodeSummary = c.episodeSummary + 1 }
  21. }
  22. console.log('migrated kept: ' + JSON.stringify(c))
  23. for (x of ex) { console.log(' title: ' + x) }

Branches

Latest commits

  • 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
  • 06f6ae8fHM62 report: mpackdb index gapmre