From 692b32f4670222a79a482298ef86134784209769 Mon Sep 17 00:00:00 2001 From: John Simons Date: Wed, 30 Sep 2026 11:54:09 +1000 Subject: [PATCH] Fix "Resolve all" on pending retries to respect the selected queue and date range Fixes a bug where `resolveAll` was always sending epoch zero as the date range and ignoring the selected queue filter. Now mirrors the same logic as `retryAll`, using the current period and optionally scoping to the selected queue via the `pendingretries/queues/resolve` endpoint. Also replaces the sentinel string `"empty"` used for the unselected queue state with `null`, making the intent clearer and the type more accurate. --- .../failedmessages/PendingRetries.vue | 4 +- .../src/stores/RecoverabilityStore.ts | 25 ++++-- .../test/preconditions/pendingRetries.ts | 23 +++++- .../actions/resolveAllPendingRetries.ts | 11 +++ .../questions/pendingRetriesView.ts | 9 ++ .../resolving-all-pending-retries.spec.ts | 82 +++++++++++++++++++ 6 files changed, 145 insertions(+), 9 deletions(-) create mode 100644 src/Frontend/test/specs/failedmessages/actions/resolveAllPendingRetries.ts create mode 100644 src/Frontend/test/specs/failedmessages/resolving-all-pending-retries.spec.ts diff --git a/src/Frontend/src/components/failedmessages/PendingRetries.vue b/src/Frontend/src/components/failedmessages/PendingRetries.vue index 0840f67a0..591841313 100644 --- a/src/Frontend/src/components/failedmessages/PendingRetries.vue +++ b/src/Frontend/src/components/failedmessages/PendingRetries.vue @@ -104,7 +104,7 @@ async function retryAllMessages() { } function retryAllClicked() { - if (selectedQueue.value === "empty") { + if (selectedQueue.value === null) { showCantRetryAll.value = true; } else { showRetryAllConfirm.value = true; @@ -154,7 +154,7 @@ watch(isRefreshing, () => {