Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [UIE-8089] - DBaaS Resize GA #11040

Merged
merged 6 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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