Skip to content

[Bug]: contributor stat aggregation can split one user across two casings (P2) #791

Description

@JSONbored

Problem

src/github/backfill.ts:1852 builds the login set from pr.authorLogin and pr.user?.login then filters with case-sensitive ===. Same user with different casing across payload representations → two ContributorRepoStatRecord rows (the #746 class).

Fix

Normalize to a canonical lowercase key when building/filtering (the codebase's sameLogin helper exists in 7 places).

Acceptance

  • One user = one stat row regardless of casing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:bugGittensor-scored bug fix — scores a 0.05x multiplier.roadmapOn the Wave-2 agent-layer roadmap board (project 9)

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions