Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
TreehouseFalcon opened this issue Jan 10, 2024 · 1 comment
Closed

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

TreehouseFalcon opened this issue Jan 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@TreehouseFalcon
Copy link
Contributor

TreehouseFalcon commented Jan 10, 2024

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 TreehouseFalcon added the bug Something isn't working label Jan 10, 2024
@TreehouseFalcon TreehouseFalcon changed the title [BUG]: Latest sort does not show real latest item [BUG]: Latest sort skips real latest item Jan 10, 2024
@TreehouseFalcon
Copy link
Contributor Author

TreehouseFalcon commented Jan 10, 2024

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

@TreehouseFalcon TreehouseFalcon closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant