Skip to content

Commit 0fb88b8

Browse files
Merge pull request #208 from RedisLabs/bugfix/OPCR-2-fix-dynamic-endpoints-error
fix: adding to the model a new pending status from the db
2 parents 70ed3ba + d524e42 commit 0fb88b8

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file.
33
See updating [Changelog example here](https://keepachangelog.com/en/1.0.0/).
44

5+
## 0.29.0
6+
7+
### Added
8+
9+
* Adding a new status for the database whilst it is pending: `dynamic-endpoints-creation-pending`
10+
511
## 0.28.0
612

713
### Added

fixture_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func TestDatabaseFixtures(t *testing.T) {
3939
assert.Equal(t, "rcp-active-change-draft", databases.StatusRCPActiveChangeDraft)
4040
assert.Equal(t, "active-change-draft", databases.StatusActiveChangeDraft)
4141
assert.Equal(t, "active-change-pending", databases.StatusActiveChangePending)
42+
assert.Equal(t, "dynamic-endpoints-creation-pending", databases.StatusDynamicEndpointsCreationPending)
4243

4344
assert.Equal(t, "proxy-policy-change-pending", databases.StatusProxyPolicyChangePending)
4445
assert.Equal(t, "proxy-policy-change-draft", databases.StatusProxyPolicyChangeDraft)

service/databases/model.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ const (
252252
StatusActiveChangeDraft = "active-change-draft"
253253
// StatusActiveChangePending is the Active change pending value of the `Status` field in `Database`
254254
StatusActiveChangePending = "active-change-pending"
255+
// StatusDynamicEndpointsCreationPending is the Dynamic endpoints creation pending value of the `Status` field in `Database`
256+
StatusDynamicEndpointsCreationPending = "dynamic-endpoints-creation-pending"
255257

256258
// StatusProxyPolicyChangePending and StatusProxyPolicyChangeDraft
257259
//The below two Proxy Policy states are caused by a change to the 'support_oss_cluster_api' attribute

0 commit comments

Comments
 (0)