Commit Graph

36492 Commits

Author SHA1 Message Date
Vedanshu Jain f65491d1b2
Merge pull request #27898 from woocommerce/add/allow-customise-reset-password-page-title
Use "Set Password" page title for lost-password endpoint when setting a password
2020-10-14 23:24:27 +05:30
Claudio Sanches be4aacee93
Merge pull request #27483 from woocommerce/fix/27475
prevent regenerate image filter loop
2020-10-14 14:03:00 -03:00
Claudio Sanches 7d1ff1a655
Merge pull request #27310 from woocommerce/fix/27215
Fix deleting a tax class via WP CLI.
2020-10-14 14:00:33 -03:00
Ron Rennick 514e6cc308 document disabling puppeteer download 2020-10-14 13:59:37 -03:00
Vedanshu Jain ae610d3f5f
Merge pull request #27492 from woocommerce/fix/api/229
Add User-friendly Attribute Names and Values to Order Line Items Metadata
2020-10-14 22:02:19 +05:30
Renovate Bot e3f91ef4ec
Update dependency league/container to v3.3.3 2020-10-14 16:24:37 +00:00
Ron Rennick 9cf2d81f60 Merge branch 'master' into fix/template-attachment-ids 2020-10-14 12:40:57 -03:00
Claudio Sanches 8f0f680c04
Merge pull request #27825 from woocommerce/renovate/husky-4.x
Update dependency husky to v4.3.0
2020-10-14 12:07:06 -03:00
Claudio Sanches 0a0707e9e3
Merge pull request #27838 from woocommerce/add/security-policy
Added security policy
2020-10-14 12:05:54 -03:00
Claudio Sanches 26028db176
Merge pull request #27961 from woocommerce/update/travis-configuration
Update Travis configuration for running unit tests
2020-10-14 11:56:35 -03:00
Claudio Sanches 02d622642e
Merge pull request #27944 from woocommerce/update/contributors-sh-list-of-ignored-users
Add github-actions[bot] to the list of ignored users
2020-10-14 11:54:21 -03:00
Claudio Sanches 1204c82817
Merge pull request #27943 from woocommerce/update-contributors-sh
Remove woocommerce-rest-api from contributors.sh
2020-10-14 11:54:02 -03:00
Claudio Sanches 74df88536c
Merge pull request #27962 from woocommerce/update-stable-tag
Update stable tag to WC 4.6.0
2020-10-14 11:00:35 -03:00
Rodrigo Primo dfb8469195 Update stable tag to WC 4.6.0 2020-10-14 10:57:20 -03:00
Ron Rennick b64374d962 revert accidental change to e2e package 2020-10-14 10:57:09 -03:00
Rodrigo Primo ec1fd1f148
Merge pull request #27955 from woocommerce/update/woocommerce-admin/1.6.1
Update woocommerce-admin to 1.6.1
2020-10-14 10:39:30 -03:00
Ron Rennick 8ec54fabe0 phpcs fixes 2020-10-14 10:27:58 -03:00
vedanshujain a332b399d3 Use variable instead of magic constants. 2020-10-14 18:50:44 +05:30
Ron Rennick cd20044b13 Merge branch 'master' into fix/27215 2020-10-14 10:16:36 -03:00
Rodrigo Primo cccbc83b3c Bump the WP versions used in the Travis build jobs 2020-10-14 10:11:26 -03:00
Rodrigo Primo 22b231f6c4 Remove redundant Travis build job
This commit removes a redundant Travis build job that runs unit tests
against PHP 7.2 and the latest version of WP. A build job with the same
characteristics is alredy defined in
3bb94bc23f/.travis.yml (L20)
as if the WP version is not specified, the latest version is used
(3bb94bc23f/.travis.yml (L25)).
2020-10-14 10:05:11 -03:00
vedanshujain c01f32a390 Use default value if formatted value is not available 2020-10-14 14:51:19 +05:30
vedanshujain 8e12de5d3c Merge branch 'fix/api/229-unit-test' of https://github.com/shiki/woocommerce into fix/api/229 2020-10-14 13:53:03 +05:30
Rua Haszard 95f4b5b81e restore original comment (related changes are gone) 2020-10-14 12:35:32 +13:00
Rua Haszard 5e3713da75 check password-set user token before redirecting to set password form:
- this prevents the password reset process earlier (before the redirect)
- also now shows a notice informing the user that they need to log out
  of (other) account
2020-10-14 12:26:51 +13:00
Rua Haszard 1f5601f0fe ensure lost-password form only resets password for correct user:
- if a user is logged in, check their ID matches the ID in the reset
  key / token
