public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox/proxmox-backup 00/14] improve & cleanup proxmox-time
@ 2021-11-30 12:11 Dominik Csapak
  2021-11-30 12:11 ` [pbs-devel] [PATCH proxmox 01/14] proxmox-time: calendar-events: implement repeated ranges Dominik Csapak
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: Dominik Csapak @ 2021-11-30 12:11 UTC (permalink / raw)
  To: pbs-devel

adds two new features to calendar events (1/14 and 2/14):
* repeated range syntax: '7..17/2' means '7,9,11,13,15,17' (much shorter)
* make hours optional (all hours are selected then), necessary for pve
  compatibility

patches 3-14/14 are cleanup, code moves and rustfmt commits, so that
the code is better organized (and more idiomatic rust, e.g.
impl FromStr instead of 'parse_*')

these should be backwards compatible, so no major version bump necessary

proxmox-backup patch is to not use the deprecated functions anymore

proxmox:

Dominik Csapak (14):
  proxmox-time: calendar-events: implement repeated ranges
  proxmox-time: calendar-events: make hour optional
  proxmox-time: move common parse functions to parse_helpers
  proxmox-time: move WeekDays into own file
  proxmox-time: split DateTimeValue into own file
  proxmox-time: move parse_daily_duration to daily_duration.rs
  proxmox-time: daily_duration.rs: rustfmt
  proxmox-time: move CalendarEvent into calendar_events.rs
  proxmox-time: move TimeSpan into time_span.rs
  proxmox-time: move tests from time.rs to test.rs
  proxmox-time: lib.rs: rustfmt
  proxmox-time: calendar-events: make compute_next_event a method
  proxmox-time: calendar_events: implement FromStr
  proxmox-time: time-span: implement FromStr

 proxmox-time/src/calendar_event.rs  | 447 +++++++++++++++++++++
 proxmox-time/src/daily_duration.rs  | 130 ++++--
 proxmox-time/src/date_time_value.rs |  82 ++++
 proxmox-time/src/lib.rs             |  38 +-
 proxmox-time/src/parse_helpers.rs   |  75 ++++
 proxmox-time/src/parse_time.rs      | 513 ------------------------
 proxmox-time/src/test.rs            | 263 +++++++++++++
 proxmox-time/src/time.rs            | 591 ----------------------------
 proxmox-time/src/time_span.rs       | 274 +++++++++++++
 proxmox-time/src/week_days.rs       |  69 ++++
 10 files changed, 1332 insertions(+), 1150 deletions(-)
 create mode 100644 proxmox-time/src/calendar_event.rs
 create mode 100644 proxmox-time/src/date_time_value.rs
 create mode 100644 proxmox-time/src/parse_helpers.rs
 delete mode 100644 proxmox-time/src/parse_time.rs
 create mode 100644 proxmox-time/src/test.rs
 delete mode 100644 proxmox-time/src/time.rs
 create mode 100644 proxmox-time/src/time_span.rs
 create mode 100644 proxmox-time/src/week_days.rs

proxmox-backup:

Dominik Csapak (1):
  remove use of deprecated functions from proxmox-time

 pbs-api-types/src/tape/media_pool.rs |  6 +++---
 src/bin/proxmox-backup-proxy.rs      | 10 +++++-----
 src/server/jobstate.rs               |  6 +++---
 src/tape/inventory.rs                |  3 +--
 src/tape/media_pool.rs               |  3 +--
 src/tape/test/compute_media_state.rs |  4 ++--
 6 files changed, 15 insertions(+), 17 deletions(-)

-- 
2.30.2





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

end of thread, other threads:[~2021-12-01  6:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-30 12:11 [pbs-devel] [PATCH proxmox/proxmox-backup 00/14] improve & cleanup proxmox-time Dominik Csapak
2021-11-30 12:11 ` [pbs-devel] [PATCH proxmox 01/14] proxmox-time: calendar-events: implement repeated ranges Dominik Csapak
2021-11-30 12:11 ` [pbs-devel] [PATCH proxmox 02/14] proxmox-time: calendar-events: make hour optional Dominik Csapak
2021-11-30 12:11 ` [pbs-devel] [PATCH proxmox 03/14] proxmox-time: move common parse functions to parse_helpers Dominik Csapak
2021-11-30 12:11 ` [pbs-devel] [PATCH proxmox 04/14] proxmox-time: move WeekDays into own file Dominik Csapak
2021-11-30 12:11 ` [pbs-devel] [PATCH proxmox 05/14] proxmox-time: split DateTimeValue " Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 06/14] proxmox-time: move parse_daily_duration to daily_duration.rs Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 07/14] proxmox-time: daily_duration.rs: rustfmt Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 08/14] proxmox-time: move CalendarEvent into calendar_events.rs Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 09/14] proxmox-time: move TimeSpan into time_span.rs Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 10/14] proxmox-time: move tests from time.rs to test.rs Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 11/14] proxmox-time: lib.rs: rustfmt Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 12/14] proxmox-time: calendar-events: make compute_next_event a method Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 13/14] proxmox-time: calendar_events: implement FromStr Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox 14/14] proxmox-time: time-span: " Dominik Csapak
2021-11-30 12:12 ` [pbs-devel] [PATCH proxmox-backup 1/1] remove use of deprecated functions from proxmox-time Dominik Csapak
2021-12-01  6:26   ` [pbs-devel] applied: " Dietmar Maurer
2021-12-01  6:20 ` [pbs-devel] applied: [PATCH proxmox/proxmox-backup 00/14] improve & cleanup proxmox-time Dietmar Maurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal