Upd. Spam orders.New column order_date added.#835
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the WooCommerce “spam orders” storage/listing by adding an order_date field so blocked orders can be timestamped and displayed/sorted in the admin list.
Changes:
- Adds
order_datecolumn to thewc_spam_ordersDB schema. - Updates the WooCommerce spam orders admin table to display an “Order date” column and enable sorting by date.
- Updates blocked-order persistence to write
order_datewhen inserting/updating records.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
lib/Cleantalk/Common/Schema.php |
Adds order_date column to the wc_spam_orders table schema. |
lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php |
Renders the new date column and supports sorting via ORDER BY order_date. |
lib/Cleantalk/Antispam/IntegrationsByClass/Woocommerce.php |
Extends insert/update query to include order_date when storing blocked orders. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## dev #835 +/- ##
============================================
- Coverage 27.65% 27.61% -0.05%
- Complexity 5844 5854 +10
============================================
Files 282 282
Lines 24735 24771 +36
============================================
Hits 6840 6840
- Misses 17895 17931 +36 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…lumn-added-VI # Conflicts: # lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php
https://app.doboard.com/1/task/51738