Skip to content

Commit 05edb8d

Browse files
reeceyangConvex, Inc.
authored andcommitted
support configuring whether cloud backups include storage in big brain endpoints (#42773)
GitOrigin-RevId: e6f116ec4ed19e09165baa55dcd816e2b2b4b57a
1 parent 5d3a217 commit 05edb8d

File tree

6 files changed

+52
-3
lines changed

6 files changed

+52
-3
lines changed

npm-packages/dashboard/dashboard-management-openapi.json

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,6 +1004,15 @@
10041004
"required": true
10051005
}
10061006
],
1007+
"requestBody": {
1008+
"content": {
1009+
"application/json": {
1010+
"schema": {
1011+
"$ref": "#/components/schemas/RequestCloudBackupArgs"
1012+
}
1013+
}
1014+
}
1015+
},
10071016
"responses": {
10081017
"200": {
10091018
"description": "",
@@ -3578,7 +3587,8 @@
35783587
"sourceDeploymentName",
35793588
"expirationTime",
35803589
"state",
3581-
"requestedTime"
3590+
"requestedTime",
3591+
"includeStorage"
35823592
],
35833593
"properties": {
35843594
"expirationTime": {
@@ -3588,6 +3598,9 @@
35883598
"id": {
35893599
"$ref": "#/components/schemas/CloudBackupId"
35903600
},
3601+
"includeStorage": {
3602+
"type": "boolean"
3603+
},
35913604
"requestedTime": {
35923605
"type": "integer",
35933606
"format": "int64"
@@ -3625,6 +3638,12 @@
36253638
],
36263639
"format": "int64",
36273640
"minimum": 0
3641+
},
3642+
"includeStorage": {
3643+
"type": [
3644+
"boolean",
3645+
"null"
3646+
]
36283647
}
36293648
}
36303649
},
@@ -4757,7 +4776,8 @@
47574776
"sourceDeploymentId",
47584777
"cronspec",
47594778
"expirationDeltaSecs",
4760-
"nextRun"
4779+
"nextRun",
4780+
"includeStorage"
47614781
],
47624782
"properties": {
47634783
"cronspec": {
@@ -4768,6 +4788,9 @@
47684788
"format": "int64",
47694789
"minimum": 0
47704790
},
4791+
"includeStorage": {
4792+
"type": "boolean"
4793+
},
47714794
"nextRun": {
47724795
"type": "integer",
47734796
"format": "int64"
@@ -5123,6 +5146,17 @@
51235146
},
51245147
"additionalProperties": false
51255148
},
5149+
"RequestCloudBackupArgs": {
5150+
"type": "object",
5151+
"required": [
5152+
"includeStorage"
5153+
],
5154+
"properties": {
5155+
"includeStorage": {
5156+
"type": "boolean"
5157+
}
5158+
}
5159+
},
51265160
"RequestDestination": {
51275161
"type": "string",
51285162
"enum": [

npm-packages/dashboard/src/components/deploymentSettings/BackupListItem.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const backup: BackupResponse = {
2222
state: "complete",
2323
requestedTime: +now,
2424
expirationTime: +inOneWeek,
25+
includeStorage: true,
2526
};
2627

2728
const targetDeployment: DeploymentResponse = {

npm-packages/dashboard/src/components/deploymentSettings/BackupListItem.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const backup: BackupResponse = {
2626
state: "complete",
2727
requestedTime: +now,
2828
expirationTime: +inOneWeek,
29+
includeStorage: true,
2930
};
3031

3132
const backupInProgress: BackupResponse = { ...backup, state: "inProgress" };

npm-packages/dashboard/src/components/deploymentSettings/BackupRestoreFail.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const backup: BackupResponse = {
2828
state: "complete",
2929
requestedTime: +oneDayAgo,
3030
expirationTime: +inOneWeek,
31+
includeStorage: true,
3132
};
3233

3334
const deployment: DeploymentResponse = {

npm-packages/dashboard/src/components/deploymentSettings/BackupRestoreSuccess.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const backup: BackupResponse = {
2828
state: "complete",
2929
requestedTime: +oneDayAgo,
3030
expirationTime: +inOneWeek,
31+
includeStorage: true,
3132
};
3233

3334
const deployment: DeploymentResponse = {

npm-packages/dashboard/src/generatedApi.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,7 @@ export interface components {
18531853
/** Format: int64 */
18541854
expirationTime: number;
18551855
id: components["schemas"]["CloudBackupId"];
1856+
includeStorage: boolean;
18561857
/** Format: int64 */
18571858
requestedTime: number;
18581859
snapshotId?: string | null;
@@ -1864,6 +1865,7 @@ export interface components {
18641865
cronspec: string;
18651866
/** Format: int64 */
18661867
expirationDeltaSecs?: number | null;
1868+
includeStorage?: boolean | null;
18671869
};
18681870
CreateInvitationArgs: {
18691871
email: string;
@@ -2148,6 +2150,7 @@ export interface components {
21482150
cronspec: string;
21492151
/** Format: int64 */
21502152
expirationDeltaSecs: number;
2153+
includeStorage: boolean;
21512154
/** Format: int64 */
21522155
nextRun: number;
21532156
sourceDeploymentId: components["schemas"]["DeploymentId"];
@@ -2244,6 +2247,9 @@ export interface components {
22442247
accessToken: string;
22452248
newName: components["schemas"]["DeviceName"];
22462249
};
2250+
RequestCloudBackupArgs: {
2251+
includeStorage: boolean;
2252+
};
22472253
/** @enum {string} */
22482254
RequestDestination: "convexCloud" | "convexSite";
22492255
RestoreFromCloudBackupArgs: {
@@ -2583,6 +2589,7 @@ export type ReferralState = components['schemas']['ReferralState'];
25832589
export type RegisterOauthAppArgs = components['schemas']['RegisterOauthAppArgs'];
25842590
export type RemoveMemberArgs = components['schemas']['RemoveMemberArgs'];
25852591
export type RenameAccessTokenArgs = components['schemas']['RenameAccessTokenArgs'];
2592+
export type RequestCloudBackupArgs = components['schemas']['RequestCloudBackupArgs'];
25862593
export type RequestDestination = components['schemas']['RequestDestination'];
25872594
export type RestoreFromCloudBackupArgs = components['schemas']['RestoreFromCloudBackupArgs'];
25882595
export type Role = components['schemas']['Role'];
@@ -3466,7 +3473,11 @@ export interface operations {
34663473
};
34673474
cookie?: never;
34683475
};
3469-
requestBody?: never;
3476+
requestBody?: {
3477+
content: {
3478+
"application/json": components["schemas"]["RequestCloudBackupArgs"];
3479+
};
3480+
};
34703481
responses: {
34713482
200: {
34723483
headers: {

0 commit comments

Comments
 (0)