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

Connect terms to their source #351

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Conversation

jacobarriola
Copy link
Contributor

  • Make sure you are making a pull request against the develop branch (left side). Also you should start your branch off our develop.
  • Make sure you are requesting to pull request from a topic/feature/bugfix branch (right side). Don't pull request from your master!

What does this implement/fix? Explain your changes.

Ensures that connections between all products and their terms are properly connected, not just product attributes.

The previous PR (#346) mistakenly assumed that all connections were attributes. What we should be grabbing is the terms instead of the attributes.

Does this close any currently open issues?

#348
#345

Any relevant logs, error output, GraphiQL screenshots, etc?

See issues.

Where has this been tested?

WooCommerce: 3.6
WordPress Version: 5.2

Rather than assume this only runs on `$attributes`, we need to connect the $source to it's given `$tax_object` that is passed instead.
Copy link
Member

@kidunot89 kidunot89 left a comment

Choose a reason for hiding this comment

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

@jacobarriola Got it work locally with a taxonomy created with CPT-UI. Good work 👍.

@kidunot89 kidunot89 merged commit d266581 into wp-graphql:develop Oct 22, 2020
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.

None yet

2 participants