gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3356fcfc3356fcfclog: #52 blocked, HM53 startedmre3356fcfc/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

  • 3356fcfclog: #52 blocked, HM53 startedmre
  • 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
  • 73010cc0HM52: report replace-navigation search draft regressionmre
  • 1742e92bstatus: DP64 and HM52 runningmre
  • 29ad5b58log: #64 merged, DP64 and HM52 startedmre
  • fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
  • b2e2206dlog: #63 livemre
  • 5831e0e0log: HM64 donemre
  • 4042b923Flatten catalog membership rows into paired slotsmre
  • ea8a759elog: #61 #62 live, DP63 and HM64 startedmre
  • 40439456Merge hm63-searchtext: tracker#63 packed search textmre
  • b7e6b48ePack normalized search text behind numeric offsetsmre
  • b35f53e1log: DP62 stale runtime decisionmre
  • f9593602log: Apollo deploy rule correctionmre
  • 3c95f7f3log: DP62 and HM63 startedmre
  • 9c4397c9mission HM63mre
  • 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