Report lifecycle/status metadata (pending/removed/published) #10

Closed
opened 2026-07-02 17:44:29 +00:00 by JMR-dev · 0 comments
JMR-dev commented 2026-07-02 17:44:29 +00:00 (Migrated from github.com)

Context

Supports both JMR-dev/LibreMail#34 and #35: the weekly job needs to know which reports haven't been removed or already published.

Scope

  • Define and store lifecycle/status metadata per report: pending, removed, published.
  • Query path to list all pending reports (used by the weekly job, #13).
  • Transition report to removed (used by #11) or published (used by #15).

Acceptance criteria

  • Given a mix of reports in different states, the "list pending reports" query returns exactly the pending ones.

Dependencies

Depends on #9 (reports need to exist in storage first).

## Context Supports both [JMR-dev/LibreMail#34](https://github.com/JMR-dev/LibreMail/issues/34) and [#35](https://github.com/JMR-dev/LibreMail/issues/35): the weekly job needs to know which reports haven't been removed or already published. ## Scope - [ ] Define and store lifecycle/status metadata per report: `pending`, `removed`, `published`. - [ ] Query path to list all `pending` reports (used by the weekly job, #13). - [ ] Transition report to `removed` (used by #11) or `published` (used by #15). ## Acceptance criteria - Given a mix of reports in different states, the "list pending reports" query returns exactly the `pending` ones. ## Dependencies Depends on #9 (reports need to exist in storage first).
Sign in to join this conversation.