Commit Graph

36623 Commits

Author SHA1 Message Date
Ron Rennick bde41799af merge master 2020-09-23 17:20:43 -03:00
Ron Rennick a80dc37684 merge master 2020-09-23 16:26:17 -03:00
vedanshujain c69e1f5799 Remove protection as we already diff and update only if needed.
In #26642 we removed adding reduced_stock meta when adding new order item to prevent ghost entries, but in inadvertently exposed an underlying bug where _reduced_stock meta was getting set to 0 if its emtpy.

We were then checking the presence of this meta, but also not reducing the stock in case it was not set.
2020-09-24 00:54:24 +05:30
Ron Rennick 3fbdf46192 always remove the trailing slash from the base URL 2020-09-23 16:22:15 -03:00
Rodrigo Primo 6e61398c83 Fix pre-push hook used by husky
The pre-push hook uses sh but contained syntax that is only supported by
bash. `=` in sh should be used instead of `==` to check for string
equality. Before this change, we were getting the following error when
pushing to any branch:

```
git push
husky > pre-push (node v10.22.1)
./bin/pre-push.sh: 7: [: refs/heads/master: unexpected operator
```

This error didn't block the push, but meant that the message asking
developers to confirm if they wanted to push to master was never
displayed. This problem was introduced in commit
8c25557bf5 added in PR #27028.
2020-09-23 10:42:23 -03:00
Christopher Allford ef612f60e5 Moved the PHP code sniffs into a bin folder 2020-09-22 11:55:24 -07:00
Christopher Allford f81a25c398 Moved all of the composer binary commands into the `composer-bin-plugin` to avoid version compatibility errors 2020-09-22 11:44:27 -07:00
Rodrigo Primo 4dd4230931
Merge pull request #27747 from woocommerce/fix/setup-wizard-deprecated-version-number
Fix two minor issues related with the setup wizard deprecation
2020-09-22 11:49:35 -03:00
Nestor Soriano 849a64d67c Add a data migration for removing term relationships related to variations
After the code that creates term relationships for variations has been
removed, a data migration is required to remove all the no longer needed
term relationships.

Also, the original migration that backfilled those relationships has
been removed (the migration function is kept but with an empty body).
2020-09-22 16:31:38 +02:00
Nestor Soriano a94ea7f51f Remove logic for storage of attribute terms for variations
A mechanism for improved filtering by attribute for variations was
introduced some time ago. This mechanism implied maintaining term
relationships for variations, where the terms were the attributes
that defined the variation.

