Repository navigation
New. Connection reports. Reports for API calls implemented. - #918
alexandergull merged 7 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #918 +/- ##
============================================
+ Coverage 36.90% 37.37% +0.46%
- Complexity 7434 7498 +64
============================================
Files 301 301
Lines 28115 28338 +223
============================================
+ Hits 10377 10591 +214
- Misses 17738 17747 +9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
Two credential-redaction gaps allow hoster and embedded site access keys to be stored in diagnostic reports.
2 open issues
What changed in this PR
Extends the existing connection-reporting system to track API calls separately from Anti-Spam moderation requests.
Changes:
- Records API connection failures with request sanitization and separate statistics and retention limits.
- Adds report-source and API-method fields to storage.
- Displays API request types and statistics in settings and email reports.
| File | Description |
|---|---|
| tests/ApbctWP/TestConnectionReports.php | Adds API-reporting checks and cleanup; excluded from review. |
| lib/Cleantalk/Common/Schema.php | Adds source and method-name columns. |
| lib/Cleantalk/ApbctWP/PluginSettingsPage/SummaryAndSupportRenderer.php | Allows paragraphs in report HTML. |
| lib/Cleantalk/ApbctWP/ConnectionReports.php | Implements API reporting, sanitization, statistics, and display. |
| lib/Cleantalk/ApbctWP/API.php | Passes API results to connection reporting. |
Review effort: Balanced
…-implemented-VI # Conflicts: # lib/Cleantalk/ApbctWP/ConnectionReports.php
There was a problem hiding this comment.
🟡 Changes recommended
API failures can be misclassified and bypass rotation limits before schema updates complete, while truncation without mbstring can corrupt UTF-8 and lose entire request payloads.
2 open issues
2 resolved since last review
1 file not reviewed
css/cleantalk-admin-settings-page.min.css: Generated file
Review effort: Balanced
Done to avoid failure on report creation due plugin update timeframe. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Done to avoid payload missing in case of UTF-8 issues. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
b9316ca to
bbe219e
Compare


https://app.doboard.com/1/task/55510