Skip to content

Conversation

@noahlevi
Copy link
Collaborator

Contribution::all() does a left join on biography, each biography row creates a duplicate contribution row. When a contribution has 2 biographies, the join returns 2 rows with the same contribution columns, so the GraphQL work query shows duplicates. Adding distinct_on(contribution_id) collapses those join duplicates so each contribution appears once.

@noahlevi noahlevi changed the title fix: deduplicate contributions when joined with biographies Deduplicate contributions when joined with biographies Dec 23, 2025
@noahlevi noahlevi changed the title Deduplicate contributions when joined with biographies Deduplicate contributions Dec 23, 2025
@ja573 ja573 merged commit 4b0664f into launch/v1.0.0 Dec 23, 2025
6 of 7 checks passed
@ja573 ja573 deleted the fix/contributions-duplication branch December 23, 2025 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants