docbrown/spec/services/articles
Jeremy Friesen 60dc2cc12e
Fixing weighted query hotness grab logic (#15528)
* Fixing weighted query hotness grab logic

Prior to this commit, I carried over (albeit imprecisely) logic from the
LargeForemExperimental.  That logic was to help limit articles to those
that were published since the user's latest page view.

However, I introduced a bug in this transcription.  Now both
LargeForemExperimental and WeightedQueryStrategy use the same logic to
determine the oldest publication date to search for in the feed.

This resolves a bug reported where users were not seeing a large number
of items in their feed.

Incidentally, if a forem has little activity in the 18 hours, there
might be very few items in the feed.

I believe, going forward, we may need to better parameterize how many
hours is considered "stale since last page view".

Related to #15240

* Fixing implementation detail

* Extracting helper method

Prior to this commit, I had introduced a method an put it in a less
ideal module space.  This commit extracts that method to a more readily
shareable module space.

I've added a few more specs to help clarify and verify behavior.

* Updating documentation

* Renaming and documenting variables/constants

* Fixing that which I broke
2021-11-30 12:55:48 -05:00
..
feeds Limiting feed queries (#15523) 2021-11-30 08:02:25 -05: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 [Quick Fix] Fixed a couple of warnings in specs (#15288) 2021-11-07 22:07:05 +03:00
feeds_spec.rb Fixing weighted query hotness grab logic (#15528) 2021-11-30 12:55:48 -05: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