docbrown/spec/services/articles
Jeremy Friesen ed78f8f479
Extracting a common calculator for feed weights (#15199)
Prior to this commit, there existed duplicate logic between two of the
primary user feeds.  This refactor introduces a new object which is
solely concerned with calculating scores to add to an article base score.

With this commit, we can introduce A/B testing by changing passing
different config values to `ArticleScoreCalculatorForUser.new`.

My suspicion is that for some of this, we might be able to better
leverage the database via select statements and SQL sums.  However, that
is presently outside of what I'm prepared to tackle.
2021-10-27 04:45:53 -04:00
..
feeds Extracting a common calculator for feed weights (#15199) 2021-10-27 04:45:53 -04:00
attributes_spec.rb Articles update refactoring (#12913) 2021-03-10 13:08:36 +03:00
builder_spec.rb Use new UserSetting and UserNotificationSettings and Ignore Related User Table Fields (#14121) 2021-07-08 09:31:34 -05:00
creator_spec.rb Expand @-mention functionality to posts (#13367) 2021-05-12 07:33:33 -07:00
destroyer_spec.rb Change Notifications::RemoveAllJob to Notifications::RemoveAllWorker and move to sidekiq (#5451) 2020-01-15 12:34:12 -05:00
enrich_image_attributes_spec.rb Asynchronously detect image aspect ratios and apply proper attributes (#15170) 2021-10-26 13:39:25 -07:00
suggest_spec.rb Fix app/services' ruby 2.7 kwargs warnings (#13177) 2021-04-01 18:40:50 -04:00
updater_spec.rb Remove any preexisting mention notifications when article is unpublished (#13749) 2021-05-12 11:48:12 -07:00