From: Fiona Ebner <f.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com, Matthias Heiserer <m.heiserer@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox-backup 1/2] prune-simulator: allow setting a date on which prune happens
Date: Fri, 16 Sep 2022 12:08:23 +0200 [thread overview]
Message-ID: <241b9a11-6efb-4f1b-e87d-e6b727b84a7a@proxmox.com> (raw)
In-Reply-To: <20220914105039.186907-1-m.heiserer@proxmox.com>
Nit: maybe use "allow setting a custom date" for the commit title. It
affects the simulated schedule too, not just pruning.
Am 14.09.22 um 12:50 schrieb Matthias Heiserer:
> With this applied, the prune simulator will be more flexible, which might clear
> up questions such as these:
> https://forum.proxmox.com/threads/pbs-prune-simulator-monthly-backups.115081
>
> In order to have the configuration window not take up too much space,
> I added another column and moved the border slightly to the left, so the options
> part looks off-centered.
>
For me, the right side of the time fields is cut off for both new
options (both in Firefox and Chromium).
> Signed-off-by: Matthias Heiserer <m.heiserer@proxmox.com>
> ---
> .../prune-simulator/prune-simulator_source.js | 92 ++++++++++++-------
> 1 file changed, 58 insertions(+), 34 deletions(-)
>
> diff --git a/docs/prune-simulator/prune-simulator_source.js b/docs/prune-simulator/prune-simulator_source.js
> index 84d3461c..137cf1b3 100644
> --- a/docs/prune-simulator/prune-simulator_source.js
> +++ b/docs/prune-simulator/prune-simulator_source.js
> @@ -330,6 +330,8 @@ Ext.onReady(function() {
>
> let params = view.getValues();
>
> + NOW.setTime(Date.parse(params.currentDate));
NOW is currently declared as const and I guess it works, because it's a
Date object, but I'd rather just drop the variable and add a viewModel
entry instead. That also avoids a (I guess irrelevant in practice) race
between the "new Date()" calls for the two new timefields.
If it makes things easier, feel free to combine the patches into one.
prev parent reply other threads:[~2022-09-16 10:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-14 10:50 Matthias Heiserer
2022-09-14 10:50 ` [pbs-devel] [PATCH proxmox-backup 2/2] prune-simulator: allow setting a time " Matthias Heiserer
2022-09-16 10:08 ` Fiona Ebner
2022-09-19 10:24 ` Matthias Heiserer
2022-09-16 10:08 ` Fiona Ebner [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=241b9a11-6efb-4f1b-e87d-e6b727b84a7a@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=m.heiserer@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox