From ff6c213d10a8fc69ca582dd9344a4f82f3ab1f2c Mon Sep 17 00:00:00 2001 From: Adam Brightwell Date: Wed, 30 Apr 2025 10:47:27 -0400 Subject: [PATCH] Add missing upgrade operation enum values. It was reported that some upgrade operation states being returned by the API were causing an error due to them being unknown. So, here we're syncing the related enum to sync with all of the currently supported and valid values. --- CHANGELOG.md | 1 + src/models/operation.cr | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02d2972..afa080e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +- Missing values from cluster upgrade operation state enum ## [3.6.4] - 2025-04-07 ### Added diff --git a/src/models/operation.cr b/src/models/operation.cr index b74a61d..c710b36 100644 --- a/src/models/operation.cr +++ b/src/models/operation.cr @@ -19,13 +19,20 @@ module CB::Model enum State Canceling Creating + Destroying DisablingHA EnablingHA FailingOver + Finalizing InProgress Ready - ReplayingWAL - Scheduled + Replaying + Restarting + Restoring + Resuming + Starting + Suspended + Suspending WaitingForHAStandby def to_s(io : IO) : Nil