Peter Fabian
c1af1da752
Updated structure of SQL queries for coupons and products.
...
As there can be multiple couopns and products assigned to one order, it requires different handling to what was initially implemented.
2018-11-27 16:34:12 +01:00
Peter Fabian
8e5709ce26
Updated get_unique_products to be more versatile and support running in other contexts.
...
In some cases of advanced filters, it produced incorrect SQL code.
Additionally, split of where clause to time clause and rest needed to be reflected here, too.
2018-11-27 16:32:42 +01:00
Peter Fabian
32e30ac274
Made sync of order stats table run also on clean_post_cache.
...
Otherwise, some changes in master data for orders would not be reflected, as save_post action is skipped if order is updated while the save_post action is running.
2018-11-27 16:29:21 +01:00
Peter Fabian
216b7c94ca
Updated structure for includes/excludes coupons and products subqueries.
...
As there can be multiple coupons and products assigned to one order, it needs to ba handled differently when constructing SQL query.
2018-11-27 16:26:50 +01:00
Peter Fabian
7dd611f4d4
Added table name to time period sql params.
...
Without this, the subquery could not be used in some contexts, as the column name was ambiguous.
2018-11-27 16:23:40 +01:00
Peter Fabian
8dbcbfc6cb
Store coupon id, not coupon item id in the stat table.
2018-11-27 16:18:42 +01:00
Peter Fabian
942db641e8
Added extra trigger for updating stats tables.
...
If order is updated while save_post action is in progress, then the update does not trigger stats table update, thus stats table gets out of sync with master data.
2018-11-27 16:17:30 +01:00
Peter Fabian
a86560498e
Added primary key to coupon lookup.
...
Otherwise REPLACE query adds a multiple identical rows.
2018-11-23 22:29:47 +01:00
Peter Fabian
db9d6e03e7
Added spaces around operator.
2018-11-16 18:22:40 +01:00
Peter Fabian
c1cf221773
Fixed typos.
2018-11-16 18:02:19 +01:00
Peter Fabian
26debd77c3
WIP on advanced filters.
...
Plus fixing bugs:
- fixed tests
- fixed schema definition to reflect response data
- split WHERE SQL clause into time constraints and rest
2018-11-16 17:51:33 +01:00
Peter Fabian
46923de3d2
Removed superfluous unsets.
2018-11-16 12:37:15 +01:00
Peter Fabian
7c6d0dc314
Handled case where match parameter is missing.
2018-11-16 12:32:13 +01:00
Peter Fabian
ea766b83ca
Renamed method to better reflect its purpose.
...
Plus added conversion of count as string to integer.
2018-11-16 12:30:00 +01:00
Peter Fabian
16d5265aed
Merge branch 'master' into fix/749
2018-11-16 12:16:50 +01:00
Peter Fabian
ba09fea35d
Updated filters subqueries to correctly handle no filter case.
2018-11-16 12:12:47 +01:00
Albert Juhé Lluveras
cc86233e0f
Add Coupons report table ( https://github.com/woocommerce/woocommerce-admin/pull/867 )
...
* Add Coupons report table
* Fix propTypes warning in CouponsReportTable
* Remove unnecessary constructors from tables
2018-11-15 21:35:10 -06:00
Albert Juhé Lluveras
ba7d6ef29f
Minor fixes to stores ( https://github.com/woocommerce/woocommerce-admin/pull/868 )
...
* Minor fixes to stores
* Fix 'parameters' typo
2018-11-15 21:32:11 -06:00
Kelly Dwan
94200cbbc1
chore(release): publish
...
- @woocommerce/components@1.0.0-alpha.1
- @woocommerce/csv-export@1.0.0-alpha.1
- @woocommerce/currency@1.0.0-alpha.1
- @woocommerce/date@1.0.0-alpha.1
- @woocommerce/navigation@1.0.0-alpha.1
2018-11-15 18:31:20 -05:00
Allen Snook
d8dd2a0083
Update README.md
2018-11-15 13:13:35 -08:00
renovate[bot]
9f390ba0da
Pin dependencies ( https://github.com/woocommerce/woocommerce-admin/pull/863 )
...
* Pin dependencies
* Update Package-lock.json
2018-11-15 14:59:34 -05:00
Kelly Dwan
2a9cb6509b
Build: Move components to packages dir ( https://github.com/woocommerce/woocommerce-admin/pull/804 )
...
* Move components to packages folder
* Update documentation generator to handle packages/components and client/components
* Update component locations
* Update CSS build process
* Remove react-dates css, this is already included by gutenberg
* Fix CSS style - single quotes
* Fix incorrect imports
* Update package-lock with new dependencies
* Update component locations for devdocs
* Fix location of tests
2018-11-15 13:16:23 -05:00
Peter Fabian
723ac1e506
Added defaults for new params to Data Store.
2018-11-15 19:01:52 +01:00
Peter Fabian
9d86e01f4e
Updated REST controller with new parameters.
2018-11-15 19:01:22 +01:00
Allen Snook
e150ce4034
Merge pull request woocommerce/woocommerce-admin#851 from woocommerce/add/admin-notices-rest-api-unit-tests-2
...
Add admin notices REST API unit tests
2018-11-15 09:24:17 -08:00
Albert Juhé Lluveras
8997d4ca26
Update chart breakpoints ( https://github.com/woocommerce/woocommerce-admin/pull/838 )
...
* Update chart breakpoints to match the other parts or wc-admin
* Make chart have always the specified height so it matches the legend total label
* Remove obsolete test
* Remove exports no longer needed
* Remove @wordpress/viewport dependency from chart.js
* Update chart docs
* Make tooltipPosition PropType more strict
2018-11-15 09:27:55 -06:00
Peter Fabian
d009deb3e1
Added initial implementation of advanced filters.
2018-11-15 15:27:19 +01:00
Peter Fabian
0374119245
Added zero padding to hours in unit tests. ( https://github.com/woocommerce/woocommerce-admin/pull/858 )
2018-11-15 08:19:13 -05:00
Jonathan Belcher
2dbe3e8cc7
Adds UI wiring for Taxes chart and summary ( https://github.com/woocommerce/woocommerce-admin/pull/779 )
...
* Adds UI wiring for Taxes chart and summary
* Update to latest method for creating summary/chart
* Switch out API for swagger
* Fix copy pasta
* Implement swagger api
* Update config to match swagger API
* Code review fixes
* Remove store code as it isnt used
2018-11-14 16:04:59 -05:00
Jonathan Belcher
5132e81b7c
Fixes code comments on return value type ( https://github.com/woocommerce/woocommerce-admin/pull/850 )
2018-11-14 15:33:13 -05:00
Allen Snook
aeb7d15c9a
Deeply test the structure of a single note for expected values
2018-11-14 11:17:01 -08:00
Allen Snook
40376c23e1
Add unit tests for admin notes REST API
2018-11-14 11:06:53 -08:00
Renovate Bot
cf008b9e77
Pin dependency phpunit/phpunit to 6.5.13
2018-11-14 16:56:00 +00:00
renovate[bot]
ca0165ff5d
Update dependency deasync to v0.1.14 ( https://github.com/woocommerce/woocommerce-admin/pull/839 )
2018-11-14 11:55:18 -05:00
Jonathan Belcher
60bd7a477f
Adds basic snapshot for dropdown button ( https://github.com/woocommerce/woocommerce-admin/pull/843 )
2018-11-14 11:52:47 -05:00
renovate[bot]
7c640c1c1c
Update babel monorepo to v7.1.6 ( https://github.com/woocommerce/woocommerce-admin/pull/834 )
2018-11-14 10:46:47 -05:00
Peter Fabian
f562562055
Merge pull request woocommerce/woocommerce-admin#758 from woocommerce/fix/751
...
PHPUnit testing improvements
2018-11-14 10:42:10 +01:00
Allen Snook
17a997f313
Merge pull request woocommerce/woocommerce-admin#808 from woocommerce/fix/796-polyfill-part-deux
...
Remove the SCRIPT_DEBUG:true requirement
2018-11-13 14:35:01 -08:00
Paul Sealock
c809fa6cb9
Apply onQueryChange to more than just 'filter'
2018-11-14 09:56:39 +13:00
Boro Sitnikovski
83fdaf6cd6
Fix some PHP notices when accessing WC Settings screen ( https://github.com/woocommerce/woocommerce-admin/pull/828 )
...
* Fix some PHP notices when accessing WC Settings screen
* Add sanitization
2018-11-13 14:08:01 -05:00
Albert Juhé Lluveras
1d5364f6a6
Add ProductImage to variations autocompleter ( https://github.com/woocommerce/woocommerce-admin/pull/832 )
2018-11-13 09:40:17 -06:00
Peter Fabian
11d6f2e93a
Updated query parameters according to spec.
2018-11-13 16:24:57 +01:00
Jonathan Belcher
2eff88bf4c
Adds a test snapshot for count ( https://github.com/woocommerce/woocommerce-admin/pull/830 )
2018-11-13 09:39:42 -05:00
renovate[bot]
a2f0f5c875
Update dependency husky to v1.1.4 ( https://github.com/woocommerce/woocommerce-admin/pull/829 )
2018-11-13 09:16:01 -05:00
Robert Elliott
bd1997b725
Merge pull request woocommerce/woocommerce-admin#785 from woocommerce/add/chart-63day-x1month-x2year
...
Component - chart: more than 9 weeks of ticks change xFormat to months & x2Format to yrs
2018-11-13 10:16:01 +02:00
Jonathan Belcher
59a3db306e
Remove unneeded leading whitespace ( https://github.com/woocommerce/woocommerce-admin/pull/820 )
...
This has made it difficult to quick create test instructions since I have to add a leading space before every step.
2018-11-12 16:50:03 -05:00
Jonathan Belcher
ffaa80a95e
Add snapshotting to Animation Slider ( https://github.com/woocommerce/woocommerce-admin/pull/819 )
2018-11-12 16:49:40 -05:00
Jonathan Belcher
cd00227875
Adds Card Snapshot ( https://github.com/woocommerce/woocommerce-admin/pull/821 )
2018-11-12 16:49:32 -05:00
Albert Juhé Lluveras
5033a1ba5c
Update comparison chart design and show it on the Product report ( https://github.com/woocommerce/woocommerce-admin/pull/816 )
...
* Display comparison chart in Product detail report
* Make legend to overflow in comparison charts
* Show comparison chart also when comparing products
* Update comparison chart legend design
* Send itemsLabel and comparisonChart as props to the ReportChart component
* Update styles and create a legend.scss file
* Minor cleanup
* Fix legend test
* Sort props alphabetically
2018-11-12 15:41:33 -06:00
Jonathan Belcher
5c84bd4790
Update composer.lock
2018-11-12 14:53:18 -05:00