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. |
||
|---|---|---|
| .. | ||
| feeds | ||
| attributes_spec.rb | ||
| builder_spec.rb | ||
| creator_spec.rb | ||
| destroyer_spec.rb | ||
| enrich_image_attributes_spec.rb | ||
| suggest_spec.rb | ||
| updater_spec.rb | ||