all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Robert Obkircher <r.obkircher@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [PATCH v1 proxmox-backup 2/2] www: fix incorrect sync count on datastores summary
Date: Wed,  3 Jun 2026 17:22:17 +0200	[thread overview]
Message-ID: <20260603152257.285923-3-r.obkircher@proxmox.com> (raw)
In-Reply-To: <20260603152257.285923-1-r.obkircher@proxmox.com>

Correctly extract the datastore id from the sync job worker id, so it
is counted on the datastores summary page.

Signed-off-by: Robert Obkircher <r.obkircher@proxmox.com>
---
 www/Utils.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/Utils.js b/www/Utils.js
index 8f382a3b4..ed3806bfc 100644
--- a/www/Utils.js
+++ b/www/Utils.js
@@ -405,11 +405,11 @@ Ext.define('PBS.Utils', {
         me.VERIFICATION_JOB_ID_RE = new RegExp('^' + PROXMOX_SAFE_ID_REGEX + ':?');
         me.SYNC_JOB_ID_RE = new RegExp(
             '^' +
-                PROXMOX_SAFE_ID_REGEX +
+                '(?:' + PROXMOX_SAFE_ID_REGEX + '|-)' + // remote
                 ':' +
-                PROXMOX_SAFE_ID_REGEX +
+                PROXMOX_SAFE_ID_REGEX + // remote datastore
                 ':' +
-                PROXMOX_SAFE_ID_REGEX +
+                PROXMOX_SAFE_ID_REGEX + // local datastore
                 ':',
         );
         me.BACKUP_JOB_ID_RE = new RegExp('^' + PROXMOX_SAFE_ID_REGEX + ':');
-- 
2.47.3





      parent reply	other threads:[~2026-06-03 15:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-03 15:22 [PATCH v1 proxmox-backup 0/2] fix prune and sync count on datastores summary Robert Obkircher
2026-06-03 15:22 ` [PATCH v1 proxmox-backup 1/2] www: fix incorrect prune " Robert Obkircher
2026-06-03 15:22 ` Robert Obkircher [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260603152257.285923-3-r.obkircher@proxmox.com \
    --to=r.obkircher@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal