206 Commits
Author SHA1 Message Date
Dovid LevineandGitHub a4597db901 fix: remove codecept_debug() call from production code (#759) 2023-07-19 17:15:25 -04:00
f583628199 chore: implement WPGraphQL Coding Standards (#769)
* chore: avoid magic constants [PHPCS]

* chore: change ruleset to wp-graphql-cs and lint

* devops: HPOS added back to CI with the release of WC 3.9

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2023-07-19 17:11:25 -04:00
Dovid LevineandGitHub 4502bcd1a4 fix: initialize arrays before using (#765)
* fix!: update deps to required versions

* fix; initialize arrays before using
2023-07-19 16:12:36 -04:00
Dovid LevineandGitHub 58fbce7c57 fix: clean up unnecessary variables and ternaries (#766) 2023-07-19 16:10:23 -04:00
Dovid LevineandGitHub 4ed9cb94da chore: use fully-qualified class names for PHPDoc types (#767)
* fix!: update deps to required versions

* chore: use fqcn for PHPDoc types

* chore: cleanup use statements
2023-07-19 16:01:50 -04:00
Dovid LevineandGitHub d4927b9637 fix: use static closures when possible (#764)
* fix!: update deps to required versions

* fix: use static closures when possible
2023-07-19 15:56:42 -04:00
AndresandGitHub fedde04f2b fix: localAttributes and globalAttributes filtering and returned wrong values. (#757)
* fix: Localattribute and globalAttribute filtering.

* fixup! fix: Localattribute and globalAttribute filtering.

* fixup! fixup! fix: Localattribute and globalAttribute filtering.

* fixup! fixup! fixup! fix: Localattribute and globalAttribute filtering.
2023-07-04 18:51:03 -04:00
Geoffrey K TaylorandGitHub 60711aaa1b feat: Account URL added to Auth URLs. (#755)
* feat: Account URL added to Auth URLs.

* fix: Account URL issues resolved + Variation Attribute connections refactored.
2023-07-03 03:34:58 -04:00
Geoffrey K TaylorandGitHub e3e16e2a0f chore: Pre-release v0.14.0 (#751)
* chore: CHANGELOG.md and README.md updated.

* chore: README.md updated.
2023-06-21 14:41:43 -04:00
57800b46f3 feat: HPOS support added. (#748)
* feat: HPOS support added.

* fix: Refund connections and connection permission fixed

* chore: Linter compliance met.

* devops: CI script updated.

* devops: CI script updated.

* fix: Syntax error fixed.

* devops: CI script updated.

* devops: CI script updated.

* devops: CI script updated.

* chore: PHPStan fixes started.

* chore: linter compliance met.

* chore: fix scanning and type-hinting for non-stubbed classes

* dev: refactor Order model around WC_Abstract_Order

* chore: update dev deps

* devops: PHPStan and Linter compliance met.

* devops: HPOS test temporarily suppressed.

---------

Co-authored-by: David Levine <david@axepress.dev>
2023-06-21 13:21:29 -04:00
4ef46acd15 chore: setup PHPStan (#746)
* chore: setup PHPStan

* chore: General code cleanup for PHPStan

* chore: PHPStan to level 2

* chore: PHPStan to level 2

* fix: Syntax error fixed.

* devops: PHPStan level 2 reached.

* devops: PHPStan level 3 passed

* devops: PHPStan level 4 passed

* chore: fix bad typehints from jwt-auth [phpstan]

* chore: simplify conditional logic in WC_Terms::register_connections()

* chore: add stubs for WP type properties.

* fix: check for valid WC_Order_Item before caching order.

* chore: lint

* devops: PHPStan level 6 passed.

* chore: Linter compliance met.

* chore: simplify logic and check for valid term.

* fix: ensure valid types (partial)

* chore: [phpcs] allow inline type annotations

* devops: PHPStan level 8 reached.

* devops: More stability fixes.

* fix: general bugfixes and improvements

* devops: Code Quality GA script added.

* devops: Linter compliance met & 2 "phpstan-ignore" statements set.

* devops: PHPStan config and CI script fixed.

* fix: "cartItem" query resolution refactored

* devops: GA scripts updated.

* chore: Simple copy changes

---------

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2023-06-13 16:17:02 -04:00
Scott BolingerandGitHub c5cf6b6b35 fix case sensitive apply coupon mutation (#729)
The applyCoupon mutation is case sensitive, but coupons are not. This fixes trying to add a coupon code with lower case letters, such as `10off`. Previously you would get an error that the coupon doesn't exist because of mismatch in the case.
2023-04-18 23:12:06 -04:00
Geoffrey K TaylorandGitHub c068671d93 feat: WooGraphQL settings tab added. (#726)
* feat: WooGraphQL settings tab added.

* chore: WPCS compliance met

* bugfix: Order Item Node ID implemented.

* chore: Deprecated "AppContext::getLoader" calls replaced.

* chore: WPCS compliance met.

* fix: DownloadableItem "id" field implemented
2023-04-04 12:02:25 -04:00
Geoffrey K TaylorandGitHub b7c7b2d299 fix: Cart emptied after checkout (#649)
* fix: Cart emptied after checkout

* chore: WPCS compliance met.
2022-08-26 20:32:37 -04: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
KrystianandGitHub 531f60d077 add return array to get_query_args because without this endpoint show error (#610) 2022-03-01 14:24:10 -05: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
Scott KennedyandGitHub d4177ced76 Fix Fee name not showing (#602)
Fix Fee name not showing on the order when using the createOrder mutation.
2022-02-02 09:47:10 -05:00
Geoffrey K TaylorandGitHub 8bd01823c7 fix: order item connection cursor fixed. (#574) 2021-10-26 01:47:29 -04:00
Oskar ModigandGitHub e844a39ef9 make order processing methods static (#566) 2021-10-15 15:04:10 -04:00
Brian JohnsonandGitHub 69ee73b9d5 Fix: pass expected checkout validation WP_Error instance (#531) 2021-09-01 19:08:33 -04:00
a7714d0cd2 Updates to be compatible with WPGraphQL v1.6.1 (#537)
* fix: Huge refactor across schema and unit tests

* - add shipping_method loader in class-core-schema-filters.php

* - Update class-wc-db-loader.php to respect the new SHIPPING_METHOD loader with a `load_shipping_method_from_id()` function

* - Convert Shipping_Method_Connection_Resolver to extend AbstractConnectionResolver

* - Replace resolver for Shipping Methods connection. Remove use of `resolveNode` and replace the resolver with the new connection class `get_connection()` call

* chore: Factory class refactored.

* - update the function that registers Product Types to the Schema to use the value from the `get_enabled_product_types()` as the Type name and the key as the fieldName

* chore: PaymentGatewayQueriesTest refactored.

* chore: WPCS compliance met

* chore: Syntax error fixed.

Co-authored-by: Jason Bahl <jasonbahl@mac.com>
2021-08-11 14:26:09 -04: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
79c6035ade Checkout mutation: Add or Update order metas (#484)
* Checkout mutation: Add or Update order metas

* Checkout mutation: Update order metas

Co-authored-by: Geoff Taylor <geoff@axistaylor.com>
2021-06-14 14:56:43 -04:00
manuelsamplandGeoff Taylor 85de652693 Update class-checkout-mutation.php
Static Keyword missing
2021-06-14 12:14:50 -04:00
Geoff Taylor 83c8aed558 WPCS compliance met 2021-06-14 11:56:22 -04:00
Geoff Taylor 66690f03ff "Customer_Connection_Resolver" deprecated. 2021-06-14 11:40:42 -04:00
Geoff Taylor 22bbc38765 WPCS compliance met. 2021-06-12 22:18:41 -04:00
Geoff Taylor 9e31f47e51 Cart item connection pagination refactored. 2021-06-12 22:06:44 -04:00
Geoff Taylor 8215901e93 Order connections refactored. 2021-06-03 21:37:09 -04:00
Geoff Taylor a37e22480b Order Connection logic/tests heavily refactored. 2021-05-30 14:59:45 -04:00
Geoffrey K TaylorandGitHub 2d45d6db51 Merge pull request #497 from kidunot89/feature/coupon-connection-upgrade
"Coupon_Connection_Resolver" deprecated.
2021-05-30 14:57:13 -04:00
Geoff Taylor da2cbdf484 "Coupon_Connection_Resolver" deprecated. 2021-05-19 19:45:02 -04:00
Geoff Taylor 41be17c16f Product connections now resolved thru "PostObjectConnectionResolver" class. "Product_Connection_Resolver" class deprecated. 2021-05-15 17:56:16 -04:00
Geoff Taylor c264114daa "Product=>reviews" resolver re-implemented 2021-03-17 19:10:06 -04:00
Geoffrey K TaylorandGitHub 1e799ccd48 "woographql_db_loader_func" hook updated. 2021-03-17 11:22:48 -04:00
Geoff Taylor 73d6418b9d "fillCart" mutation implemented and tested. 2021-02-24 09:17:12 -05:00
Geoff Taylor aa780cf2e7 "AddCartItems" mutation implemented and tested. 2021-02-22 21:17:39 -05:00
Geoff Taylor c75a295e0b functional test "CartTransactionQueueCest" added. 2021-02-22 19:42:54 -05:00
Geoff Taylor ea4a4a539b coding standards met. 2021-01-27 14:02:06 -05:00
believelodyandGeoff Taylor 81f1f9d7d8 implements metadata for customer register and update 2021-01-27 01:32:37 -05:00
Geoff Taylor aacb6bf2bf Workflow badges updated. 2021-01-22 11:37:18 -05:00
Geoff Taylor 71d0f4454b Remote tests removed from codecoverage. 2021-01-22 11:37:18 -05:00
Geoffrey K TaylorandGitHub fb6578df8f Merge pull request #383 from wp-graphql/release/v0.7.0
Release v0.7.0
2020-11-24 13:03:25 -05:00
Geoffrey K TaylorandGitHub 2cd50a1e5c Merge pull request #374 from loganstellway/issues/262-multiple-orderby-fields
Allow multiple "orderby" fields
2020-11-24 12:18:41 -05:00
Geoff Taylor 1b9a6de9fc Version numbers updated. 2020-11-24 01:12:12 -05:00
Geoff Taylor b3c649da67 CartItem connections implemented and tested 2020-11-24 00:28:20 -05:00
Geoff Taylor bc07902b35 "Product_Connection_Resolver::set_query_arg()" removed. 2020-11-20 21:00:13 -05:00
Logan StellwayandGitHub 5d3155230c Allow multiple "orderby" fields 2020-11-16 20:13:21 -08:00
Geoffrey K TaylorandGitHub e708346e65 Merge branch 'release/v0.6.0' into feature/some-node-interfaces-support 2020-10-03 01:46:46 -04:00