-
Notifications
You must be signed in to change notification settings - Fork 441
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
Filter API inconsistencies #1588
Comments
Related: #331 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. If you believe this issue is still valid, please open a new issue and mark this as a related issue. |
Removing While filter consistency is still an issue, the specific inconsistencies will need to be reviewed before we can figure out an implementation plan (and what can be addressed via breaking/nonbreaking changes). |
I am willing to contribute on this issue . I went through the codebase and I think I can fix it. I am bit confused if this issue is on hold or still active . I can start working on it once my doubt is cleared . |
Hey @tihom4537 , thanks so much for your offer to contribute 💪! The issue is still valid along with the rest of #331. The reason the status is
Let me know if you have any further questions about this ticket or any others you might want to pick up instead. (Also feel free to ask in the #maintainers channel on Slack). |
I have generated a pull request. Do consider it for the review . |
Hi @tihom4537 The effort is appreciated. However, as I mentioned above, this is currently on hold. It likely won't be merged until we start working on v2.0, and that's assuming no other changes invalidate it. |
In the
graphql_map_input_fields_to_wp_query
filter, the $post_type is the last parameter. This is inconsistent with the othergraphql_map_input_fields_*
filters. For example ingraphql_map_input_fields_to_get_terms
the $taxonomy parameter is the third parameter (while the $context & $info parameters are the last two in all of thegraphql_map_input_fields_*
filters). For consistency sake, it may make sense to update this filter.wp_query filter:
wp-graphql/src/Data/Connection/PostObjectConnectionResolver.php
Line 431 in 560bd4a
get_terms filter:
wp-graphql/src/Data/Connection/TermObjectConnectionResolver.php
Line 225 in 560bd4a
The text was updated successfully, but these errors were encountered: