gorse-io / gorse

Gorse open source recommender system engine
https://gorse.io
Apache License 2.0
8.31k stars 749 forks source link

[BUG]: Latest sort skips real latest item #797

Closed TreehouseFalcon closed 5 months ago

TreehouseFalcon commented 5 months ago

Gorse version Gorse master @ 0.4.14 Gorse server @ 0.4.14 Gorse worker @ 0.4.14

Describe the bug Currently the latest sort only shows items from the second most recent item and older. It completely disregards the first most recently created item.

To Reproduce

  1. Purge Gorse
  2. Add an item
  3. See that the item has been added to the cold storage database (postgres)
  4. See there is nothing @ /api/latest
  5. Wait an arbitrary amount of time (30 seconds, 2 hours, ...)
  6. Add another item
  7. See that the first item you added is the only item @ /api/latest

Expected behavior The latest sort should not truncate the most recent item

TreehouseFalcon commented 5 months ago

Disregard, this was an artifact of a bug fix I made in parseSearchDocumentsResult on a forked branch