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

fix property name in ContextAwareFilter to support GraphQL #1743

Closed
wants to merge 2 commits into from

Conversation

mneuhaus
Copy link

@mneuhaus mneuhaus commented Mar 2, 2018

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #1714
License MIT
Doc PR -

GraphQL filter properties use a underscore instead of dot to separate nested fields, which causes some issues like #1714 where nested filters are not applied. This change replaces the underscore with a dot in the AbstractContextAwareFilter to have one common syntax further down.

GraphQL filter properties use a underscore instead of dot to seperate nested fields, which causes some issues like api-platform#1714 where nested filters are not applied. This change replaces the underscore with a dot in the AbstractContextAwareFilter to have one commen syntax further down.

closes api-platform#1714
Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

Can you add a test to prevent a future regression please?

Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

I think it's not the good way to fix this.

@mneuhaus
Copy link
Author

mneuhaus commented Mar 5, 2018

any suggestion how/were i should fix this? :)

@dunglas
Copy link
Member

dunglas commented Mar 5, 2018

Using https://github.com/api-platform/core/blob/2.2/src/Util/RequestParser.php#L39 to retrieve the filters should do the trick.

@Simperfit
Copy link
Contributor

@mneuhaus Do you want to try what @dunglas suggested ?

@mneuhaus
Copy link
Author

mneuhaus commented Apr 6, 2018

Hey, yes i did, but sadly got stuck in there and did not manage to fix it there :/

@Simperfit
Copy link
Contributor

Did you push the WIP ? Ill try to help you ;).

@antograssiot
Copy link
Contributor

@Simperfit
Copy link
Contributor

This is fixed by @antograssiot. in #1868

Thanks anyway for this PR!

@Simperfit Simperfit closed this Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants