mirror of
https://github.com/wp-graphql/wp-graphql-woocommerce.git
synced 2026-08-14 12:53:44 +02:00
* fix: Elementor breaks transfer-session endpoint with 500 error Elementor's LandingPages module creates a WP_Query during `init` which fires `pre_get_posts` before WooCommerce session is initialized. Our resolve_request handler ran on this early query and called WC()->session->get_customer_id() on null, causing a fatal error. Fix: Guard resolve_request to only run on the main front-end query and bail if WC session is not yet initialized. Also add Elementor to the test environment and add functional tests that reproduce the issue. Closes #945 * chore: Add @param docblock for resolve_request $query parameter * devops: Remove unused resolvers and add session transaction manager tests Remove Coupon_Connection_Resolver and Customer_Connection_Resolver which had 0% coverage and were never instantiated. Add SessionTransactionManagerTest covering did_transaction_expire edge cases and next_transaction invalid/expired queue handling.