Skip to content

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Apr 7, 2025

Description

This will be adding support for wp-graphql@2

Most of this PR is actually not about that - instead it updates test setup to not use no longer active wordpress extensions and adds replacements and generally upgrades extensions, wordpress version and wp-graphql to latest v1 in first commit.

Once that is settled, follow up to update to wp-graphql@2 was added which comparatively as much smaller change.

Addresses https://linear.app/netlify/issue/FRB-1648/gatsby-source-wordpress-breaks-with-wpgraphql-20

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 7, 2025
@pieh pieh added topic: source-wordpress Related to Gatsby's integration with WordPress and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Apr 7, 2025
@pieh pieh marked this pull request as ready for review April 7, 2025 16:36
mrstork
mrstork previously approved these changes Apr 7, 2025
expect(data[`allWpMenuItem`].totalCount).toBe(4)
expect(data[`allWpPostFormat`].totalCount).toBe(0)
expect(data[`allWpContentType`].totalCount).toBe(9)
expect(data[`allWpContentType`].totalCount).toBe(7)
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the source of this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Swapping wp-graphql-gutenberg extension to wp-graphql-content-blocks, previous plugin created actual wp content types, while new one does not

@github-project-automation github-project-automation bot moved this to To cherry-pick in V5 Release hotfixes Apr 8, 2025
@pieh pieh merged commit d8cc254 into master Apr 8, 2025
38 checks passed
@pieh pieh deleted the feat/wp-graphql-2-support branch April 8, 2025 05:35
pieh added a commit that referenced this pull request Apr 8, 2025
* fix: upgrade wordpress and wordpress plugins keeping wp-graphql on latest v1

* feat: support wp-graphql@2

* chore: format comment

(cherry picked from commit d8cc254)
@pieh pieh moved this from To cherry-pick to Backport PR opened in V5 Release hotfixes Apr 8, 2025
pieh added a commit that referenced this pull request Apr 8, 2025
* fix: upgrade wordpress and wordpress plugins keeping wp-graphql on latest v1

* feat: support wp-graphql@2

* chore: format comment

(cherry picked from commit d8cc254)

Co-authored-by: Michal Piechowiak <[email protected]>
@pieh pieh moved this from Backport PR opened to Backported in V5 Release hotfixes Apr 8, 2025
@pieh pieh moved this from Backported to Published in V5 Release hotfixes Apr 9, 2025
@pieh
Copy link
Contributor Author

pieh commented Apr 9, 2025

Released in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: source-wordpress Related to Gatsby's integration with WordPress

Projects

Status: Published

Development

Successfully merging this pull request may close these issues.

2 participants