Skip to content

Upd. Spam orders.New column order_date added.#835

Merged
Glomberg merged 9 commits into
devfrom
Upd-Spam-orders-New-column-added-VI
Jul 23, 2026
Merged

Upd. Spam orders.New column order_date added.#835
Glomberg merged 9 commits into
devfrom
Upd-Spam-orders-New-column-added-VI

Conversation

@Glomberg

Copy link
Copy Markdown
Member

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_date column to the wc_spam_orders DB 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_date when 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.

Comment thread lib/Cleantalk/Common/Schema.php
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php
Comment thread lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php
Comment thread lib/Cleantalk/Antispam/IntegrationsByClass/Woocommerce.php
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 37 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.55%. Comparing base (e485d6d) to head (9dbfcfb).

Files with missing lines Patch % Lines
lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php 0.00% 29 Missing ⚠️
...ntalk/Antispam/IntegrationsByClass/Woocommerce.php 0.00% 8 Missing ⚠️

❌ 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.58%   27.55%   -0.04%     
- Complexity     6043     6052       +9     
============================================
  Files           282      282              
  Lines         25152    25183      +31     
============================================
  Hits           6939     6939              
- Misses        18213    18244      +31     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread lib/Cleantalk/Common/Schema.php
@Glomberg
Glomberg merged commit cb91635 into dev Jul 23, 2026
7 of 8 checks passed
@Glomberg
Glomberg deleted the Upd-Spam-orders-New-column-added-VI branch July 23, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants