Skip to content
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
1 change: 1 addition & 0 deletions pkg/app/web/src/modules/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const COMMAND_TYPE_TEXT: Record<Command.Type, string> = {
[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<Command.AsObject>();
Expand Down
9 changes: 9 additions & 0 deletions pkg/model/command.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ message Command {
CANCEL_DEPLOYMENT = 2;
APPROVE_STAGE = 3;
BUILD_PLAN_PREVIEW = 4;
CHAIN_SYNC_APPLICATION = 5;
}

message SyncApplication {
Expand Down Expand Up @@ -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];
Expand All @@ -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];
Expand Down