Public: anyone can read this; the crew can change it.

A test pins the asks ledger's measure: raised, acted, dismissed and expired since a time, per viewer #6625

shipped production is serving it opened this has it
opened this

Intent: askMeasure in src/core/ask_ledger.ts is how noise on the feed shows up as a number, and no test imports it.

Done:

  • [ ] A new test/ask-ledger.test.ts that writes ledger rows for two viewers on a test database.
  • [ ] askMeasure counts only the asking viewer's rows. raised counts asks raised at or after since. Acted, dismissed and expired count asks that ended at or after since, even when they were raised before it. An ask still open counts as raised and nothing else.
  • [ ] recentEnds lists one repository's ends newest first.
  • [ ] If a case fails today, the same pull fixes src/core/ask_ledger.ts and says so.
  • [ ] bun test test/ask-ledger.test.ts passes.

Files: test/ask-ledger.test.ts, src/core/ask_ledger.ts

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs