Skip to content

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

Open
Glomberg wants to merge 6 commits into
devfrom
Upd-Spam-orders-New-column-added-VI
Open

Upd. Spam orders.New column order_date added.#835
Glomberg wants to merge 6 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 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.61%. Comparing base (4424cfa) to head (b2c65fc).

Files with missing lines Patch % Lines
lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php 0.00% 34 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.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.
📢 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.

…lumn-added-VI

# Conflicts:
#	lib/Cleantalk/ApbctWP/WcSpamOrdersListTable.php
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.

2 participants