Skip to content

Org-level monthly time-series storage (productionize org monthly data) #109

Description

@peetzweg

Part of #106 — give organizations the same monthly time-series users already have, so org charts and org trends (sub-issue D) are possible.

Problem

On main, orgs store only lifetime totals (entities + org_members) — no monthly resolution. So there's no org commit chart and no way to compute an org's month-over-month change. Users already have monthly_commits (all six types per completed month); orgs have nothing equivalent.

What exists to build on

The unmerged #102 / feature-async-org-indexing branch already prototypes this: an org_member_monthly table (per org/member/month), rolled up into org-level monthly_commits rows, plus the org commit chart in OrgView. This issue is about productionizing that — landing the migration, the worker fill path, and the rollup — on top of the cadence (A) and runner (B) decisions.

Acceptance criteria

  • Per-month org contribution storage lands (migration for org_member_monthly or equivalent) — the DB change we've deliberately deferred
  • Worker fills org monthly data politely (paced, idempotent, resumable), rolled up into org-level monthly_commits
  • Org page renders the commit chart from stored monthly rows
  • Plays nicely with Keep historical org memberships — departed members silently shrink company totals #97 (departed members must not silently shrink historical months)

Depends on

Cadence (A) + runner (B). Enables D (org MoM indicator). Supersedes the org half of #102.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions