From b69bfc32b92508db41283a82279f48d19a081f35 Mon Sep 17 00:00:00 2001 From: Giovanna Monti Date: Wed, 13 Mar 2024 16:29:49 +0100 Subject: [PATCH 1/2] feat(console-types): tenant configuration management fields --- packages/console-types/CHANGELOG.md | 16 +++++++++++----- packages/console-types/src/types/tenant.test.ts | 5 +++++ packages/console-types/src/types/tenant.ts | 11 +++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/packages/console-types/CHANGELOG.md b/packages/console-types/CHANGELOG.md index df1ea97d..b6f52ae4 100644 --- a/packages/console-types/CHANGELOG.md +++ b/packages/console-types/CHANGELOG.md @@ -1,5 +1,16 @@ # CHANGELOG +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) +and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). + +## [Unreleased] + +### Added + +- [IDP-771](https://makeitapp.atlassian.net/browse/IDP-771): added `configurationManagement` fields with save message options to `tenant` schema + ## 0.18.4 ### Fixed @@ -12,11 +23,6 @@ - version bump -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) -and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - ## 0.18.2 - [IDP-86](https://makeitapp.atlassian.net/browse/IDP-86): added `repositoryPathTemplate` to provider's `capabilities` diff --git a/packages/console-types/src/types/tenant.test.ts b/packages/console-types/src/types/tenant.test.ts index 8b6b2498..8fe29da7 100644 --- a/packages/console-types/src/types/tenant.test.ts +++ b/packages/console-types/src/types/tenant.test.ts @@ -75,6 +75,11 @@ t.test('tenants validated', t => { order: 1, }], imagePullSecretNames: ['some-imagePullSecret-here', 'some-other-one'], + configurationManagement: { + saveMessageOptions: { + isConfirmationRequired: true, + }, + }, } t.ok(validate(tenant), validationMessage(validate.errors)) diff --git a/packages/console-types/src/types/tenant.ts b/packages/console-types/src/types/tenant.ts index ed80228f..10b4bc3c 100644 --- a/packages/console-types/src/types/tenant.ts +++ b/packages/console-types/src/types/tenant.ts @@ -65,6 +65,17 @@ export const tenant = { type: 'string', }, }, + configurationManagement: { + type: 'object', + properties: { + saveMessageOptions: { + type: 'object', + properties: { + isConfirmationRequired: { type: 'boolean' }, + }, + }, + }, + }, }, additionalProperties: false, required: ['name', 'tenantId'], From 30aad3e6c064567388925d4acfddf885ae96ad32 Mon Sep 17 00:00:00 2001 From: Federico Maggi <7142570+fredmaggiowski@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:23:48 +0100 Subject: [PATCH 2/2] Update packages/console-types/CHANGELOG.md --- packages/console-types/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console-types/CHANGELOG.md b/packages/console-types/CHANGELOG.md index b6f52ae4..d651a69b 100644 --- a/packages/console-types/CHANGELOG.md +++ b/packages/console-types/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Added -- [IDP-771](https://makeitapp.atlassian.net/browse/IDP-771): added `configurationManagement` fields with save message options to `tenant` schema +- added `configurationManagement` fields with save message options to `tenant` schema ## 0.18.4