diff --git a/pkg/app/web/src/modules/commands/index.ts b/pkg/app/web/src/modules/commands/index.ts index 04609cf9ef..be4fe435c4 100644 --- a/pkg/app/web/src/modules/commands/index.ts +++ b/pkg/app/web/src/modules/commands/index.ts @@ -19,6 +19,7 @@ export const COMMAND_TYPE_TEXT: Record = { [Command.Type.SYNC_APPLICATION]: "Sync Application", [Command.Type.UPDATE_APPLICATION_CONFIG]: "Update Application Config", [Command.Type.BUILD_PLAN_PREVIEW]: "Build Plan Preview", + [Command.Type.CHAIN_SYNC_APPLICATION]: "Chain Sync Application", }; const commandsAdapter = createEntityAdapter(); diff --git a/pkg/model/command.proto b/pkg/model/command.proto index 8d7c08587d..eb1e7dbdf3 100644 --- a/pkg/model/command.proto +++ b/pkg/model/command.proto @@ -34,6 +34,7 @@ message Command { CANCEL_DEPLOYMENT = 2; APPROVE_STAGE = 3; BUILD_PLAN_PREVIEW = 4; + CHAIN_SYNC_APPLICATION = 5; } message SyncApplication { @@ -66,6 +67,13 @@ message Command { int64 timeout = 5 [(validate.rules).int64.gte = 0]; } + message ChainSyncApplication { + string deployment_chain_id = 1; + int32 block_index = 2; + string application_id = 3 [(validate.rules).string.min_len = 1]; + SyncStrategy sync_strategy = 4; + } + // The generated unique identifier. string id = 1 [(validate.rules).string.min_len = 1]; string piped_id = 2 [(validate.rules).string.min_len = 1]; @@ -86,6 +94,7 @@ message Command { CancelDeployment cancel_deployment = 33; ApproveStage approve_stage = 34; BuildPlanPreview build_plan_preview = 35; + ChainSyncApplication chain_sync_application = 36; int64 created_at = 100 [(validate.rules).int64.gt = 0]; int64 updated_at = 101 [(validate.rules).int64.gt = 0];