8000 remove all *.class parameters by Tobion · Pull Request #1208 · FriendsOfSymfony/FOSElasticaBundle · GitHub
[go: up one dir, main page]

Skip to content

remove all *.class parameters #1208

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

Merged
merged 1 commit into from
Feb 28, 2017
Merged

remove all *.class parameters #1208

merged 1 commit into from
Feb 28, 2017

Conversation

Tobion
Copy link
Member
@Tobion Tobion commented Feb 28, 2017

To follow symfony best practices, see symfony/symfony#14070

));
}

return new Response('{"took":0,"timed_out":false,"hits":{"total":0,"max_score":0,"hits":[]}}');
Copy link
Member Author
@Tobion Tobion Feb 28, 2017

Choose a reason for hiding this comment

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

This doc doesn't make sense and uses a removed class parameter. The request method is used for any request to ES. So this fake response will be returned for any failure. But only search request return such a response body. Other requests expect a different result. So this hardcoded response will only work for a subset of requests...

@XWB XWB merged commit 564fde9 into FriendsOfSymfony:master Feb 28, 2017
@lsmith77 lsmith77 removed the WIP/POC label Feb 28, 2017
@XWB
Copy link
Member
XWB commented Feb 28, 2017

Thanks 👍

@Tobion Tobion deleted the remove-class-params branch February 28, 2017 15:34
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
0