Rodrigo Primo
788969d2bb
Merge pull request #27832 from woocommerce/update/woocommerce-admin/1.6.0-rc.3
...
Update woocommerce-admin to 1.6.0-rc.3
2020-10-01 15:41:59 -03:00
Rodrigo Primo
7d5ac90ff0
Merge pull request #27822 from woocommerce/fix/set-activation-redirect-transient-for-new-installs-only
...
Update the activation transient to only get added on new installs
2020-10-01 15:06:44 -03:00
Ron Rennick
c17b6b5ad0
Update expected industry count
2020-10-01 14:46:04 -03:00
Ron Rennick
4af90518da
lock file maintenance
2020-10-01 14:21:40 -03:00
Timmy Crawford
7efccce126
Update woocommerce-admin to 1.6.0-rc.3
2020-10-01 06:39:57 -07:00
Ron Rennick
8910357437
add missing test stubs
2020-10-01 10:25:22 -03:00
Nestor Soriano
52eed70f04
Add a 'NumberUtil' class with a 'round' method.
...
There's a number of places in the WooCommerce codebase where the
built-in function 'round' is executed passing a non-numeric value
(not a number and not a string that can be parsed as a number),
for example round(''). In PHP 7 this yields a value of 0, but in
PHP 8 this throws an error.
This commit adds a 'NumberUtil' class with a static 'round' method,
this method checks if the passed value is numeric and if so it just
executes the built-in function, otherwise it returns 0. And all the
calls to 'round' in the codebase are replaced with 'NumberUtil::round'.
2020-10-01 11:08:51 +02:00
Nestor Soriano
b1e81d02da
Fix code style/sniffer errors in a few files.
2020-10-01 11:08:51 +02:00
Renovate Bot
77f21f40c0
Update dependency husky to v4.3.0
2020-10-01 03:06:15 +00:00
Jonathan Sadowski
e540b4820e
Rename maybe_enable_setup_wizard to maybe_set_activation_transients
2020-09-30 17:27:43 -05:00
Jonathan Sadowski
83238ec1d7
Move maybe_enable_setup_wizard abode update_wc_version so new install is detected
2020-09-30 17:01:43 -05:00
Jonathan Sadowski
95755cb59d
Update the activation transient to only get added on new installs
2020-09-30 16:00:45 -05:00
Christopher Allford
d245a60c6e
Merge pull request #27739 from woocommerce/packages/factories-to-api-refactor
...
Transform @woocommerce/model-factories into @woocommerce/api
2020-09-30 13:46:04 -07:00
Christopher Allford
f6cbab8d07
Added missing static helpers for fetching repositories
2020-09-30 13:16:46 -07:00
Christopher Allford
fccf1fb66e
Added settings and group repositories with some basic functionality
2020-09-30 13:11:31 -07:00
Ron Rennick
be15429c30
restore ability to run individual tests
2020-09-30 17:05:02 -03:00
Ron Rennick
72219b2323
move merchant tests to package
2020-09-30 14:41:31 -03:00
Christopher Allford
4c2637c479
Added a `list` operation to the repository
2020-09-30 07:59:10 -07:00
Christopher Allford
f571324a09
Added better type-safety when distinguishing between resources that are children and those that are not
2020-09-29 18:40:50 -07:00
jonathansadowski
2c1fe4235d
Merge pull request #27806 from woocommerce/fix/wca-install-redirect
...
Add back in activation transient to redirect on install
2020-09-29 16:23:10 -05:00
Ron Rennick
76f591251a
move front end tests to package
2020-09-29 17:00:34 -03:00
Ron Rennick
27e79f465f
split activation, onboarding, setup tests into separate files
2020-09-29 16:16:43 -03:00
Christopher Allford
8c5548d06e
Added @template JSDoc tag to API package for better IDE support
2020-09-29 12:00:09 -07:00
Joshua Flowers
048c43a37f
Add back in activation transient to redirect on install
2020-09-29 14:25:15 -04:00
Ron Rennick
1abbe3f273
initial core test package files, move setup tests to package
2020-09-29 15:22:20 -03:00
Ron Rennick
802b364b05
Merge branch 'master' into fix/27681
2020-09-28 16:17:51 -03:00
Ron Rennick
fd60f7052a
Merge branch 'master' into fix/e2e-url-no-port
2020-09-28 16:15:22 -03:00
Nestor Soriano
f419335cdf
Remove the migration to delete variation term relationships.
2020-09-28 09:35:13 +02:00
Christopher Allford
ef93f22321
Moved the product model for consistency with other model types
2020-09-25 14:08:19 -07:00
Christopher Allford
789773c65c
Fixed E2E test
2020-09-25 14:05:11 -07:00
Christopher Allford
44c7428358
Updated package lock files and fixed test error
2020-09-25 13:49:54 -07:00
Christopher Allford
760b0e4cdb
Merge branch 'master' into packages/factories-to-api-refactor
2020-09-25 13:19:36 -07:00
Christopher Allford
73deab28a5
Merge pull request #27785 from woocommerce/fix/onboarding-flow-4-6
...
Update onboarding flow for 4.6
2020-09-25 13:16:19 -07:00
Christopher Allford
c09d91f6ce
Finished adding appropriate documentation to the API package
2020-09-25 11:11:17 -07:00
Ron Rennick
6b7d67e587
update onboarding flow for 4.6
2020-09-25 12:06:45 -03:00
vedanshujain
d51dd26816
Add unit tests.
2020-09-25 19:41:20 +05:30
Peter Fabian
51029986b5
Merge pull request #27759 from rodrigoprimo/fix/pre-push-hook
...
Fix pre-push hook used by husky
2020-09-25 12:52:44 +02:00
Milana Cap
e332a55538
Update Serbian district codes as per CLDR
2020-09-24 23:39:23 +02:00
Christopher Allford
ca0ea88e52
Updated the JSDoc and type-safety of repositories to better document the implemented operations
2020-09-24 14:22:38 -07:00
Milana Cap
7c184e5f25
Update class-wc-countries.php
2020-09-24 22:41:33 +02:00
Milana Cap
3cfbf81354
Remove country code from district codes.
2020-09-24 22:24:47 +02:00
Milana Cap
06c65431cc
Add Serbia districts.
2020-09-24 22:17:55 +02:00
Christopher Allford
5ec004cada
Added appropriate platform constraints to bin packages
2020-09-24 11:54:59 -07:00
Christopher Allford
87bf6ce1aa
Ensured Travis installs the dev composer resources
2020-09-24 10:14:07 -07:00
Ron Rennick
2ab59149ad
revert testing change to default.json
2020-09-24 12:27:35 -03:00
Peter Fabian
398e3b2c1a
Remove duplicated content.
...
Ref: #27410
2020-09-24 10:25:22 +02:00
Julia Amosova
dcd0c46ab5
Merge pull request #27714 from woocommerce/fix/headless-flag-e2e-dev-mode
...
Add missing headless flag for running e2e tests in dev mode + README updates
2020-09-23 17:05:45 -04:00
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