The mechanism was reverted because it was complex and presented many
issues, but the code that created those term relationships was kept.
This pull request removes that code and the associated unit tests.
2020-09-22 16:31:06 +02:00
Rodrigo Primo c3a72b994a Fix version in which the setup wizard was deprecated
The setup wizard is going to be deprecated in WC 4.6.0 which should be
released soon. Some functions were marked as if they were deprecated in
WC 4.5.0 which is not the case.
2020-09-22 11:20:33 -03:00
Rodrigo Primo 51fd4af1b2 Remove call to __() from deprecation messages
Doing this as AFAIK we don't typically support traslation for
deprecation messages.
2020-09-22 11:18:43 -03:00
Rodrigo Primo 469101519a Remove WC 4.6 from changelog.txt as this version is yet to be released 2020-09-22 10:04:17 -03:00
James Collins ce31260452
Return early if another plugin has already declared an auth failure 2020-09-22 16:17:35 +08:00
Christopher Allford a7175c5ad4 Adjusted create method signature to better replicate TypeScript behavior 2020-09-21 13:44:45 -07:00
Christopher Allford 1674c05b66 Fixed the package.json files array to exclude development content 2020-09-21 13:33:57 -07:00
Christopher Allford 5297b27c79 Moved the factories from the @woocommerce/api package into the @woocommerce/e2e-utils package 2020-09-21 13:14:26 -07:00
Claudio Sanches 0d42a0419e
Update changelog.txt 2020-09-21 16:36:41 -03:00
Christopher Allford b962c10cee Updated the readme for the API package 2020-09-21 12:32:44 -07:00
Claudio Sanches 3391d8c0b0
Merge pull request #27718 from woocommerce/bump-versions-to-4.7.0
Bump WC version to 4.7.0
2020-09-21 16:21:09 -03:00
Claudio Sanches f648cec276 Updated package.json 2020-09-21 16:20:22 -03:00
Claudio Sanches eb99c1c857
Merge pull request #27719 from woocommerce/preparation/4.6.0-beta
Prepare 4.6.0 changelog
2020-09-21 16:19:54 -03:00
Claudio Sanches d9d62d8bd3
Fixed changelog 2020-09-21 16:19:40 -03:00
Claudio Sanches 0524d5f581
Restored "See changelog for all versions" link 2020-09-21 16:19:17 -03:00
Claudio Sanches ed4750f97a
Merge pull request #27715 from woocommerce/fix/post-merge-script-exit-status
Fix post-merge.sh exit status
2020-09-21 16:15:19 -03:00
Christopher Allford fba5a46243 Integrated the API package into the utils package again to generate simple products 2020-09-21 11:22:43 -07:00
Christopher Allford 8e7ef263a2 Adjusted the package exports to be easier to consume 2020-09-21 11:21:35 -07:00
Ron Rennick 6a36bce334 tweak logic to use `woocommerce/*-*` templates in theme folder 2020-09-21 14:12:22 -03:00
Ron Rennick bb6ded857d phpcs fixes 2020-09-21 13:34:14 -03:00
Ron Rennick 57fa6aff83 update taxonomy template names from `_` to `-` 2020-09-21 13:30:29 -03:00
Alex Stewart 771ae98146 Update states array
Reconciled code sniffing violations unearthed by Travis CI build #31128 | job #31128.11
2020-09-21 00:19:29 -05:00
Alex Stewart 4498b481c3 Update states array
Reconciled code sniffing violations unearthed by Travis CI build #31127 | job #31127.11
2020-09-20 21:49:25 -05:00
Alex Stewart 440787d601 Update locale information
Minor discrepancy: 'lb' should be 'lbs', as is the standard in WooCommerce
2020-09-20 17:57:46 -05:00
Julia Amosova 12d546b280 Add `PUPPETEER_SLOWMO` to global process.env to enable it. 2020-09-20 15:34:47 -04:00
Alex Stewart b58dc02183 Introduced fine-grained cultural adaptation for Jamaican-based WooCommerce stores 2020-09-20 14:10:27 -05:00
Rodrigo Primo 85c35a9ebd Remove WC 4.5.0 changelog from readme.txt
Once WC 4.6.0 changelog is finsihed in changelog.txt, we need to copy it
to readme.txt.
2020-09-19 15:37:17 -03:00
Rodrigo Primo f7d1fca384 Add WooCommerce Blocks changes to WC 4.6.0 changelog 2020-09-19 15:35:06 -03:00
Rodrigo Primo 6a641c4b1d Bump WC version to 4.7.0 2020-09-19 15:24:12 -03:00
Rodrigo Primo aaf4e189bb Add WooCommerce 4.6.0 changes to the changelog
Still pending the changelog for WooCommerce Admin and WooCommerce Blocks
2020-09-19 15:21:39 -03:00
Renovate Bot b1fb3dc5e0
Update dependency grunt to v1.3.0 2020-09-19 00:30:15 +00:00
Julia Amosova c78051c7a5 Place back `scrollIntoView` to OBW e2e test. 2020-09-18 19:15:53 -04:00
Christopher Allford b400e3bdb1
Merge pull request #27648 from woocommerce/package/e2e-environment/better-container-detection
Revise default version selection in @wordpress/e2e-environment
2020-09-18 16:07:09 -07:00
Julia Amosova ff8e5bbc8b Remove `scrollIntoView` from OBW e2e test as it is not needed. 2020-09-18 18:33:21 -04:00
Christopher Allford 27d8892b28 Merge branch 'master' into packages/factories-to-api-refactor 2020-09-18 14:45:39 -07:00
Christopher Allford bf70a3ea74 Updated lock files 2020-09-18 14:43:00 -07:00
Christopher Allford d22ed6547e Merge branch 'master' into package/e2e-environment/better-container-detection 2020-09-18 14:32:11 -07:00
Christopher Allford 866ab47dda Adjusted the exports for clarity of use 2020-09-18 14:26:00 -07:00
Julia Amosova 6a93c8dd68 Added note to README on how to use `PUPPETEER_SLOWMO` variable. 2020-09-18 16:53:48 -04:00
Christopher Allford b3b92e2d4d Separated the construction of factories & repositories from the models for simplicity 2020-09-18 13:53:10 -07:00
Julia Amosova 30c904db68 Added `headless` & `slowMo` flags back to Puppeteer config. 2020-09-18 16:39:45 -04:00