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

Enable the pagination via cursor (no page-based pagination) #2532

Merged
merged 2 commits into from
Feb 20, 2019

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Feb 19, 2019

Add tests for the SoMany collection

Uses the PropertyAccessor service and don't break the BC

Allow to use multiple fields

Fix cs

To avoid breaking @sroze branch I'm creating a new PR with his work. Original PR is #1915 . I only rebased, squashed and fixed CS.

@soyuka soyuka force-pushed the sroze-cursor-pagination branch 3 times, most recently from 215c084 to dee63df Compare February 19, 2019 19:07
features/hydra/collection.feature Outdated Show resolved Hide resolved
features/hydra/collection.feature Outdated Show resolved Hide resolved
features/hydra/collection.feature Outdated Show resolved Hide resolved
@soyuka
Copy link
Member Author

soyuka commented Feb 20, 2019

Doc pr : api-platform/docs#738

Add tests for the SoMany collection

Uses the PropertyAccessor service and don't break the BC

Allow to use multiple fields

Fix cs

Improve cursor-based pagination tests
@antograssiot
Copy link
Contributor

@soyuka We might still be missing something here that we were probably not doing back when the initial PR was open. I think we should add a $paginationViaCursor property in the ApiRessource class and update the class docblock by adding @Attribute("paginationViaCursor", type="array"),

@soyuka soyuka merged commit d531495 into api-platform:master Feb 20, 2019
@soyuka soyuka deleted the sroze-cursor-pagination branch February 20, 2019 14:26
@norkunas
Copy link
Contributor

Why this was not released in 2.4 ? 🙂

@soyuka
Copy link
Member Author

soyuka commented Apr 15, 2019

Because it did not land in 2.4 but in master, it's an experimental feature.

@norkunas
Copy link
Contributor

Forgot about that lower branches are merged to master..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants