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

Weight most downloads/liked plugins by last update #144

Open
mrclay opened this issue Sep 16, 2016 · 0 comments
Open

Weight most downloads/liked plugins by last update #144

mrclay opened this issue Sep 16, 2016 · 0 comments

Comments

@mrclay
Copy link
Member

mrclay commented Sep 16, 2016

If age is more than say, 2 years old, age should start to outweigh the other factor(s).

This expression yields 1 until age 2 then decreases to 0 at age 5:

years_old = (UNIX_TIMESTAMP() - e.last_action) / 31556900
freshness = (3 - MIN(3, MAX(0, years_old - 2))) / 3;
= (3 - MIN(3, MAX(0, (UNIX_TIMESTAMP() - e.last_action) / 31556900 - 2))) / 3

Small problems: we don't touch the last_action of the parent project when adding a release (I think). Obviously we'll have to cache this ordering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant