From: "Nicolas Frey" <n.frey@proxmox.com>
To: "Jonas Theisen" <j.theisen@proxmox.com>, <pbs-devel@lists.proxmox.com>
Subject: Re: [PATCH proxmox{,-backup} 00/14] fix #7904: Implement Enable checkboxes for all jobs
Date: Mon, 05 Oct 2026 15:12:13 +0200 [thread overview]
Message-ID: <DLWXIE8CT26E.3UNSIKWX8QPWM@proxmox.com> (raw)
In-Reply-To: <20260930152131.317493-1-j.theisen@proxmox.com>
Hi, thanks for the patches!
> The patches depend on each other in the way that the first
> patch of each "kind" introduces a new function or a new scheme
> which is then also used in later commits.
> If this is bad practice please give according feedback and i will
> split that out either in a v2 or in future patches.
>
overall I don't like the duplication of commit messages and would
prefer something more along the lines of (note that these are just
a suggestion, you don't have to name the commits this):
proxmox:
pbs-api-types: jobs: add 'enable' flag to {sync,verify,tape,gc} job schema
add 'gc_enable' flag to datastore config
proxmox-backup:
// independent fixes should be put up-front so they can be applied even
// if the rest of the series still needs work
ui: prune job: change field label 'Enable' -> 'Enabled'
// this is the commit that actually fixes the bug/adds the feature,
// the other ones are either set up commits or add parity to the UI
fix #7904: api: jobs: expose 'enable' option for {sync,verify,tape,gc} jobs
// so this could also be prefixed with a fix #7904
ui: job edit: add checkbox to enable {sync,verify,tape,gc} jobs
ui: job status: add renderer for job's enabled flag
ui: calendar event: remove clear button from calendar selector
for commit naming, we usually have some tags before the actual commit
subject, which can quite easily be determined by path, e.g.:
pbs-api-types/src/jobs.rs -> pbs-api-types: jobs: ...
if you're stuck on which tags to use, you can always look at past commit
subjects touching that file, e.g.:
```
git log --oneline pbs-api-types/src/jobs.rs
```
For the commits that contain the fix #xxxx tag, you should also consider
adding a Trailer for it:
Fixes: https://bugzilla.proxmox.com/show_bug.cgi?id=7904
###
Also, some shallow notes from glancing over the rest of the code:
The `next_run` logic could perhaps use a helper method to reduce code
duplication, and the way `next_run` is determind could be written a
bit more idiomatically (hint: use `cargo clippy`, which will tell you
some of this stuff!):
```
let status = compute_schedule_status("tape-backup-job", &job.id, job.schedule.as_deref())?;
- let next_run: i64;
- let enabled = match job.enable {
- Some(c) => c,
- None => true,
- };
- if !enabled {
- next_run = 0;
+ // default set to `true` to be backwards compatible
+ let next_run = if job.enable.unwrap_or(true) {
+ status.next_run.unwrap_or(current_time)
} else {
- next_run = status.next_run.unwrap_or(current_time);
- }
+ 0
+ };
let mut next_media_label = None;
```
next prev parent reply other threads:[~2026-10-05 13:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-30 15:17 [PATCH proxmox{,-backup} 00/14] fix #7904: Implement Enable checkboxes for all jobs Jonas Theisen
2026-09-30 15:17 ` [PATCH proxmox 01/14] fix #7904: Add 'enable' to sync job schema Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox 02/14] fix #7904: Add 'enable' to verify " Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox 03/14] fix #7904: Add 'enable' to datastore config and GC " Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox 04/14] fix #7904: Add 'enable' to Tape backup " Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 05/14] fix #7904: Implement "Enable" checkbox for Sync jobs Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 06/14] fix #7904: Implement "Enable" checkbox for Verify jobs Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 07/14] fix #7904: Implement "Enable" checkbox for GC jobs Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 08/14] fix #7904: Implement "Enable" checkbox for Tape backup jobs Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 09/14] fix #7904: Improve visibility of disabled GC on the overview page Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 10/14] fix #7904: Improve visibility of disabled Verify jobs " Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 11/14] fix #7904: Improve visibility of disabled Sync " Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 12/14] fix #7904: Improve visibility of disabled Tape Backup " Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 13/14] fix #7904: Remove clear button from calendar selector Jonas Theisen
2026-09-30 15:18 ` [PATCH proxmox-backup 14/14] fix #7904: Align Prune Edit window to other "Enable" checkboxes Jonas Theisen
2026-10-05 13:12 ` Nicolas Frey [this message]
2026-10-07 13:46 ` [PATCH proxmox{,-backup} 00/14] fix #7904: Implement Enable checkboxes for all jobs Jonas Theisen
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=DLWXIE8CT26E.3UNSIKWX8QPWM@proxmox.com \
--to=n.frey@proxmox.com \
--cc=j.theisen@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.