FEATURE: experiment with hot sort order (#25274)

This introduces a new experimental hot sort ordering. 

It attempts to float top conversations by first prioritizing a  topics with lots of recent activity (likes and users responding) 

The schedule that updates hot topics is disabled unless the hidden site setting: `experimental_hot_topics` is enabled. 

You can control "decay" with `hot_topic_gravity` and `recency` with `hot_topics_recent_days` 

Data is stored in the new `topic_hot_scores` table and you can check it out on the `/hot` route once 
enabled. 
---------

Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
This commit is contained in:
Sam
2024-01-17 13:01:04 +11:00
committed by GitHub
parent 1a752148a9
commit ebd3971533
10 changed files with 259 additions and 2 deletions

View File

@ -313,11 +313,11 @@ module Discourse
end
def self.filters
@filters ||= %i[latest unread new unseen top read posted bookmarks]
@filters ||= %i[latest unread new unseen top read posted bookmarks hot]
end
def self.anonymous_filters
@anonymous_filters ||= %i[latest top categories]
@anonymous_filters ||= %i[latest top categories hot]
end
def self.top_menu_items