From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 4504382841 for ; Tue, 30 Nov 2021 13:12:13 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 420CF2693F for ; Tue, 30 Nov 2021 13:12:13 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id E42D026902 for ; Tue, 30 Nov 2021 13:12:10 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id BC30A45BBA for ; Tue, 30 Nov 2021 13:12:10 +0100 (CET) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Tue, 30 Nov 2021 13:11:54 +0100 Message-Id: <20211130121209.216846-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.185 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [test.rs, jobstate.rs, time.rs, proxmox-backup-proxy.rs, lib.rs, inventory.rs] Subject: [pbs-devel] [PATCH proxmox/proxmox-backup 00/14] improve & cleanup proxmox-time X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2021 12:12:13 -0000 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