WIP: Fix account favourites ordering #7914

Draft
lambadalambda wants to merge 1 commit from issue-3379-favourites-order into develop

Summary

  • Order account favourites by Like activity id/date instead of status id/date.
  • Use Like activity ids for keyset pagination and Link headers.
  • Add regression tests for ordering, since_id/max_id, min_id, and limit behavior.

Fixes #3379

Testing

  • podman run ... mix test test/pleroma/web/pleroma_api/controllers/account_controller_test.exs (19 tests, 0 failures)
  • podman run ... docker.io/elixir:1.15-alpine mix format --check-formatted
  • Isolated non-root podman full suite: 4814 tests, 0 failures, 2 excluded, 4 skipped

Notes

  • Local root-container full-suite runs are not authoritative for this repo because root can bypass the emoji permission-negative test; the isolated non-root run matches CI behavior better.
## Summary - Order account favourites by Like activity id/date instead of status id/date. - Use Like activity ids for keyset pagination and Link headers. - Add regression tests for ordering, since_id/max_id, min_id, and limit behavior. Fixes #3379 ## Testing - `podman run ... mix test test/pleroma/web/pleroma_api/controllers/account_controller_test.exs` (19 tests, 0 failures) - `podman run ... docker.io/elixir:1.15-alpine mix format --check-formatted` - Isolated non-root podman full suite: `4814 tests, 0 failures, 2 excluded, 4 skipped` ## Notes - Local root-container full-suite runs are not authoritative for this repo because root can bypass the emoji permission-negative test; the isolated non-root run matches CI behavior better.
Fix account favourites ordering
All checks were successful
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/docker-armv7 Pipeline was successful
ci/woodpecker/pr/unit-testing-elixir-1.15 Pipeline was successful
ci/woodpecker/pr/unit-testing-elixir-1.18 Pipeline was successful
a84d16831f
All checks were successful
ci/woodpecker/pr/changelog Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/docker-armv7 Pipeline was successful
ci/woodpecker/pr/unit-testing-elixir-1.15 Pipeline was successful
ci/woodpecker/pr/unit-testing-elixir-1.18 Pipeline was successful
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin issue-3379-favourites-order:issue-3379-favourites-order
git switch issue-3379-favourites-order

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch develop
git merge --no-ff issue-3379-favourites-order
git switch issue-3379-favourites-order
git rebase develop
git switch develop
git merge --ff-only issue-3379-favourites-order
git switch issue-3379-favourites-order
git rebase develop
git switch develop
git merge --no-ff issue-3379-favourites-order
git switch develop
git merge --squash issue-3379-favourites-order
git switch develop
git merge --ff-only issue-3379-favourites-order
git switch develop
git merge issue-3379-favourites-order
git push origin develop
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma!7914
No description provided.