d65c6a716d
fix: wrong taxonomy label case in product attributes ( #869 )
...
* fix: wrong taxonomy label in product attributes
* fix: adjust test to remove ucwords
* fix: more unneeded string decoration removed
* devops: Unstable test assertion removed
---------
Co-authored-by: Geoff Taylor <geoff@axistaylor.com >
2024-08-06 20:40:46 -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
Geoff Taylor and GitHub
d9d968ac91
fix: product connection resolution refactored to better work with the ProductQuery class ( #880 )
...
* fix: product connection resolution refactored to better work with the ProductQuery class
* chore: Linter and PHPStan compliance met
* devops: New product connection tests implemented and passing
* fix: products connection pricing filters fixed
* devops: CartTransactionQueueCest skipped until failing PHP version removed from CI matrix
2024-08-06 18:07:37 -04:00
Geoff Taylor and GitHub
895b040953
chore: version numbers and changelog updated ( #858 )
2024-05-21 00:57:56 -04:00
Geoff Taylor and GitHub
f686e743b0
feat: Queries and mutations for shipping zones, tax classes, and tax rates. ( #856 )
...
* fix: General bugfixes and improvements
* devops: New mutations and types tested and compliance with Linter and PHPStan
* chore: hooks added to the mutation resolvers
* feat: permission checks added
* chore: Linter and compliance met
* chore: Linter and compliance met
2024-05-17 00:03:10 -04:00
Geoff Taylor and GitHub
f1d96bead4
collectionStats query fully implemented (#849 )
...
* fix: WPGraphQL v1.24.x support added
* fix: WPGraphQL v1.24.x support added
* chore: Linter and PHPStan compliance met
* chore: composer.json fixed
* fix: Unnecessary type check restored
* chore: Linter and PHPStan compliance met
* devops: CollectionStatsQueryTest patched
2024-05-16 21:27:54 -04:00
Geoff Taylor and GitHub
17b59fb7ae
fix: DownloadableItem "product" field type changed to ProductUnion ( #833 )
2023-12-27 12:02:22 -05:00
Geoff Taylor and GitHub
ffd1430e04
chore: OrderIdTypeEnum value "ORDER_NUMBER" renamed to "ORDER_KEY" ( #831 )
2023-12-27 11:30:03 -05:00
Dovid Levine and GitHub
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 Taylor and GitHub
3cf05bd195
fix: JWT Auth hooks now support WPGraphQL Headless Login ( #812 )
...
* fix: JWT Auth hooks now support WPGraphQL Headless Login
* chore: PHPStan compliance met
* fix: Proper TokenManager function in use for auth token resolution
2023-10-16 18:55:16 -04:00
Geoffrey K Taylor and GitHub
d0db73af67
fix: paymentMethod fields no longer throw for guest users ( #809 )
...
* fix: paymentMethod fields no longer throw for guest users
* chore: CollectionStatsQueryTest reverted
2023-10-05 01:21:39 -04:00
Geoffrey K Taylor and GitHub
966ab37dee
chore: version numbers set and CHANGELOG updated. ( #807 )
2023-09-23 04:10:21 -04:00
Geoffrey K Taylor and GitHub
6b0c798f91
feat: collectionStats query added ( #785 )
...
* feat: collectionStats query added
* fix: `collectionStats` query completed and tested.
* chore: Linter and PHPStan compliance met
* chore: ProductTaxonomy values fixed.
* chore: CollectionStatsQueryTest tweaked for CI
2023-09-23 03:50:17 -04:00
Geoffrey K Taylor and GitHub
356d705e19
feat: Hooks added to Authorizing URL functionality ( #806 )
2023-09-23 03:17:16 -04:00
Geoffrey K Taylor and GitHub
134dc5eaf7
feat: "found" field added to the Products Connection types ( #804 )
2023-09-15 23:31:24 -04:00
Geoffrey K Taylor and GitHub
c526a5b527
feat: ProductWithAttributes and ProductVariation interfaces added ( #803 )
...
* feat: ProductWithAttributes and ProductVariation interfaces added
* chore: Unused files removed
2023-09-15 21:03:55 -04:00
Geoffrey K Taylor and GitHub
481c12c7f9
feat: Several product interfaces added. ( #801 )
2023-09-15 00:21:00 -04:00
Geoffrey K Taylor and GitHub
628816f807
feat: CartItem converted to WPInterface type ( #798 )
2023-09-13 12:35:42 -04:00
Geoffrey K Taylor and GitHub
81502f9d43
fix: ProductUnion interface added ( #797 )
...
* fix: ProductUnion interface added
* chore: Linter and PHPStan compliance met
2023-09-11 17:42:26 -04:00
Dovid Levine and GitHub
c59aec7b20
fix: default the customer to the current user ( #787 )
2023-08-22 20:19:05 -04:00
Geoffrey K Taylor and GitHub
87d7a7b1a9
fix: ProductVariation type made to inherit the Product interface. ( #788 )
...
* devops: WP theme during e2e locked to TwentyTwentyOne
* fix: "Product Connection Resolver" restored
* chore: Linter/PHPStan compliance met
* devops: CustomerProceedsToCheckoutCept updated.
* chore: Linter compliance met
2023-08-22 17:14:39 -04:00
Geoffrey K Taylor and GitHub
e6be30ebcd
fix: Several minor obscured syntax errors fix ( #771 )
...
* fix: Several minor obscured syntax errors fix
* fix: more fixes.
* fix: attribute "name" and "label" inconsistencies resolved.
2023-07-19 19:13:51 -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 Levine and GitHub
58fbce7c57
fix: clean up unnecessary variables and ternaries ( #766 )
2023-07-19 16:10:23 -04:00
Dovid Levine and GitHub
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 Levine and GitHub
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
Dovid Levine and GitHub
fa8e3005e5
fix: remove trailing commas from function calls ( #768 )
...
* fix!: update deps to required versions
* fix: trailing commas not allowed in PHP 7.2
2023-07-19 15:10:22 -04:00
Geoffrey K Taylor and GitHub
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
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
Geoffrey K Taylor and GitHub
ba13b2ec0a
feat: Authorizing URLs implemented and tested. ( #745 )
...
* feat: Authorizing URLs implemented and tested.
* feat: More woographql_*_nonce functions implemented.
* chore: linting changes made.
* chore: linting changes made.
* fix: woographql_*_ functions tested.
* chore: WPCS compliance met.
* devops: lint-code script updated to PHP v8.0
* chore: WPCS compliance met
* devops: TransferSessionHandlerTest & QLSessionHandlerTest updated
* devops: codeclimate.yml added.
* chore: Linter compliance met
* devops: Harmonizing WordPress doc written and Settings doc updated.
* chore: Typo fixed in docs.
* fix: General bugfixes and improvements related to Auth URLs
* devops: More docs.
* chore: Linter compliance met
* chore: small change made to docs.
2023-05-22 13:43:10 -04:00
Geoffrey K Taylor and GitHub
1f191039c1
feat: woographql_viewable_order_types hook added ( #741 )
...
* feat: woographql_viewable_order_types hook added
* chore: WPCS compliance met
2023-04-21 04:50:26 -04:00
Geoffrey K Taylor and GitHub
fb4b73850c
fix: PaymentToken child types fixed. ( #739 )
2023-04-20 21:04:06 -04:00
Geoffrey K Taylor and GitHub
80252b0998
feat: Country queries implemented. ( #736 )
...
* feat: Country queries implemented.
* chore: WPCS compliance met and late-minute renames.
2023-04-20 19:59:25 -04:00
Geoffrey K Taylor and GitHub
27d9297494
feat: payment method mutations and fields implemented. ( #735 )
...
* feat: payment method mutation implemented.
* devops: Unit test updated.
* chore: WPCS compliance met.
2023-04-20 17:33:58 -04:00
Geoffrey K Taylor and GitHub
f4b153f147
feat: Docs Restored. Unsupported product type setting implemented. ( #731 )
...
* feat: docs started. Unsupported product type implemented.
* chore: WPCS compliance met
* chore: file renamed.
* feat: More docs written
* feat: 2 more docs written
* fix: settings docs images added.
* fix: settings docs images added.
* devops: UnsupportProductTypeTest added.
* devops: More docs changes.
* chore: WPCS compliance met
* devops: UnsupportedProductTypeTest updated.
* chore: WPCS compliance met
2023-04-18 23:48:08 -04:00
Geoffrey K Taylor and GitHub
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
Geoffrey K Taylor and GitHub
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
18e66cdb4f
Updates deprecated DataSource::resolve_post_object ( #697 )
...
* Updates deprecated DataSource::resolve_post_object
* chore: Unneeded class declarations removed.
---------
Co-authored-by: Geoff Taylor <geoff@axistaylor.com >
2023-02-01 17:54:20 -05: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
0867d430ef
(Query) Format currency in cart type ( #619 )
...
* Format cart item price
* Fix price return type
* chore: CartQueriesTest updated with new price fields formatting
Co-authored-by: Geoff Taylor <geoff@axistaylor.com >
2022-08-29 13:24:50 -04:00
Geoffrey K Taylor and GitHub
cb5888c80c
fix: Most product attribute fields made nullable ( #648 )
2022-08-26 15:19:20 -04:00
Geoffrey K Taylor and GitHub
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 Taylor and GitHub
223bde6ea2
feat: "product" and "variation" connections added to LineItem type ( #604 )
...
* feat: "product" and "variation" connections added to LineItem type
* chore: Coding standards met
* fix: GraphQLE2E helper updated to reflect schema changes
* chore: PHP 8.0 compliance met
* chore: Workflow codecoverage set to target PHP 7.4
* chore: WPCS compliance met
2022-03-04 23:44:48 -05:00
Geoffrey K Taylor and GitHub
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
stevezehngut and GitHub
d020328133
Update class-root-query.php ( #584 )
...
Fix for bug #583 .
2021-12-07 16:45:54 -05:00
Geoffrey K Taylor and GitHub
a3dfa800f5
feat: applied coupon description field added ( #572 )
2021-10-22 22:47:25 -04:00
Geoffrey K Taylor and GitHub
2a1603122c
chore: CartItem product connection resolvers updated. ( #571 )
2021-10-21 19:43:59 -04:00
Florian Bischoff and GitHub
5a751a2674
fix: respect woocommerce tax display settings in cart ( #567 )
...
* fix: respect woocommerce tax display settings
* fix: whitespace linting err
2021-10-15 15:05:11 -04:00
John Forte and GitHub
2ae289006c
feature: customer call returns session token for guest users ( #541 )
...
* fix: customer call returns session for guest users
* feat: add if the user is a guest based on id variable
2021-09-08 02:05:14 -04:00