Commit Graph

39695 Commits

Author SHA1 Message Date
Josh Betz 45ac35b97b Add docblock for get_telemetry_controllers 2021-10-14 09:48:56 -05:00
Josh Betz e7eba52ba5 Change endpoint to wc-telemetry/tracker
Since this endpoint isn't a publicly documented endpoint, we'll keep it
out of the wc/v3 namespace. Instead we're introducing a new wc-telemetry
namespace. The name of the endpoint then is updating to tracker.

The wc-telemetry endpoint is unversioned for consistency with
wc-analytics and because it's not publicly documented.
2021-10-14 09:48:55 -05:00
Josh Betz eceb3f0df4 Fix the docblock copy pasta 2021-10-14 09:48:55 -05:00
Josh Betz 185313fe75 Fix the permission check for telemetry data
Any logged in user should be able to post telemetry data
2021-10-14 09:48:55 -05:00
Josh Betz 56a82a0b9d lint 2021-10-14 09:48:55 -05:00
Josh Betz 7920bbe1c0 Additional invalid tests cases
Use it.each to run the same test with various invalid test data
2021-10-14 09:48:55 -05:00
Josh Betz dc5e8af63e Add e2e tests for telemetry endpoint
* Verify that missing parameters will result in errors
* Verify that passing correct parameters will result in 200
2021-10-14 09:48:54 -05:00
Josh Betz 8175045305 Add argument validation on telemetry endpoint
Properly validate the platform and version parameters in the request
body for telemetry requests.
2021-10-14 09:48:54 -05:00
Josh Betz 55dd00852a Fix function name
We were calling this function with a different name
2021-10-14 09:48:54 -05:00
Josh Betz 3434550083 Use gmdate instead of date per coding standards
gmdate always returns a GMT date, so is not suspectible to runtime
timezone changes
2021-10-14 09:48:54 -05:00
Josh Betz f252f71b8d Convert to POST endpoint
We're only writing data now, so it's more natural for this to be a POST
endpoint. We'll send the data in the request body instead of as query
parameters.
2021-10-14 09:48:54 -05:00
Josh Betz 95a94b9309 Convert to /telemetry endpoint
Instead of overloading the application startup endpoint with recording
telemetry data, we'll start with a dedicated telemetry endpoint. This
should be easier to reason about and the additional overhead of a
separate endpoint is minimal.
2021-10-14 09:48:54 -05:00
Josh Betz 25bef4b55b Add mobile data to WCTracker
Adds an endpoint to consolidate the data that is needed every time the
app is opened instead of relying on multiple endpoints.

