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
Mateusz Gbiorczyk
b730298ee6
Escaping output for field label
2020-09-29 14:25:56 +02: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
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