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: Parent taxonomy term auto sync bug #3105

Closed
alaa-alshamy opened this issue Nov 1, 2022 · 0 comments · Fixed by #3145
Closed

BUG: Parent taxonomy term auto sync bug #3105

alaa-alshamy opened this issue Nov 1, 2022 · 0 comments · Fixed by #3145
Assignees
Labels
bug Something isn't working module:posts Issues related to the Posts Indexable / Feature.
Milestone

Comments

@alaa-alshamy
Copy link
Contributor

Describe the bug

When linking a child taxonomy term with a post, ElasticPress will add the parent and child terms info to the post document in Elasticsearch, but when edit the info of the parent taxonomy term for example changing its slug it will not be synced automatically to the post document in Elasticsearch unlike when editing the child taxonomy term slug it will synced automatically.

Because of that if I queried posts via the new parent taxonomy term slug it will not work until I make a full manual sync via Sync feature of ElasticPress because it will fix the issue via update the parent term info.

Steps to Reproduce

  1. Go to WordPress default categories
  2. Add 2 terms, one of them child to the other
  3. Go to WordPress default posts
  4. Add a new post and link the child term with it
  5. Edit the parent term slug
  6. Go to Elasticsearch and check the post document and you will find the old parent term slug is still exist
  7. Optional: Make a full sync via sync feature of ElasticPress and check the post document again and everything will be ok

Expected behavior

The parent taxonomy term info should be synced automatically when it's got changed

Screenshots

Environment information

  • Device: Laptop
  • OS: Ubuntu 22.04
  • Browser and version: Chrome 107.0.5304.87
  • WordPress version: 6.0.1
  • ElasticPress version: 4.3.1
  • Elasticsearch version: 7.10.2
  • Where do you host your Elasticsearch server? Local docker setup
  • What ElasticPress features do you have currently active? Post Search, Custom Search Results, Related Posts, Protected Content, Terms
  • Plugins and version:
  • Theme and version:
  • Site Health Info:

Additional context

@alaa-alshamy alaa-alshamy added the bug Something isn't working label Nov 1, 2022
@felipeelia felipeelia added this to the 4.5.0 milestone Nov 8, 2022
@MARQAS MARQAS mentioned this issue Nov 22, 2022
4 tasks
@felipeelia felipeelia removed their assignment Dec 5, 2022
@felipeelia felipeelia added the module:posts Issues related to the Posts Indexable / Feature. label Dec 5, 2022
@MARQAS MARQAS assigned felipeelia and unassigned MARQAS Dec 13, 2022
@felipeelia felipeelia assigned MARQAS and unassigned felipeelia Dec 13, 2022
@MARQAS MARQAS assigned felipeelia and unassigned MARQAS Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module:posts Issues related to the Posts Indexable / Feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants