New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download reporting #17679
Download reporting #17679
Conversation
…Order details Downloads section
…ings on order details page
…d with static UUID instead of filename based hash, to preserve download links, logs, and permissions across filename changes
…e for PHP 5.2 compat
… ready for merging
…wnload count and proper escaping on report links
… log report titles in standalone function, reorganize download log data store read for code readability
…and downloads remaining in SQL to avoid race conditions with updating in PHP
… download log ids should no longer change based on file paths
…THOD__ instead of hard coded function name
…load_paths since download ids should no longer change. They are now static UUIDs.
Codecov Report
@@ Coverage Diff @@
## master #17679 +/- ##
============================================
+ Coverage 34.89% 34.9% +<.01%
- Complexity 12197 12286 +89
============================================
Files 332 336 +4
Lines 50016 50400 +384
============================================
+ Hits 17455 17591 +136
- Misses 32561 32809 +248
Continue to review full report at Codecov.
|
Deprecation notices are breaking a bunch of the tests: https://travis-ci.org/woocommerce/woocommerce/jobs/301563517 |
@@ -560,7 +560,7 @@ private static function get_schema() { | |||
) $collate; | |||
CREATE TABLE {$wpdb->prefix}woocommerce_downloadable_product_permissions ( | |||
permission_id BIGINT UNSIGNED NOT NULL auto_increment, | |||
download_id varchar(32) NOT NULL, | |||
download_id varchar(36) NOT NULL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need an update script for this, too? Otherwise old DBs won't properly handle the new download IDs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dbdelta handles it
Looks good and works well. Just a question and the tests need fixing. |
This is a continuation of #16418
TODO: