• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

api-platform / core / 25668346367 / 3
29%
master: 37%

Build:
Build:
LAST BUILD BRANCH: feature/http-cache-purge-tag-provider
DEFAULT BRANCH: master
Ran 11 May 2026 11:55AM UTC
Files 1491
Run time 51s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 May 2026 11:50AM UTC coverage: 0.0% (-25.3%) from 25.326%
25668346367.3

push

github

web-flow
fix(hydra): emit hydra:next and hydra:previous on empty cursor-paginated collections (#7961)

* fix(hydra): emit hydra:next and hydra:previous on empty cursor-paginated collections

When a cursor-paginated collection returns no items and the request URL
already contains a cursor filter (e.g. id[gt]=10), navigation links were
silently omitted because populateDataWithCursorBasedPagination() relies on
reading the first and last objects of the collection.

Synthesize the links from the URL parameters instead:
- hydra:next: invert the cursor operator (gt -> lt), keep the value
- hydra:previous: keep the operator, shift the value by items_per_page

If no cursor filter is present in the URL, the behavior is unchanged.

Fixes #7953

Signed-off-by: Guillaume Delré <delre.guillaume@gmail.com>

* test(hydra): add cursor pagination empty collection regression test

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Tickets       | refs #7953
| License       | MIT
| Doc PR        | ∅

Adds CursorPaginatedDummy fixture (canonical QueryParameter form with
ComparisonFilter + SortFilter) and a phpunit functional test asserting
hydra:next / hydra:previous on empty cursor-paginated collections.

graphQlOperations is disabled on the fixture: a latent bug in
FieldsBuilder.php:515 (ServiceLocator::has called with a FilterInterface
instance instead of a service id) crashes the GraphQL schema build when
an object-form filter is combined with a bracketed parameter key.

---------

Signed-off-by: Guillaume Delré <delre.guillaume@gmail.com>
Co-authored-by: soyuka <soyuka@users.noreply.github.com>

0 of 64132 relevant lines covered (0.0%)

0.0 hits per line

Source Files on job 25668346367.3
  • Tree
  • List 1491
  • Changed 564
  • Source Changed 0
  • Coverage Changed 564
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25668346367
  • f88b9122 on github
  • Prev Job for on 4.3 (#25662376871.1)
  • Next Job for on 4.3 (#25727713442.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc