Skip to content
Snippets Groups Projects
  • Pavlos Smith's avatar
    c890797b
    Add controversial ranking (#3205) · c890797b
    Pavlos Smith authored
    * Added controversy rank property to posts and comments, and ability to sort by it
    
    * Triggers instead of schedules tasks, integer -> double, TODO: comments don't seem to get updated with floats, divide SortTypes
    
    * Created PersonSortType
    
    * PersonSortType::MostComments case
    
    * Removed unused PartialOrd trait
    
    * Added new person sort type mappings
    
    * SortType -> PersonSortType
    
    * fixes
    
    * cargo fmt
    
    * fixes after merge with main
    
    * Fixed bug in controversy rank trigger, removed TopX sorts from PersonSortType and added CommentScore instead
    
    * Uncovered enum case
    
    * clippy
    
    * reset translation changes
    
    * translations
    
    * translations
    
    * Added additional hot ordering on controversial posts and comments
    
    * featured local and featured community added to controversy rank index, additional order_by removed (?), added post_score and post_count to PersonSortType
    
    * Woodpecker rerun
    
    * cargo fmt
    
    * woodpecker rerun
    
    * fixed controversy_rank order
    
    * fix
    
    * Readded migration as latest, removed second update statement for setting controversy rank
    c890797b
    History
    Add controversial ranking (#3205)
    Pavlos Smith authored
    * Added controversy rank property to posts and comments, and ability to sort by it
    
    * Triggers instead of schedules tasks, integer -> double, TODO: comments don't seem to get updated with floats, divide SortTypes
    
    * Created PersonSortType
    
    * PersonSortType::MostComments case
    
    * Removed unused PartialOrd trait
    
    * Added new person sort type mappings
    
    * SortType -> PersonSortType
    
    * fixes
    
    * cargo fmt
    
    * fixes after merge with main
    
    * Fixed bug in controversy rank trigger, removed TopX sorts from PersonSortType and added CommentScore instead
    
    * Uncovered enum case
    
    * clippy
    
    * reset translation changes
    
    * translations
    
    * translations
    
    * Added additional hot ordering on controversial posts and comments
    
    * featured local and featured community added to controversy rank index, additional order_by removed (?), added post_score and post_count to PersonSortType
    
    * Woodpecker rerun
    
    * cargo fmt
    
    * woodpecker rerun
    
    * fixed controversy_rank order
    
    * fix
    
    * Readded migration as latest, removed second update statement for setting controversy rank