docbrown/app/services/articles
Jeremy Friesen 38ee9ef309
Refactoring so relevancy levers define expected variables (#17591)
Prior to this commit, the SQL fragments included variables that were set
configured at a global level.

With this commit, we're now saying that each lever "knows" what variable
it needs; and providing the means at lever declaration time to "say"
what those variable names are.  (e.g. `Articles::Feeds::LEVER_CATALOG`).

Then as part of the variant configuration (in the
`./config/feed-variants/*.json` files) we now include the expected value
of those parameters; which by convention (and coercion) are integers.

This relates to forem/forem#17584 because we want to move from a
privileged user reaction that has two values (`negative` and `positive`)
into four values (`very_negative`, `negative`, `positive`, and
`very_positive`).  To do that, we'll create a new lever; but that's for
another pull request.
2022-05-06 13:54:33 -04:00
..
feeds Refactoring so relevancy levers define expected variables (#17591) 2022-05-06 13:54:33 -04:00
attributes.rb Articles update refactoring (#12913) 2021-03-10 13:08:36 +03:00
builder.rb Ensuring /new remains a call to action end point for DEV (#17294) 2022-04-14 14:50:40 -04:00
creator.rb Remove webhooks and related code (#15827) 2021-12-28 10:56:37 +07:00
destroyer.rb Rubocop fixes (#15892) 2021-12-28 09:11:41 -06:00
enrich_image_attributes.rb Refactor FastImage usage (#16304) 2022-01-26 09:48:03 -05:00
get_user_stickies.rb Optimize GetUserStickies (#13541) 2021-04-27 12:47:49 -04:00
page_view_updater.rb Ensuring we don't track views of author or unpublished (#16143) 2022-01-18 11:23:18 -05:00
suggest.rb Extracting a not_authored_by scope (#16123) 2022-01-17 15:20:49 -05:00
suggest_stickies.rb Extracting a not_authored_by scope (#16123) 2022-01-17 15:20:49 -05:00
updater.rb Context Notifications (#17243) 2022-04-18 10:30:30 +03:00