all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox{,-backup} v4 0/9] fix #7904: Implement Enable checkboxes for all jobs
@ 2026-10-22 16:43 Jonas Theisen
  2026-10-22 16:43 ` [PATCH proxmox v4 1/9] pbs-api-types: add 'disable' to {sync,verify,tape,gc} job schema and datastore config Jonas Theisen
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jonas Theisen @ 2026-10-22 16:43 UTC (permalink / raw)
  To: pbs-devel

Goal of this patch series is to allow users to disable tasks
without having to remove their current schedule.
This was already possible for Prune jobs.

This can be used f.ex. to create jobs which are supposed to
be run only manually.

Backwards compatibiltiy was kept in mind so that existing
jobs wiithout schedules would not need manual intervention.
They will get updated and adapt the new scheme on the next
actual user change.

The "remove clear" patch is to be considered optional as it does not
interfere with the functionality of the checkboxes but was rather
added from a personal perspective that this would improve UX.

Thanks for the review and help off-list @c.ebner!

Depends on: https://lore.proxmox.com/pbs-devel/20261014144357.771051-2-c.ebner@proxmox.com/

changes from v3:
 * dropped patches to add checkboxes in datastore creation ui and api
 * reworked patch messages
 * reused is_false function
 * reworked next_run calculation into compute_schedule_status
   using the disable parameter
 * rephrased schedule error message
 * integrated variable binding instead of listeners
 * integrated schema in pbs-api-types
 * fixed an issue with the Tape backup edit where the disabled
   flag was not removed on update
 * simplified schedule check by dropping unreachable condition
 * reworked the calendar-event patch to only hide the Clear button
   if the field does not allow blank

proxmox:

Jonas Theisen (2):
  pbs-api-types: add 'disable' to {sync,verify,tape,gc} job schema and
    datastore config
  pbs-api-types: prune job: make schedule optional

 pbs-api-types/src/datastore.rs | 13 ++++++++++
 pbs-api-types/src/jobs.rs      | 43 +++++++++++++++++++++++++++-------
 2 files changed, 48 insertions(+), 8 deletions(-)


proxmox-backup:

Jonas Theisen (7):
  server: schedules: add 'disable' parameter to
    compute_schedule_status()
  ui: prune job: align prune edit window to other "Enable" checkboxes
  api: prune job: align prune job schedule to other jobs
  fix #7904: api: implement "disable" for {sync,verify,tape,GC} jobs
  fix #7904: ui: add "Enable" checkbox to {sync,verify,tape,GC} job edit
  ui: job overview: show "Disabled" as schedule of disabled jobs
  ui: calendar-event: hide clear button if a schedule is required

 src/api2/admin/datastore.rs                   |  9 ++-
 src/api2/admin/prune.rs                       |  6 +-
 src/api2/admin/sync.rs                        |  3 +-
 src/api2/admin/verify.rs                      |  7 ++-
 src/api2/config/datastore.rs                  | 11 +++-
 src/api2/config/prune.rs                      | 16 ++++--
 src/api2/config/sync.rs                       | 18 +++++-
 src/api2/config/tape_backup_job.rs            | 17 +++++-
 src/api2/config/verify.rs                     | 17 +++++-
 src/api2/tape/backup.rs                       |  7 ++-
 src/bin/proxmox-backup-proxy.rs               | 25 ++++++++-
 .../proxmox_backup_manager/migrate_config.rs  |  2 +-
 src/server/jobstate.rs                        |  4 +-
 www/Utils.js                                  |  7 +++
 www/config/GCView.js                          |  3 +-
 www/config/PruneView.js                       |  1 +
 www/config/SyncView.js                        |  2 +
 www/config/VerifyView.js                      |  2 +
 www/form/CalendarEvent.js                     | 19 +++++--
 www/tape/BackupJobs.js                        |  2 +
 www/tape/window/TapeBackupJob.js              | 43 +++++++++++++-
 www/window/GCJobEdit.js                       | 56 +++++++++++++++++--
 www/window/PruneJobEdit.js                    | 32 +++++++++--
 www/window/SyncJobEdit.js                     | 39 ++++++++++++-
 www/window/VerifyJobEdit.js                   | 38 ++++++++++++-
 25 files changed, 343 insertions(+), 43 deletions(-)


Summary over all repositories:
  27 files changed, 391 insertions(+), 51 deletions(-)

-- 
Generated by murpp 0.12.1




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-10-22 16:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-22 16:43 [PATCH proxmox{,-backup} v4 0/9] fix #7904: Implement Enable checkboxes for all jobs Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox v4 1/9] pbs-api-types: add 'disable' to {sync,verify,tape,gc} job schema and datastore config Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox v4 2/9] pbs-api-types: prune job: make schedule optional Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox-backup v4 3/9] server: schedules: add 'disable' parameter to compute_schedule_status() Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox-backup v4 4/9] ui: prune job: align prune edit window to other "Enable" checkboxes Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox-backup v4 5/9] api: prune job: align prune job schedule to other jobs Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox-backup v4 6/9] fix #7904: api: implement "disable" for {sync,verify,tape,GC} jobs Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox-backup v4 7/9] fix #7904: ui: add "Enable" checkbox to {sync,verify,tape,GC} job edit Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox-backup v4 8/9] ui: job overview: show "Disabled" as schedule of disabled jobs Jonas Theisen
2026-10-22 16:43 ` [PATCH proxmox-backup v4 9/9] ui: calendar-event: hide clear button if a schedule is required Jonas Theisen

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