-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Randomized but meaningful collections displayed on collections tab #9672
Conversation
…hile giving collections with meaningful metadata more of a chance of being shown closer to the top Refs: gitcoinco#9614
codewise LGTM! Could you throw in a video as well ? |
There was a problem hiding this 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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this 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 👍
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