2020-10-14 12:12:01 +13:00
Timmy Crawford 729086a583 Update woocommerce-admin to 1.6.1 2020-10-13 15:42:09 -07:00
Rua Haszard 5e5d06cfab show lost-password form when logged-in user:
- in the checkout signup use case, the user may be setting their
password in a logged-in browser session; they need to be able to set an
initial account password
2020-10-14 09:50:36 +13:00
Rua Haszard b34ad5be5c improve PHPdocs for get_endpoint_title and related hook:
- add @since (original since based on git blame)
- document all params
- add @since for newly-added params
- add docs for woocommerce_endpoint_{$endpoint}_title
2020-10-14 09:50:36 +13:00
Rua Haszard 6032962e59 use "Set password" title for lost-password endpoint for more actions:
- 'rp' and 'resetpass' are used in WordPress core
1079647d30/wp-login.php (L913)
- using 'newaccount' for checkout signup case
2020-10-14 09:50:36 +13:00
Rua Haszard 1eb02845aa support overriding/customising password reset page title via `action`:
- get_endpoint_title now takes an extra `action` param
  - this also is passed to the relevant hook (as an additional arg)
  - woocommerce_endpoint_{$endpoint}_title
- for `lost-password?action=rp`, use `Set password`
- pass action query param through when using get_endpoint_title
2020-10-14 09:50:36 +13:00
Rodrigo Primo 3bb94bc23f
Merge pull request #27952 from woocommerce/fix/27950
restore shipping setup test
2020-10-13 17:28:55 -03:00
Julia Amosova 03078c5a9d Implement `waitAndClick` in the setup e2e test. 2020-10-13 16:25:28 -04:00
Ron Rennick 13bcd43bfe expose automattic/puppeteer-utils in e2e-environment 2020-10-13 16:16:32 -04:00
Ron Rennick 24713a45c3 restore shipping setup test 2020-10-13 16:15:07 -03:00
Claudio Sanches e655b44717 Fixed coding standards 2020-10-13 22:32:32 +05:30
Shiki 1be78d1ebf Use different terms to avoid clash with the similar V2 test
I suppose I could have deleted the attribute and term first but I think
this is better and shorter. Maybe.
2020-10-13 22:32:32 +05:30
Shiki a9bf6b71ac OrdersV2: Add test for line items meta_data
This currently fails because it's not implemented yet.
2020-10-13 22:32:32 +05:30
Shiki 871a9e0b8f Add line items meta_data schema test for Orders V2 and V3
This currently fails because the expected meta_data properties are only
available in V3.
2020-10-13 22:32:32 +05:30
Shiki c5fd3ed21c WC_Tests_API_Orders: Add test data for site-level attributes 2020-10-13 22:32:31 +05:30
Shiki 62f1705690 WC_Tests_API_Orders: Rearrange order variable for clarity 2020-10-13 22:32:31 +05:30
Shiki c16ec9bf54 WC_Tests_API_Orders: Rename first_meta_data to size_* 2020-10-13 22:32:31 +05:30
Shiki a0d9b49e43 Add unit test for an Order's line item meta data. 2020-10-13 22:32:31 +05:30
Shiki 2e165e7558 Orders: Make display_key and _value meta available for v3 and v3
This resolves the intentionally failing
WC_Tests_API_Orders_V2::test_get_item_with_line_items_meta_data.
2020-10-13 22:32:31 +05:30
Shiki a3f46e5526 Schema: Make display_key and *_value available for v3 and v2
This is just the schema and the actual functionality isn't implemented yet.
2020-10-13 22:32:30 +05:30
Shiki b9ae830da5 Fix formatting in Orders V2 unit test 2020-10-13 22:32:30 +05:30
Shiki f45e8b884b Orders V3: Reuse WC_Order_Item->get_formatted_meta_data
Previously, I was using my own function. This time, we're using the function
available in WC_Order_Item but sanitizing the results after.
2020-10-13 22:32:30 +05:30
Shiki 2e92460df2 Orders V3: Include display_key and display_value in item meta_data 2020-10-13 22:32:30 +05:30
Shiki d8ac282c80 Orders V3 Schema: Add display_key and display_value for meta props 2020-10-13 22:32:29 +05:30
Rodrigo Primo f4316a0e9f Add github-actions[bot] to the list of ignored users
This commit simply adds github-actions[bot] (a bot used in the
woocommerce-blocks repository) to the list of users ignored
by the bin/contributors.sh script.
2020-10-13 11:47:49 -03:00