Skip to content

Conversation

sharif9876
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? no
Fixed tickets
License MIT

Currently with Relay pagination, if you don't include a first parameter in your query, your response will be limited to 1 result.

This is because the logic was, for instance: $limit + 1, so even if $limit was null, we'd still end up limiting to 1.

@mcg-web mcg-web requested a review from alafon November 14, 2017 06:44
@mcg-web
Copy link
Contributor

mcg-web commented Nov 14, 2017

Thanks for bringing this up @sharif9876! @alafon can you review this please?

Copy link
Contributor

@mcg-web mcg-web left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @alafon if you have time, please review it later...

@mcg-web mcg-web removed the request for review from alafon November 16, 2017 06:44
@mcg-web mcg-web merged commit 3eecd25 into overblog:master Nov 16, 2017
@adri
Copy link
Contributor

adri commented Dec 5, 2017

If you type hint the limit param in the callback, this is actually a BC break.
I had to set defaultValue on all first arguments now.

@mcg-web
Copy link
Contributor

mcg-web commented Dec 5, 2017

@adri I'm not using this part of the bundle so if you much more accustomed with this can you provide some example please? If needed we can patch this in current stable version.

@adri
Copy link
Contributor

adri commented Dec 19, 2017

@mcg-web No need to patch I think, just wanted to mention this for future reference.
Setting a defaultValue makes sense anyway :-)

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.

3 participants