Skip to content

Count all outstanding mail deliveries independently of the recent history limit #17

Open

Description

@LunaStev

Problem

Snapshot calls Deliveries(50) and derives all mail counters from that recent slice. Older queued/deferred/failed jobs disappear from the overview totals once enough newer completed deliveries exist.

Evidence / regression scenario

A temporary database containing one old queued record plus 50 newer delivered records produced snapshot.Mail.Queued=0.

Code references

Audit baseline: 50eb207.

Completion criteria

  • Compute status totals across the complete delivery set; apply the recent-history limit only to the displayed records.
  • Keep XML field names and the existing recent-history size compatible.
  • Add a fixture with one old queued delivery and 50 newer delivered records; the queued counter must remain one.
  • Cover deferred, failed and delivering states, empty storage and repository read failures.

Scope and dependencies

Difficulty: easy.

A bounded backend aggregation correction; do not add queue mutations or redesign the administrator UI.

Backlog index: #12. Keep the change limited to this issue and include focused verification in the pull request.

Activity

  1. added
    bug
    good first issue
    help wanted
    administration
    priority medium
    needs testing
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    administrationbuggood first issuehelp wantedneeds testingpriority medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions