Plugin Directory

Changeset 3472060


Ignore:
Timestamp:
03/01/2026 12:47:20 PM (4 weeks ago)
Author:
mateuszflowsystems
Message:

Release 1.1.1

Location:
flowsystems-webhook-actions/trunk
Files:
2 added
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • flowsystems-webhook-actions/trunk/README.txt

    r3471792 r3472060  
    55Tested up to: 6.9
    66Requires PHP: 8.0
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    185185
    186186== 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()`
    187190
    188191= 1.1.0 =
     
    215218== Upgrade Notice ==
    216219
     220= 1.1.1 =
     221Fixes permanently_failed entries being undercounted in delivery statistics. No database changes.
     222
    217223= 1.1.0 =
    218224This 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  
    11{
    22  "src/main.js": {
    3     "file": "assets/main-C1P6l3fn.js",
     3    "file": "assets/main-DjkfZCt4.js",
    44    "name": "main",
    55    "src": "src/main.js",
     
    77  },
    88  "style.css": {
    9     "file": "assets/style-DPbNsgg4.css",
     9    "file": "assets/style-CckM26yn.css",
    1010    "src": "style.css"
    1111  }
  • flowsystems-webhook-actions/trunk/flowsystems-webhook-actions.php

    r3471792 r3472060  
    44 * Plugin URI: https://flowsystems.pl/wordpress-webhook-actions
    55 * Description: Trigger HTTP webhooks from WordPress actions (do_action). Easily connect WordPress with n8n, Zapier, Make, or custom workflows.
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Author: Mateusz Skorupa
    88 * Author URI: https://flowsystems.pl
     
    1717defined('ABSPATH') || exit;
    1818
    19 define('FSWA_VERSION', '1.1.0');
     19define('FSWA_VERSION', '1.1.1');
    2020define('FSWA_FILE', __FILE__);
    2121
  • flowsystems-webhook-actions/trunk/src/Repositories/LogRepository.php

    r3471792 r3472060  
    388388    }
    389389
    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'];
    392392
    393393    return $result;
     
    418418      "SELECT status, COUNT(*) as count
    419419       FROM {$this->logsTable}
    420        WHERE status IN ('success', 'error')
     420       WHERE status IN ('success', 'error', 'permanently_failed')
    421421       GROUP BY status",
    422422      ARRAY_A
     
    434434      if ($stat['status'] === 'success') {
    435435        $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;
    438438      }
    439439      $result['total_sent'] += $count;
  • flowsystems-webhook-actions/trunk/src/Services/LogArchiver.php

    r3462891 r3472060  
    106106        "SELECT status, COUNT(*) as count
    107107         FROM {$logsTable}
    108          WHERE created_at < %s AND status IN ('success', 'error')
     108         WHERE created_at < %s AND status IN ('success', 'error', 'permanently_failed')
    109109         GROUP BY status",
    110110        $date
     
    120120      if ($stat['status'] === 'success') {
    121121        $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'];
    124124      }
    125125    }
Note: See TracChangeset for help on using the changeset viewer.