Skip to content
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

Randomized but meaningful collections displayed on collections tab #9672

Merged

Conversation

tim-schultz
Copy link
Contributor

Sort collections based on updated shuffle_rank that randomizes sort while giving collections with meaningful metadata more of a chance of being shown closer to the top

Refs: #9614

Description

These changes sort collections randomly by giving each collection a shuffle_rank. This shuffle_rank is then increased if the collection and related grants contain meaningful data. When the shuffle ranks is increased it gives the collection a higher chance of appearing close to the top of the page.

Refers/Fixes

Refs: #9614

Testing

Unit tests were added to functions that collections

…hile giving collections with meaningful metadata more of a chance of being shown closer to the top

Refs: gitcoinco#9614
@thelostone-mc
Copy link
Member

codewise LGTM! Could you throw in a video as well ?

Copy link
Contributor

@chibie chibie left a comment

Choose a reason for hiding this comment

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

lgtm!

a vid would be nice to have as @thelostone-mc said

@tim-schultz
Copy link
Contributor Author

Thanks @chibie and @thelostone-mc! Here's a video of it shuffling the collections after the scheduled command being run. Just let me know if I can provide any other information!

grant_collection_shuffle_720.mov

Copy link
Contributor

@jeremyschuurmans jeremyschuurmans left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

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

This looks awesome @schultztimothy and gives us a perfect starting point! Thank you!

@frankchen07 - it would be great if we could get some more direction on exactly how we want to seed the initial rank for the collections, atm Tim is using the age of the collection + some trust scoring (does the grant have a github url, have they passed twitter verification?)
I think this is good for now, and we should add a new ticket in the backlog to explore our options here 👍

@gdixon gdixon merged commit dd5c14b into gitcoinco:master Nov 17, 2021
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.

6 participants