Changeset 3472060
- Timestamp:
- 03/01/2026 12:47:20 PM (4 weeks ago)
- Location:
- flowsystems-webhook-actions/trunk
- Files:
-
- 2 added
- 2 deleted
- 5 edited
-
README.txt (modified) (3 diffs)
-
admin/dist/.vite/manifest.json (modified) (2 diffs)
-
admin/dist/assets/main-C1P6l3fn.js (deleted)
-
admin/dist/assets/main-DjkfZCt4.js (added)
-
admin/dist/assets/style-CckM26yn.css (added)
-
admin/dist/assets/style-DPbNsgg4.css (deleted)
-
flowsystems-webhook-actions.php (modified) (2 diffs)
-
src/Repositories/LogRepository.php (modified) (3 diffs)
-
src/Services/LogArchiver.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flowsystems-webhook-actions/trunk/README.txt
r3471792 r3472060 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.0 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html … … 185 185 186 186 == Changelog == 187 188 = 1.1.1 = 189 - Fixed `permanently_failed` entries being excluded from total and error delivery statistics in `getStats()`, `getAllTimeStats()`, and `LogArchiver::aggregateStatsBeforeDeletion()` 187 190 188 191 = 1.1.0 = … … 215 218 == Upgrade Notice == 216 219 220 = 1.1.1 = 221 Fixes permanently_failed entries being undercounted in delivery statistics. No database changes. 222 217 223 = 1.1.0 = 218 224 This release adds new database columns (`event_uuid`, `event_timestamp`, `attempt_history`, `next_attempt_at` on logs; `log_id` on queue). The migration runs automatically on plugin activation or update. No manual steps required. -
flowsystems-webhook-actions/trunk/admin/dist/.vite/manifest.json
r3471792 r3472060 1 1 { 2 2 "src/main.js": { 3 "file": "assets/main- C1P6l3fn.js",3 "file": "assets/main-DjkfZCt4.js", 4 4 "name": "main", 5 5 "src": "src/main.js", … … 7 7 }, 8 8 "style.css": { 9 "file": "assets/style- DPbNsgg4.css",9 "file": "assets/style-CckM26yn.css", 10 10 "src": "style.css" 11 11 } -
flowsystems-webhook-actions/trunk/flowsystems-webhook-actions.php
r3471792 r3472060 4 4 * Plugin URI: https://flowsystems.pl/wordpress-webhook-actions 5 5 * Description: Trigger HTTP webhooks from WordPress actions (do_action). Easily connect WordPress with n8n, Zapier, Make, or custom workflows. 6 * Version: 1.1. 06 * Version: 1.1.1 7 7 * Author: Mateusz Skorupa 8 8 * Author URI: https://flowsystems.pl … … 17 17 defined('ABSPATH') || exit; 18 18 19 define('FSWA_VERSION', '1.1. 0');19 define('FSWA_VERSION', '1.1.1'); 20 20 define('FSWA_FILE', __FILE__); 21 21 -
flowsystems-webhook-actions/trunk/src/Repositories/LogRepository.php
r3471792 r3472060 388 388 } 389 389 390 // Total only counts completed deliveries (success + error)391 $result['total'] = $result['success'] + $result['error'] ;390 // Total counts completed deliveries (success + error + permanently_failed) 391 $result['total'] = $result['success'] + $result['error'] + $result['permanently_failed']; 392 392 393 393 return $result; … … 418 418 "SELECT status, COUNT(*) as count 419 419 FROM {$this->logsTable} 420 WHERE status IN ('success', 'error' )420 WHERE status IN ('success', 'error', 'permanently_failed') 421 421 GROUP BY status", 422 422 ARRAY_A … … 434 434 if ($stat['status'] === 'success') { 435 435 $result['total_success'] = $count; 436 } elseif ($stat['status'] === 'error' ) {437 $result['total_error'] = $count;436 } elseif ($stat['status'] === 'error' || $stat['status'] === 'permanently_failed') { 437 $result['total_error'] += $count; 438 438 } 439 439 $result['total_sent'] += $count; -
flowsystems-webhook-actions/trunk/src/Services/LogArchiver.php
r3462891 r3472060 106 106 "SELECT status, COUNT(*) as count 107 107 FROM {$logsTable} 108 WHERE created_at < %s AND status IN ('success', 'error' )108 WHERE created_at < %s AND status IN ('success', 'error', 'permanently_failed') 109 109 GROUP BY status", 110 110 $date … … 120 120 if ($stat['status'] === 'success') { 121 121 $success = (int) $stat['count']; 122 } elseif ($stat['status'] === 'error' ) {123 $error = (int) $stat['count'];122 } elseif ($stat['status'] === 'error' || $stat['status'] === 'permanently_failed') { 123 $error += (int) $stat['count']; 124 124 } 125 125 }
Note: See TracChangeset
for help on using the changeset viewer.