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

Bug/#598 term search doesn't include child terms in results #599

Conversation

jasonbahl
Copy link
Collaborator

@jasonbahl jasonbahl commented Dec 4, 2018

  • This adjusts the PostObjectConnectionResolver and the TermObjectConnectionResolver to ensure that search queries include terms that don't have the parent set to 0.

Terms:
screen shot 2018-12-04 at 11 23 42 am

Before this PR:
screen shot 2018-12-04 at 11 23 21 am

After this PR:
screen shot 2018-12-04 at 11 23 31 am

hughdevore and others added 10 commits November 23, 2018 08:45
- update version number in wp-graphql.php
The filter was not firing after the type registry changes because the
fields definition was wrapped in a closure and could only be modified
or filtered inside the closure.
- This adjusts the PostObjectConnectionResolver and the TermObjectConnectionResolver to ensure that search queries include terms that don't have the parent set to 0.
@codecov
Copy link

codecov bot commented Dec 4, 2018

Codecov Report

Merging #599 into develop will decrease coverage by 0.01%.
The diff coverage is 60%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #599      +/-   ##
===========================================
- Coverage    59.28%   59.26%   -0.02%     
===========================================
  Files          107      107              
  Lines         6641     6646       +5     
===========================================
+ Hits          3937     3939       +2     
- Misses        2704     2707       +3
Impacted Files Coverage Δ
src/Type/WPInputObjectType.php 100% <ø> (ø) ⬆️
wp-graphql.php 49.47% <0%> (ø) ⬆️
src/TypeRegistry.php 77.87% <100%> (ø) ⬆️
src/Data/TermObjectConnectionResolver.php 66.32% <33.33%> (-1.05%) ⬇️
src/Data/PostObjectConnectionResolver.php 69.42% <50%> (-0.33%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 292124a...b2870e8. Read the comment docs.

@jasonbahl
Copy link
Collaborator Author

@CodeProKid I also opened a PR for this straight to the release branch
#600

@CodeProKid
Copy link
Member

@jasonbahl can I merge this, or should we wait until we clarify the path forward on #597

@jasonbahl jasonbahl merged commit 87a28fb into wp-graphql:develop Dec 4, 2018
@jasonbahl
Copy link
Collaborator Author

@CodeProKid ah, jumped the gun. . .saw it was approved and merged before I saw your message

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.

4 participants