Skip to content

Commit edbd31c

Browse files
authored
devops: Name officially changed to "WPGraphQL for WooCommerce" (#900)
* devops: Name officially changed to "WPGraphQL for WooCommerce" * devops: GA workflow environment updated * devops: GA workflow environment updated * devops: composer-git-hooks downgraded to "2.8.5" * devops: Unstable session manager tests skipped * chore: cleanup applied * devops: Docker configurations updated * devops: Docker configurations updated * devops: Docker configurations updated * devops: Docker configurations updated * devops: Docker configurations updated
1 parent 32f8ba2 commit edbd31c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+262
-169
lines changed

.github/CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Contribute to WPGraphQL WooCommerce
1+
## Contribute to WPGraphQL for WooCommerce
22

3-
WPGraphQL WooCommerce (WooGraphQL) welcomes community contributions, bug reports and other constructive feedback.
3+
WPGraphQL for WooCommerce (WooGraphQL) welcomes community contributions, bug reports and other constructive feedback.
44

55
When contributing please ensure you follow the guidelines below so that we can keep on top of things.
66

.github/workflows/continous-integration.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ jobs:
2222
runs-on: ubuntu-latest
2323
strategy:
2424
matrix:
25-
php: ['8.1', '8.0', '7.4']
26-
wordpress: ['6.3', '6.2', '6.1', '6.0']
25+
php: ['8.3', '8.2', '8.1', '7.4']
26+
wordpress: ['6.7', '6.3', '6.1']
2727
composer_version: ['v2']
2828
include:
29-
- php: '7.4'
30-
wordpress: '6.2'
29+
- php: '8.3'
30+
wordpress: '6.7'
3131
coverage: '--coverage --coverage-xml'
3232
xdebug: 1
3333
- php: '8.1'
3434
wordpress: '6.1'
3535
debug: '--debug'
36-
- wordpress: '6.2'
36+
- wordpress: '6.3'
3737
hpos: 1
3838

3939
fail-fast: false

.github/workflows/lint-code.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
- name: Setup PHP
2424
uses: shivammathur/setup-php@v2
2525
with:
26-
php-version: 8.0
26+
php-version: 8.1
2727
extensions: mbstring, intl
28-
tools: composer
28+
tools: composer:v2
2929

3030
- name: Get Composer Cache Directory
3131
id: composer-cache

Dockerfile

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
ARG PHP_VERSION
22
FROM wordpress:php${PHP_VERSION}-apache
33

4-
ARG XDEBUG_VERSION=2.9.6
5-
64
RUN apt-get update; \
75
apt-get install -y --no-install-recommends \
86
# WP-CLI dependencies.
@@ -13,14 +11,15 @@ RUN apt-get update; \
1311
wget;
1412

1513
# Setup xdebug. The latest version supported by PHP 5.6 is 2.5.5.
16-
RUN pecl install "xdebug-${XDEBUG_VERSION}"; \
14+
RUN pecl install xdebug; \
1715
docker-php-ext-enable xdebug; \
1816
echo "xdebug.default_enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
1917
echo "xdebug.remote_autostart = 0" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
2018
echo "xdebug.remote_connect_back = 0" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
2119
echo "xdebug.remote_enable = 1" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
2220
echo "xdebug.remote_port = 9000" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
23-
echo "xdebug.remote_log = /var/www/html/xdebug.log" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini;
21+
echo "xdebug.remote_log = /var/www/html/xdebug.log" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini; \
22+
echo "xdebug.mode = coverage" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini;
2423

2524
# Install PDO MySQL driver.
2625
RUN docker-php-ext-install pdo_mysql

README.md

+18-13
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<p align="center">
2-
<img src="./logo.svg" width="200px" alt="WPGraphQL WooCommerce (WooGraphQL) Logo" />
2+
<img src="./logo.svg" width="200px" alt="WPGraphQL for WooCommerce (WooGraphQL) Logo" />
33
</p>
44

5-
# WPGraphQL WooCommerce (WooGraphQL)
5+
# WPGraphQL for WooCommerce
66

77
<a href="https://woographql.com" target="_blank">Website</a> • <a href="https://woographql.com/docs" target="_blank">Docs</a> • <a href="https://woographql.com/schema" target="_blank">Schema</a> • <a href="https://woographql.com/playground" target="_blank">Playground</a> • <a href="https://woographql.com/about" target="_blank">About</a> • <a href="https://join.slack.com/t/wp-graphql/shared_invite/zt-3vloo60z-PpJV2PFIwEathWDOxCTTLA" target="_blank">Join Slack</a>
88

9-
[![Automated-Testing](https://github.com/wp-graphql/wp-graphql-woocommerce/workflows/Automated-Testing/badge.svg?branch=develop)](https://github.com/wp-graphql/wp-graphql-woocommerce/actions?query=workflow%3A%22Automated-Testing%22) [![Coding-Standards](https://github.com/wp-graphql/wp-graphql-woocommerce/workflows/Coding-Standards/badge.svg?branch=develop)](https://github.com/wp-graphql/wp-graphql-woocommerce/actions?query=workflow%3A%22Coding-Standards%22) [![Coverage Status](https://coveralls.io/repos/github/wp-graphql/wp-graphql-woocommerce/badge.svg?branch=develop)](https://coveralls.io/github/wp-graphql/wp-graphql-woocommerce?branch=develop) [![Financial Contributors on Open Collective](https://opencollective.com/woographql/all/badge.svg?label=financial+contributors)](https://opencollective.com/woographql)
9+
[![Automated-Testing](https://github.com/wp-graphql/wp-graphql-woocommerce/workflows/Automated-Testing/badge.svg?branch=develop)](https://github.com/wp-graphql/wp-graphql-woocommerce/actions?query=workflow%3A%22Automated-Testing%22) [![Coding Standards](https://github.com/wp-graphql/wp-graphql-woocommerce/actions/workflows/lint-code.yml/badge.svg)](https://github.com/wp-graphql/wp-graphql-woocommerce/actions/workflows/lint-code.yml) [![Coverage Status](https://coveralls.io/repos/github/wp-graphql/wp-graphql-woocommerce/badge.svg?branch=develop)](https://coveralls.io/github/wp-graphql/wp-graphql-woocommerce?branch=develop) [![Financial Contributors on Open Collective](https://opencollective.com/woographql/all/badge.svg?label=financial+contributors)](https://opencollective.com/woographql)
1010

1111
## Install
1212

@@ -21,7 +21,7 @@
2121
**This method is recommended for users with unique installations like WP Bedrock or SpinupWP.**
2222

2323
1. Install [WordPress](https://composer.rarst.net/) and [WooCommerce](https://wpackagist.org/search?q=woocommerce&type=plugin&search=).
24-
2. Install WPGraphQL and WooGraphQL by running `composer require wp-graphql/wp-graphql wp-graphql/wp-graphql-woocommerce`.
24+
2. Install WPGraphQL and WPGraphQL for WooCommerce by running `composer require wp-graphql/wp-graphql wp-graphql/wp-graphql-woocommerce`.
2525
3. Set your GraphQL client endpoint to your site's GraphQL endpoint. For typical Bedrock or SpinupWP setups, the default will be `your-store.domain/wp/graphql`.
2626

2727
### Optional Extras
@@ -61,9 +61,9 @@ WooCommerce's Custom Post Types (CPTs) and most data objects are managed by a da
6161

6262
This flexibility also lets WooCommerce store metadata for these CPTs in separate tables, and the data doesn't necessarily have to reside in the same database.
6363

64-
The data store system and its object managers are WooGraphQL's primary contact points. Unlike standard CPTs, which use a **WP_Post** object for data sourcing and a **WPGraphQL\Model\Post** object for modeling, WooGraphQL engages object managers for its data source. Each object type has a unique model with distinct permissions and restrictions.
64+
The data store system and its object managers are WooGraphQL's primary contact points. Unlike standard CPTs, which use a **WP_Post** object for data sourcing and a **WPGraphQL\Model\Post** object for modeling, WPGraphQL for WooCommerce engages object managers for its data source. Each object type has a unique model with distinct permissions and restrictions.
6565

66-
Such a setup has resulted in some disparities between the schema where WooGraphQL support might be lacking. We apologize for any inconvenience. Both I and the entire **WPGraphQL** team are actively working to harmonize WooGraphQL with all **WPGraphQL** and **WPGraphQL ACF** features.
66+
Such a setup has resulted in some disparities between the schema where WPGraphQL for WooCommerce support might be lacking. We apologize for any inconvenience. Both I and the entire **WPGraphQL** team are actively working to harmonize WPGraphQL for WooCommerce with all **WPGraphQL** and **WPGraphQL ACF** features.
6767

6868
Thank you for your patience :smile:
6969
[@kidunot89](https://github.com/kidunot89)
@@ -75,7 +75,7 @@ Thank you for your patience :smile:
7575

7676
## For WooCommerce Extensions Support
7777

78-
**[WooGraphQL Pro](https://woographql.com/pro)** is an extension of WPGraphQL WooCommerce that provides compatibility with a variety of popular WooCommerce extensions. This compatibility empowers you to leverage these extensions within the context of the GraphQL API, thereby enabling you to build more dynamic and powerful headless eCommerce applications.
78+
**[WooGraphQL Pro](https://woographql.com/pro)** is an extension of WPGraphQL for WooCommerce that provides compatibility with a variety of popular WooCommerce extensions. This compatibility empowers you to leverage these extensions within the context of the GraphQL API, thereby enabling you to build more dynamic and powerful headless eCommerce applications.
7979

8080
The following WooCommerce extensions are supported by WooGraphQL Pro:
8181

@@ -109,7 +109,7 @@ To enable schema support for your installed extensions, follow these steps:
109109

110110
1. Navigate to the WPGraphQL settings page on your WordPress Admin Dashboard.
111111
2. Click on the 'WooGraphQL' tab.
112-
3. Here, you'll find a list of WooGraphQL configuration options. Go below to the **WooGraphQL Pro** section and paste in license and check the boxes next to your installed extensions to enable schema support for them.
112+
3. Here, you'll find a list of WPGraphQL for WooCommerce configuration options. Go below to the **WooGraphQL Pro** section and paste in license and check the boxes next to your installed extensions to enable schema support for them.
113113

114114
Note: The 'Enable Unsupported Product Type' option can be found on the same settings tab. If you enable this option, any product type without a proper GraphQL type will default to the `UnsupportedProduct` type, which is identical to the `SimpleProduct` type. With this type, the client can use the `metaData` field to get a `string` representation of the meta data on the type. This could potentially be all that's needed for simpler product types.
115115

@@ -125,7 +125,7 @@ Feel free to test out the extension using this [GraphiQL Playground](https://woo
125125

126126
### `create-woonext-app` CLI and `@woographql` packages
127127

128-
Designed to both streamline development for individuals and teams looking to utilize WooCommerce + WooCommerce extensions in larger project and not waste too much to much time on the particulars of WooGraphQL like session management or checkout, the **[`create-woonext-app`](https://www.npmjs.com/package/create-woonext-app)** CLI generates a pre-created e-commerce application on [Next.js](https://nextjs.org) application tailored to the developer/team.
128+
Designed to both streamline development for individuals and teams looking to utilize WooCommerce + WooCommerce extensions in larger project and not waste too much to much time on the particulars of WPGraphQL for WooCommerce like session management or checkout, the **[`create-woonext-app`](https://www.npmjs.com/package/create-woonext-app)** CLI generates a pre-created e-commerce application on [Next.js](https://nextjs.org) application tailored to the developer/team.
129129

130130
```bash
131131
npx create-woonext-app <license> [options]
@@ -138,12 +138,12 @@ The generated application utilizes the **[`@woographql`](https://yeetsquad.net)*
138138
- [`create-woonext-app` Live Demo](https://woonext.woographql.com/): fully decked out putting all current possible functionalities of the `create-woonext-app` on full display.
139139
- [`@woographql/next` README](https://yeetsquad.net/-/web/detail/@woographql/next): A Template generator CLI. Capable of generator a multitude of Next.js pages, Next.js Route Handlers, react components, react hooks, and utilities. It's also equipped to generate react component and hook stubs for speedy component create with no boilerplate.
140140
- [`@woographql/react-hooks` README](https://yeetsquad.net/-/web/detail/@woographql/react-hooks): React hook library acting as the backbone for UI connected to session, cart, and customer.
141-
- [`@woographql/session-utils` README](https://yeetsquad.net/-/web/detail/@woographql/session-utils): Provides utilities for managing the WPGraphQL + WooGraphQL session tokens like a `TokenManager`, also provides interfaces and types for easy customization of said `TokenManager` or the complete creation of a custom `TokenManager` with minimal effort. The bundled TokenManager implemented utilizes browser storage _(Local/Session storage)_, so if you'd prefer something like [Iron Session](https://github.com/vvo/iron-session) this might be the route for you.
141+
- [`@woographql/session-utils` README](https://yeetsquad.net/-/web/detail/@woographql/session-utils): Provides utilities for managing the WPGraphQL + WPGraphQL for WooCommerce session tokens like a `TokenManager`, also provides interfaces and types for easy customization of said `TokenManager` or the complete creation of a custom `TokenManager` with minimal effort. The bundled TokenManager implemented utilizes browser storage _(Local/Session storage)_, so if you'd prefer something like [Iron Session](https://github.com/vvo/iron-session) this might be the route for you.
142142
- [`@woographql/codegen` README](https://yeetsquad.net/-/web/detail/@woographql/codegen): A convenient wrapper for GraphQL Codegen providing a few configurations out of the box, with the ability to override the default configuration by creating a `codegen.ts` in the project root.
143143

144144
## Wanna help support WooGraphQL's future
145145

146-
- Sponsor **@kidunot89** _(WooGraphQL Creator/Developer)_ on **[Github](https://github.com/sponsors/kidunot89)**
146+
- Sponsor **@kidunot89** _(WPGraphQL for WooCommerce Creator/Developer)_ on **[Github](https://github.com/sponsors/kidunot89)**
147147
- Sponsor **WooGraphQL** on **[OpenCollective](https://opencollective.com/woographql)**
148148
- Sponsor **WPGraphQL** on **[OpenCollective](http://opencollective.com/wp-graphql)**
149149
- Sponsor **GraphQL-PHP** on **[OpenCollective](https://opencollective.com/webonyx-graphql-php)**
@@ -154,12 +154,15 @@ The generated application utilizes the **[`@woographql`](https://yeetsquad.net)*
154154
## Demo/Examples
155155

156156
- Examples with Next.js
157-
- [WooGraphQL Demo](https://github.com/kidunot89/woographql-demo)
157+
- [WPGraphQL for WooCommerce Demo](https://github.com/kidunot89/woographql-demo)
158158
- [Next.js WooCommerce Theme](https://github.com/imranhsayed/woo-next) [[source]](https://github.com/imranhsayed/woo-next) [[demo video]](https://youtu.be/EGjY3X868YQ)
159159
- Examples with Gatsby
160160
- [Gatsby WooCommerce Theme](https://gatsby-woocommerce-theme.netlify.app/) [[source]](https://github.com/imranhsayed/gatsby-woocommerce-themes) [[demo video]](https://youtu.be/ygaE8ZdPEX8)
161+
- Examples with WooGraphQL Pro [[homepage]](https://woographql.com/pro)
162+
- [`create-woonext-app` CLI Demo](https://woonext.woographql.com) [[homepage]](https://woographql.com/create-woonext-app) [[docs]](https://www.npmjs.com/package/create-woonext-app)
163+
- [WPGraphQL for WooCommerce homepage](https://woographql.com)
161164

162-
## Who using WooGraphQL
165+
## Who using it?
163166

164167
| <img src="https://www.rockymountainsewing.com/static/759d14c25bfb3243245711ce9be6600c/logo.svg" alt="Rocky Mountain Sewing & Vacuum" width="320"/> | <img src="https://russemerket.no/src/logos/Russemerket_black.svg" alt="Russemerket" width="320"/> | <img src="https://wohnparc.de/_next_public/wopa-icons/logo.svg" alt="wohnparc.de" width="320"/> |
165168
|:---------------------------------------:|:---------------------------------------:|:---------------------------------------:|
@@ -194,3 +197,5 @@ Support this project with your organization. Your logo will show up here with a
194197
<a href="https://opencollective.com/woographql/organization/7/website"><img src="https://opencollective.com/woographql/organization/7/avatar.svg"></a>
195198
<a href="https://opencollective.com/woographql/organization/8/website"><img src="https://opencollective.com/woographql/organization/8/avatar.svg"></a>
196199
<a href="https://opencollective.com/woographql/organization/9/website"><img src="https://opencollective.com/woographql/organization/9/avatar.svg"></a>
200+
201+
**Disclaimer:** *WPGraphQL for WooCommerce* is an open-source WordPress plugin and WooCommerce extension developed and maintained by [Geoff Taylor](https://woographql.com/about), licensed under GPLv3. It is not owned, maintained, or affiliated with [Automattic](https://automattic.com) or [WooCommerce](https://woocommerce.com).

README.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
=== WPGraphQL WooCommerce ===
1+
=== WPGraphQL for WooCommerce ===
22
Contributors: kidunot89, ranaaterning, jasonbahl, saleebm
33
Tags: GraphQL, WooCommerce, WPGraphQL
44
Requires at least: 6.1

access-functions.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ function wc_graphql_camel_case_to_underscore( $str ) {
219219

220220
if ( ! function_exists( 'woographql_setting' ) ) :
221221
/**
222-
* Get an option value from WooGraphQL settings
222+
* Get an option value from WPGraphQL for WooCommerce settings
223223
*
224224
* @param string $option_name The key of the option to return.
225225
* @param mixed $default_value The default value the setting should return if no value is set.
@@ -297,7 +297,7 @@ function woographql_get_session_token() {
297297

298298
if ( ! function_exists( 'woographql_create_nonce' ) ) :
299299
/**
300-
* Creates WooGraphQL session transfer nonces.
300+
* Creates WPGraphQL for WooCommerce session transfer nonces.
301301
*
302302
* @param string|int $action Nonce name.
303303
*
@@ -314,7 +314,7 @@ function woographql_create_nonce( $action = -1 ) {
314314

315315
if ( ! function_exists( 'woographql_verify_nonce' ) ) :
316316
/**
317-
* Validate WooGraphQL session transfer nonces.
317+
* Validate WPGraphQL for WooCommerce session transfer nonces.
318318
*
319319
* @param string $nonce Nonce to validated.
320320
* @param integer|string $action Nonce name.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"require-dev": {
2828
"axepress/wp-graphql-cs": "^2.0.0-beta",
2929
"axepress/wp-graphql-stubs": "^1.27.1",
30-
"brainmaestro/composer-git-hooks": "^3.0",
30+
"brainmaestro/composer-git-hooks": "^2.8.5",
3131
"php-stubs/woocommerce-stubs": "9.1.0",
3232
"phpstan/extension-installer": "^1.3",
3333
"phpstan/phpdoc-parser": "^1.22.0",

0 commit comments

Comments
 (0)