Skip to content

fix: zero points showing for all contributors#672

Open
StephZam wants to merge 4 commits intoohcnetwork:mainfrom
StephZam:zero-points
Open

fix: zero points showing for all contributors#672
StephZam wants to merge 4 commits intoohcnetwork:mainfrom
StephZam:zero-points

Conversation

@StephZam
Copy link
Member

@StephZam StephZam commented Jan 12, 2026

Fixes #671
image

Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephZam could you go through this entire queries.ts file and figure out which all other queries also have this issue? 🤔

When doing SELECT with points on activity table, can we coalesce in all such places?

For example:

activityQueries.getAll, activityQueries.getByContributor and all have this issue right?

One of the query here is affecting the aggregate computation of total points of contributors (which would be shown in each the contributor's profile page).

Image

Also update the tests as well to assert edge cases of these... We have quite good amount of tests already written, let's continue improving it.

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.

0 points showing for all contributors

2 participants