30 Commits
Author SHA1 Message Date
Geoff TaylorandGitHub fb93d6f6eb fix: term_taxonomy_id mismatch in coupon category connections and dead WC post type loop (#985)
- Fix coupon productCategories and excludedProductCategories connections
  to convert term_ids to term_taxonomy_ids before querying, resolving
  failures when term_id and term_taxonomy_id differ (shared terms across
  taxonomies)
- Remove dead WC post type taxonomy connection loop that was skipping
  products/variations and had no effect on remaining post types
- Remove unused WPGraphQL and WP_GraphQL_WooCommerce imports
- Add coupon category connection test with mismatched term IDs and
  exclude filter validation
- Add product category test with mismatched term_id/term_taxonomy_id
  regression coverage
2026-03-23 21:55:22 -04:00
962410d265 fix: add model classes to type configs to better support query analyzer ID tracking (#874)
* - remove several fields that are already registered by core when the post type is mapped to the schema

* devops: Tests updated and coupon "salt" restored

* chore: Linter & PHPStan compliance met

* chore: Linter & PHPStan compliance met

* devops: "self" replaced with "static" in cli tests

* chore: fix cleanup after rebasing

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2024-08-06 18:54:18 -04:00
Dovid LevineandGitHub e96236696f chore: bump deps to meet actual requirements and lint for WPCS 3.0 (#816)
* chore: bump min versions to actual and update deps

* chore: fix multiple empty lines at EOF

* chore: preincrement when standalone (phpcs)

* fix: use `printf` instead of `echo sprintf` [phpcs]

* chore: avoid lonely `if()` in `else{}` [phpcs]

* chore: avoid reserved keywords as param names [phpcs]

* chore: remove unused callback params [phpcs]

* chore: remove more unused callback params [phpcs]

* chore: apply lints to tests

* chore: update ruleset for PHPCS 3.0

* texts: restore $last_request_headers
2023-11-30 08:41:32 -05:00
Geoffrey K TaylorandGitHub b2d6608e9a fix: Meta data type error fixed. (#728)
* fix: Meta data type error fixed.

* devops: CouponQueriesTest updated.

* chore: WPCS compliance met
2023-04-18 23:43:39 -04:00
0b8ce4f634 fix: Connections need to connect to Types that implement the Node interface (#675)
* - implement Node on different Types

* - update class-customers to return arrays for edges and nodes
- move id resolver from product-attribute interface to the specific types

* - return empty arrays for edges/nodes for coupon connections
- update test to check for falsy vs null

* - remove manual registration of the `Product` Interface
- register the fields to the Product Interface

* - fix code style

* - fix code style

* - no longer pass type registry to Product::register_interface()

* -  use post type registry to register the Product type as an Interface

* WPGraphQL v1.13.x support added.

* WPGraphQL v1.13.x support added.

* fix: filter corrected.

* fix: Needed code restored

* fix: Needed code restored

* parent field no longer overwritten

* chore: WPCS compliance met.

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2022-12-07 17:04:39 -05:00
Geoffrey K TaylorandGitHub 9073793e86 chore: WPGraphQL v1.9.x connection resolver support added and autoloader removed. (#647)
* chore: WPGraphQL v1.9x + WP Bedrock support added.

* chore: lint compliance met.

* chore: composer/installers added back to allow-plugins
2022-08-26 14:53:36 -04:00
Geoffrey K TaylorandGitHub b073dce134 chore: PHP-JWT upgraded to v6.1.0 (#633)
* chore: PHP-JWT upgraded to v6.1.0, Unit tests updated to work with WPGraphQL Testcase v2.3

* chore: PHP7.2 removed from testing workflow matrix.
2022-06-24 17:42:05 -04:00
Geoffrey K TaylorandGitHub 6dbdcb5ae8 fix: Product Attribute naming conventions changed (#603)
* fix: Product Attribute naming conventions changed

* devops: dev dependencies updated

* devops: dev dependencies updated

* devops: dev dependencies updated

* devops: Dockerfile updated

* devops: dev dependencies updated

* devops: dev dependencies updated

* devops: dev dependencies updated

* devops: Dockerfile updated

* chore: Docker composer configurations updated

* chore: Coding standards met.
2022-02-04 15:00:44 -05:00
Geoffrey K TaylorandGitHub f59872ae89 Coupon mutations added. (#510)
* Coupon mutations implemented and tested
* Vendor files no longer versioned and package workflow implemented
2021-07-05 13:51:52 -04:00
Geoff Taylor 86c7fb8b4e Refund connections refactored. 2021-06-04 00:12:35 -04:00
Geoff Taylor 8215901e93 Order connections refactored. 2021-06-03 21:37:09 -04:00
Geoff Taylor da2cbdf484 "Coupon_Connection_Resolver" deprecated. 2021-05-19 19:45:02 -04:00
Geoff TaylorandGeoff Taylor f47bee2b5f Docker/Codeception configuration heavily refactored.. 2021-01-22 11:34:09 -05:00
Geoff Taylor 449d3b1674 "typeId" fields replaced by "databaseId". 2020-09-16 16:32:14 -04:00
Geoff Taylor 43d529f78f "idType" implemented. 2020-01-24 23:40:50 -05:00
Geoff Taylor 369fb7aa22 testing updated. 2019-11-13 18:53:31 -05:00
Geoff Taylor 971f4eaf0f ""ProductUnion" type implemented. 2019-10-17 21:39:38 -04:00
Geoff Taylor 24eccb27e8 CouponQueriesTest updated 2019-04-24 00:06:46 -04:00
Geoff Taylor f73ff55305 RefundQueriesTest refactored 2019-04-17 14:18:35 -04:00
Geoff Taylor e57ff7afb0 OrderQueriesTest refactored. OrderBy arg "orderNumber" changed to "orderKey". 2019-04-15 23:24:54 -04:00
Geoff Taylor 4e4654c540 CouponQueriesTest refactored. Unneeded tests removed. 2019-04-13 00:46:16 -04:00
Geoff Taylor 393aadf823 initial commit 2019-04-05 14:46:59 -04:00
Geoff Taylor eb7bc6af80 caps checks for order model and customer/order connections implemented 2019-04-02 14:00:15 -04:00
Geoff Taylor c7ea5f71ee separation complete 2019-03-31 22:48:57 -04:00
Geoff Taylor b113fc46f8 initial commit 2019-03-24 20:22:05 -04:00
Geoff Taylor 9949927b2b clean-up started 2019-03-21 21:43:24 -04:00
Geoff Taylor 1a7c884edf Coupon, Product, and WCTerm connections implemented 2019-03-18 16:52:36 -04:00
Geoff Taylor 84ac0f1739 Coupon type & connection implemented 2019-03-16 21:59:41 -04:00
Geoff Taylor c2fe65cdf3 CouponQueriesTest written 2019-03-15 23:33:01 -04:00
Geoff Taylor db6b666d9b some test implementation started 2019-03-14 23:55:34 -04:00