Skip to content

Commit

Permalink
feat: [UIE-8089] - DBaaS Resize GA (#11040)
Browse files Browse the repository at this point in the history
* feat: [UIE-8089] - DBaaS Resize

* Added changeset: Number of Nodes selector for DBaaS GA Resize

* Added changeset: Databases types to have UpdateDatabasePayload include cluster_size and export the Engines type

* Applying requested selection behavior

* Applying design changes to summary and updating unit tests

* Applying feedback and updating unit and e2e tests
  • Loading branch information
smans-akamai authored Oct 10, 2024
1 parent dbf2e0c commit 6767382
Show file tree
Hide file tree
Showing 9 changed files with 756 additions and 37 deletions.
5 changes: 5 additions & 0 deletions packages/api-v4/.changeset/pr-11040-changed-1727911382574.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/api-v4": Changed
---

Databases types to have UpdateDatabasePayload include cluster_size and export the Engines type ([#11040](https://github.com/linode/manager/pull/11040))
3 changes: 2 additions & 1 deletion packages/api-v4/src/databases/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface DatabaseClusterSizeObject {
price: DatabasePriceObject;
}

type Engines = Record<Engine, DatabaseClusterSizeObject[]>;
export type Engines = Record<Engine, DatabaseClusterSizeObject[]>;
export interface DatabaseType extends BaseType {
class: DatabaseTypeClass;
engines: Engines;
Expand Down Expand Up @@ -197,6 +197,7 @@ export type Database = BaseDatabase &
Partial<MongoDatabase>;

export interface UpdateDatabasePayload {
cluster_size?: number;
label?: string;
allow_list?: string[];
updates?: UpdatesSchedule;
Expand Down
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11040-added-1727911099315.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

Number of Nodes selector for DBaaS GA Resize ([#11040](https://github.com/linode/manager/pull/11040))
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ describe('Resizing existing clusters', () => {
if (!desiredPlanPrice) {
throw new Error('Unable to find mock plan type');
}
cy.get('[data-testid="summary"]').within(() => {
cy.get('[data-testid="resizeSummary"]').within(() => {
cy.contains(`${nodeType.label}`).should('be.visible');
cy.contains(`$${desiredPlanPrice.monthly}/month`).should(
'be.visible'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const getEngineOptions = (engines: DatabaseEngine[]) => {
);
};

interface NodePricing {
export interface NodePricing {
double: DatabasePriceObject | undefined;
multi: DatabasePriceObject | undefined;
single: DatabasePriceObject | undefined;
Expand Down
Loading

0 comments on commit 6767382

Please sign in to comment.