Skip to content

Fix Sponsor Duplicates #4729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 8, 2025
Merged

Conversation

reardonj
Copy link
Contributor

@reardonj reardonj commented Mar 8, 2025

Fixes #4663

There were actually 2 issues. Some sponsors were duplicated, with and without a tier in the GraphQL response. The switch was also falling through due to lack of breaks. I added code to sort by level + name, then only add a sponsor the first time they are seen.

Testing locally, we can see Aruna now only appears in Gold, and Silver sponsors are no longer duplicated to backers. @jducoeur is no longer duplicated in other contributors.

image

- add breaks
- sort sponsors by level and only add the first one
jducoeur
jducoeur previously approved these changes Mar 8, 2025
Copy link
Member

@jducoeur jducoeur left a comment

Choose a reason for hiding this comment

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

Looks good to me -- thanks!

@armanbilge armanbilge self-requested a review March 8, 2025 03:28
valencik
valencik previously approved these changes Mar 8, 2025
Copy link
Member

@valencik valencik left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

I believe the sponsors page should ultimately move to Typelevel.org, but this fix will be useful both here and there.

Co-authored-by: Andrew Valencik <[email protected]>
@reardonj reardonj dismissed stale reviews from valencik and jducoeur via 8950174 March 8, 2025 13:53
@armanbilge armanbilge removed their request for review March 8, 2025 15:05
@valencik valencik merged commit b0fa43a into typelevel:main Mar 8, 2025
16 checks passed
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.

sponsors.js should probably be deduplicated
3 participants