From 1627e979cbd75208b449f3f701cd1414a0a6ebbb Mon Sep 17 00:00:00 2001 From: Mother 6000 Date: Mon, 15 Jun 2026 11:01:24 +0000 Subject: [PATCH 1/4] Add lifecycle type and last_run parsing --- src/reduct/client.h | 10 ++-- src/reduct/internal/serialisation.cc | 10 ++++ src/reduct/internal/time_parse.h | 44 ++++++++++---- tests/reduct/lifecycle_api_test.cc | 86 +++++++++++++++++++++++++--- 4 files changed, 125 insertions(+), 25 deletions(-) diff --git a/src/reduct/client.h b/src/reduct/client.h index 2e13971..105b614 100644 --- a/src/reduct/client.h +++ b/src/reduct/client.h @@ -293,10 +293,12 @@ class IClient { enum class LifecycleMode { kEnabled, kDisabled, kDryRun }; struct LifecycleInfo { - std::string name; // Lifecycle name - LifecycleMode mode = LifecycleMode::kEnabled; // Lifecycle mode - bool is_provisioned; // Lifecycle is provisioned - bool is_running; // Lifecycle worker is running + std::string name; // Lifecycle name + LifecycleType type = LifecycleType::kDelete; // Lifecycle action type + LifecycleMode mode = LifecycleMode::kEnabled; // Lifecycle mode + bool is_provisioned; // Lifecycle is provisioned + bool is_running; // Lifecycle worker is running + std::optional