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

[Backport] New algorithm for filter 'most active' #3098

Merged
merged 2 commits into from
Dec 13, 2018

Conversation

microweb10
Copy link
Member

References

Backports AyuntamientoMadrid#1742

Objectives

With the new algorithm that calculates the hot_score we try to prioritize the Debates/Proposals that has received more positive votes per day within the recent period. This period is configurable in settings and is set to 1 month/31 days by default.

It will also have in consideration the negative votes (if applicable), so a Debate with same positive votes and less negative votes will have higher score.

Notes

⚠️ For Release Notes:
A new Admin Setting has been added, execute the following rake task to add the Admin Setting to your existing DB.

bin/rake settings:create_hot_score_period_setting RAILS_ENV=production

And the following rake task to recalculate the hot_score for all resources.

bin/rake votes:reset_hot_score RAILS_ENV=production

@microweb10 microweb10 force-pushed the backport-1742-new_most_active_algorithm branch from f0bf9e9 to ef835be Compare December 13, 2018 10:42
@microweb10 microweb10 merged commit 1be64a5 into master Dec 13, 2018
@microweb10 microweb10 deleted the backport-1742-new_most_active_algorithm branch December 13, 2018 11:46
@microweb10 microweb10 added this to Release 0.18 in Roadmap Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants