gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitc6d9c86ac6d9c86aOwn the not-found code rule in its componentmrec6d9c86a/lib/apps-table.hl

1006 B

  1. // lib/apps-table.hl — the apps table (gitoria#41) and its plain reads, apart from lib/apps.hl so that lib/events.hl (gitoria#43) can read the apps
  2. // without importing apps.hl (apps.hl raises the ping through events.hl). Statics only. Row shape: see lib/apps.hl.
  3. import { MPackDB } from 'hl:mpackdb'
  4. import { storageDir, countOfList } from './util.hl'
  5. static appsTable = new MPackDB(file = storageDir + '/apps.db', primaryKey = '@id', indexes = ['!keyHash', 'repo'])
  6. // a whole app record with some fields changed (update() replaces the record: every field must be given again)
  7. static appWith = (a, change) => {
  8. o = { id = a.id repo = a.repo name = a.name hookUrl = a.hookUrl keyHash = a.keyHash secret = a.secret createdBy = a.createdBy created = a.created lastDelivery = a.lastDelivery lastStatus = a.lastStatus }
  9. for (k of change.keys()) { o[k] = change[k] }
  10. return o
  11. }
  12. static appsOfRepo = (repoId) => {
  13. all = appsTable.find('repo', repoId)
  14. return countOfList(all) == 0 ? [] : all
  15. }

Branches

Latest commits

  • c6d9c86aOwn the not-found code rule in its componentmre
  • 055424c2Record W61 replacement theme gates, sidebar repro and baselinemre
  • 2ed09441Use layouts theme 17e0f03 for W61 compatibilitymre
  • b8609a91Merge branch 'main' into w61-stylemre
  • 4639caf7Report W61 theme startup blocker and day39 Style probemre
  • 81f0a0bbREADME: two caches were restored by 90b4f72; log W62mre
  • 4a3f557eImport layouts theme ebd00b6 for W61 (startup blocked)mre
  • ab12a257Merge W62: #25 commit page measurements and proc repromre
  • 41323e49gitoria#25: measure commit request costs and reproduce blocking process waitsmre
  • 53ca42b2log: W60 merged, W61 W62 startedmre
  • 80870a33mission W61: style passmre
  • 560fd208Merge W60: helpers, bound forms, login in topics, two form fixes (gitoria#28 #32 #33)mre
  • ac5ba6a4log: W60, #25 measuredmre
  • 220f6342W60: record corrected form proof, full AE and remaining gapsmre
  • 7e31cac5gitoria#28: restrict reply form layout to reply formsmre
  • ae373cfdgitoria#28: keep each reply draft in its thread componentmre
  • eeeebd5agitoria: insert a newly created organization oncemre
  • 34d2d5cagitoria: clear the bound public-key textarea after creationmre
  • 119e54c0W60: restore conductor-owned tracking filesmre
  • 24b479e7W60: record final gates, Chrome failures and AE evidencemre