Commit Graph
35 Commits
Author SHA1 Message Date
Geoff TaylorandGitHub 1807b2e798 Add authenticated download URLs for headless frontends (#995)
* feat: add authenticated download URLs for headless frontends

- Add downloadNonce and downloadUrl fields to DownloadableItem type
  using the existing Protected Router session transfer pattern
- Add preAuthDownloadUrl field (toggleable via settings) that generates
  tokenized download URLs for direct file access without cookie auth
- Add download_url nonce handling to Protected_Router
- Add enable_pre_auth_download_urls and download_url_nonce_param settings
- Add GraphQLE2E helpers for checkout and account shortcode pages
- Rewrite ProtectedRouterCest to test redirect flow without JS-dependent
  page content assertions, add account and payment method URL tests
- Add DownloadableItemAuthCest with 5 e2e tests covering both options

* fix: test suite stability and code coverage collection

- Add WC_Unit_Tests_Bootstrap stub to wpunit bootstrap to bypass
  wc_get_product_visibility_term_ids static cache between suites
- Add setWooGraphQLSetting helper to GraphQLE2E for safe individual
  field updates to woographql_settings option with proper defaults
- Update all functional tests to use setWooGraphQLSetting instead of
  replacing the entire woographql_settings option
- Fix createRelated factory to use explicit shared category instead
  of relying on default Uncategorized category
- Add download_url to ProtectedRouterTest nonce names assertion
- Remove debug logs from ProductQueriesTest and ProductsQueriesTest
- Fix CI workflow to run suites separately and aggregate coverage
  via phpcov merge
- Wire c3.php into WordPress index.php for remote coverage collection
- Update .coveralls.yml service_name to github-actions
- Clean up Xdebug 2 settings in Dockerfile

* chore: Linter compliances met

* fix: ensure tests/_output is writable for c3.php coverage collection

* devops: .env.docker removed from setup

* devops: split CI into separate jobs per suite with retry and coverage aggregation

* devops: add +Coverage indicator to CI job names

* devops: add --fail-fast to first run, fix retry to mark job as passing on retry success
2026-03-26 17:20:55 -04:00
Geoff TaylorandGitHub bde70cb72e feat: Add Store API Cart-Token compatibility and session handler improvements (#954)
* feat: Add Store API Cart-Token compatibility and session handler improvements

* chore: Linter compliances met

* chore: linter compliances met

* chore: linter compliances met
2025-11-15 19:02:41 -05:00
Geoff TaylorandGitHub edbd31c3bd 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
2024-11-06 19:23:36 -05:00
Geoff TaylorandGitHub 2543f33475 fix: Bug in Session_Transaction_Manager::pop_transaction_id() fixed (#852)
* fix: bug in Session_Transaction_Manager::pop_transaction_id fixed

* chore: Linter and PHPStan compliance met

* devops: tests updated

* devops: WPBrowser upgraded to v4.x.x

* devops: Some unit testing configurations updated

* devops: WPBrowser updated and tests passing

* chore: PHPStan and linter compliance met

* devops: WP_CORE_DIR fixed

* devops: More docker config changes

* devops: CartMutationsTest updated

* devops: CI env vars fixed

* devops: More CI fixes

* devops: More CI fixes

* devops: More CI fixes

* devop: Docker env removed

* devops: Codeception configs updated

* devops: configurations tweaked heavily
2024-05-21 00:48:16 -04:00
Geoff TaylorandGitHub 8ba35cd50f Fix: WPGraphQL v1.24.x support implemented (#850)
* fix: WPGraphQL v1.24.x support added + WC 3.6 support

* chore: Linter and PHPStan compliance met

* devops: CI config updated

* devops: docker config updated.

* devops: Docker configs updated.
2024-05-07 16:50:42 -04:00
Geoffrey K TaylorandGitHub 277cef0be2 fix: Cart_Mutation:prepare_attributes made public (#796)
* fix: Cart_Mutation:prepare_attributes made public

* devops: Dockerfile updated.
2023-09-11 17:19:31 -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 9bbb81ee36 Support for custom order statuses. (#518)
* Support for custom order statuses.

* package workflow updated.
2021-07-05 15:31:17 -04:00
Geoff Taylor 3c40105499 Dockerfile fixed. 2021-06-14 12:02:37 -04:00
Geoff Taylor f9e23738f3 Dockerfile updated 2021-06-12 22:31:27 -04:00
Geoff Taylor e293fe8b6a coding standards met. 2021-06-04 19:58:37 -04:00
Geoff Taylor 71d0f4454b Remote tests removed from codecoverage. 2021-01-22 11:37:18 -05:00
Geoff Taylor b8d913ee8d Docker/Codeception CI configuration updated. 2021-01-22 11:36:50 -05:00
Geoff TaylorandGeoff Taylor f47bee2b5f Docker/Codeception configuration heavily refactored.. 2021-01-22 11:34:09 -05:00
Geoff Taylor a4f2769d74 Docker script implemented 2020-05-11 21:26:14 -04:00
Geoff TaylorandGeoff Taylor 8bee58a6db Docker CI configurations updated. 2020-05-11 21:23:14 -04:00
Geoff Taylor bd4f35e4a8 "Testing Integration" + "WPCS" workflows created and passed. 2020-02-20 12:35:42 -05:00
Geoff Taylor b57ec1c34a "DownloadableItem" type and connection implemented. 2020-01-22 03:07:39 -05:00
Geoff Taylor ee8f128011 Dockerfile updated 2019-12-09 22:08:04 -05:00
Geoff Taylor 1ffe19e50e testing-entrypoint script updated. 2019-11-16 19:35:48 -05:00
Geoff Taylor 3f8d8d7a1f Docker configuration updated. 2019-11-16 12:08:41 -05:00
Geoff Taylor 18f6780ea5 Dockerfile updated for PHP5.6 test compatibility. 2019-07-29 09:54:58 -04:00
Geoff Taylor f8ee0bec9b Coveralls.io client bug fixed. 2019-07-28 00:58:22 -04:00
Geoff Taylor da77dcb169 fixed Dockerfile. 2019-07-25 15:17:50 -04:00
Geoff Taylor aae33f8131 php5.6 xdebug installation patched. 2019-07-25 14:38:30 -04:00
Geoff Taylor b8c7b10992 Codeception configuration heavily refactored 2019-07-25 00:04:32 -04:00
Geoff Taylor b16a195243 Docker configuration refactor. Debugging needed. 2019-07-23 19:38:53 -04:00
Geoff Taylor c7c2db51cc xdebug replaced with pcov 2019-07-18 16:11:41 -04:00
Geoff Taylor 963599a4c8 Install xdebug 2019-07-18 15:56:19 -04:00
Geoff Taylor 453d72d884 Fixes ARG declaration. 2019-07-18 13:36:05 -04:00
Geoff Taylor a61e6784f9 php-coveralls added to docker test environment. 2019-07-18 12:31:49 -04:00
Geoff Taylor 94f0481e79 variable substitution fixed. 2019-07-18 12:16:38 -04:00
Geoff Taylor 1074cedc6c initial commit 2019-07-18 11:39:14 -04:00
Geoff Taylor f3c23a27f3 docker script added for e2e testing support 2019-07-17 20:02:41 -04:00