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

Tweak: trending questions #427

Merged
merged 8 commits into from
Jul 18, 2024
Merged

Tweak: trending questions #427

merged 8 commits into from
Jul 18, 2024

Conversation

MrPunyapal
Copy link
Collaborator

@MrPunyapal MrPunyapal commented Jul 18, 2024

Added minimum 2 likes and made likes weightage to 8.0 from 5.0.
also if minutes since answered is greater than 100 minutes, we will use 100 minutes instead

The code changes in `TrendingQuestionsFeed.php` refactor the `builder` method to improve the sorting of trending questions. The formula for calculating the trending score has been updated to give more weight to likes. Additionally, the code removes the condition to filter out questions with less than 2 likes.

This commit message follows the established convention of using the `refactor` prefix for refactoring changes and providing a clear and concise description of the changes made.
Refactor the `TrendingQuestionsFeed` builder method to improve the sorting of trending questions. The formula for calculating the trending score has been updated to give more weight to likes. Additionally, the code removes the condition to filter out questions with less than 2 likes.

This commit message follows the established convention of using the `refactor` prefix for refactoring changes and provides a clear and concise description of the changes made.
@nunomaduro nunomaduro merged commit 7bfab85 into main Jul 18, 2024
@nunomaduro nunomaduro deleted the tweak/trending-questions branch July 18, 2024 18:00
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.

2 participants