This is also a good place to include some basic mobile data usage in
WCTracker. We track each platform independently, so we can see which
versions of the apps are used on a given site.
2021-10-14 09:48:53 -05:00
Néstor Soriano 30df9f4a01
Merge pull request #30840 from woocommerce/add/reviews-into-marketplace-product-card
Add ratings, reviews and icons into Marketplace's Product Cards
2021-10-14 16:14:55 +02:00
Vedanshu Jain 839760a29f
Merge pull request #30876 from helgatheviking/issues/30811-shipping-metabox
Add woocommerce_product_options_shipping_product_data hook to metabox
2021-10-14 18:40:44 +05:30
Timur Gogolev 5b28b29dbd Merge remote-tracking branch 'origin/trunk' into add/reviews-into-marketplace-product-card 2021-10-14 14:18:59 +03:00
Néstor Soriano 4850dc86fe
Merge pull request #30882 from woocommerce/update/wccom-11343
Reduce Storefront banner width & track links
2021-10-14 10:30:00 +02:00
Remi Corson 9aa7fd9dd7
Merge branch 'trunk' into update/wccom-11343 2021-10-14 08:38:05 +02:00
Remi Corson 5f1fb2fc23 Update content-hash in composer.lock 2021-10-14 08:34:55 +02:00
Ron Rennick 7f2751d075
Merge pull request #30660 from woocommerce/dependabot/npm_and_yarn/tests/e2e/api/axios-0.21.2
Bump axios from 0.19.2 to 0.21.2 in /tests/e2e/api
2021-10-13 16:48:59 -03:00
Ron Rennick d8e89ff1b3
Merge pull request #30755 from woocommerce/dependabot/npm_and_yarn/tests/e2e/api/tmpl-1.0.5
Bump tmpl from 1.0.4 to 1.0.5 in /tests/e2e/api
2021-10-13 16:22:09 -03:00
Claudio Sanches a1989d117b
Merge pull request #30938 from woocommerce/add/wccom-11309
In-App Marketplace Category Banners
2021-10-13 13:59:45 -03:00
Gerhard d5c3d6da86
Typos 2021-10-13 17:59:41 +02:00
Claudio Sanches ad9c99b393 Fixed coding standards with PHPCBF 2021-10-13 12:50:19 -03:00
Claudio Sanches b385f3cb3f
Fix coding standards 2021-10-13 12:48:32 -03:00
Barry Hughes 45daf3c3c6
Merge pull request #30933 from woocommerce/preparation/post-5-8
5.8 changelogs
2021-10-13 08:30:20 -07:00
Timur Gogolev 3136dbb786 Revert composer.json 2021-10-13 18:26:01 +03:00
Claudio Sanches 6622dab679
Merge pull request #30830 from Ekliptor/trunk
fix ensure cancelling unpaid orders is always re-scheduled
2021-10-13 12:25:43 -03:00
Timur Gogolev 8e2f8bd1db Move get_star_class out of template file 2021-10-13 18:24:52 +03:00
Claudio Sanches e05ef59318
Fix coding standards. 2021-10-13 12:13:43 -03:00
Timur Gogolev a0745a6992 Fix linter bugs 2021-10-13 18:02:31 +03:00
Timur Gogolev db64f583bc Try add phpunit into deps 2021-10-13 17:58:02 +03:00
Timur Gogolev bd69cb2dd4 Try remove using of cache 2021-10-13 17:50:53 +03:00
Timur Gogolev 57c1749865 Try remove vendor folder from caching 2021-10-13 17:40:29 +03:00
And Finally e7fa363d8d Added support for dynamic price suffix in `$addon` data. 2021-10-13 16:59:44 +03:00
And Finally dd53c8d62b Added UTM params to vendor URL. 2021-10-13 16:59:44 +03:00
And Finally a31f874763 Changed SCSS comments. 2021-10-13 16:59:44 +03:00
Timur Gogolev b2b0761adb Address review comments 2021-10-13 16:59:44 +03:00
Timur Gogolev bf5e4ef48b Show ratings with the use of stars 2021-10-13 16:59:44 +03:00
Timur Gogolev 1492f8f66c Add developed-by string 2021-10-13 16:59:44 +03:00
Timur Gogolev 3801977e43 Use icon instead of image if possible 2021-10-13 16:59:44 +03:00
Timur Gogolev 85a894021a Add stars and reviews number 2021-10-13 16:59:44 +03:00
Vedanshu Jain c710cb8697
Merge pull request #30641 from san-coding/trunk
Added text to be displayed when invalid data is entered into search input field and  no search results are found
2021-10-13 17:13:11 +05:30
Remi Corson c47bd9cb32 Fix banner width for small devices 2021-10-13 13:33:04 +02:00
Gerhard 2b9172dc4d
Align array 2021-10-13 13:32:16 +02:00
barryhughes b98a624375 5.8 changelogs to trunk. 2021-10-12 11:33:58 -07:00
Mehul Gohil d848a3a5bb
remove singular entry of remove_variation (#30839) 2021-10-12 11:10:42 -04:00
Gerhard 0e592e3349
Add output methods for search promotion banners 2021-10-12 16:23:28 +02:00
Remi Corson 88cf09fcf8 Place Storefront URL into a single variable 2021-10-12 09:24:30 +02:00
Barry Hughes 680869b718
Merge pull request #30919 from woocommerce/update/woocommerce-admin-2.7.2
Bump WooCommerce Admin version to 2.7.2
2021-10-11 15:14:20 -07:00