mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-20 20:25:16 +08:00
Refactoring workflow execution statistics.
- The workflow name is available even at start of the workflow, so we do not need the uid to act as a placeholder. - Changing workflow.proto to use name and remove uid uses
This commit is contained in:
@@ -106,7 +106,7 @@ service WorkflowService {
|
||||
|
||||
rpc CronStartWorkflowExecutionStatistic (CronStartWorkflowExecutionStatisticRequest) returns (google.protobuf.Empty) {
|
||||
option (google.api.http) = {
|
||||
get: "/apis/v1beta1/{namespace}/workflow_executions/{uid}/cron_start_statistics/{workflowTemplateId}"
|
||||
get: "/apis/v1beta1/{namespace}/workflow_executions/{name}/cron_start_statistics/{workflowTemplateId}"
|
||||
};
|
||||
}
|
||||
|
||||
@@ -229,8 +229,7 @@ message ListFilesResponse {
|
||||
|
||||
message Statistics {
|
||||
string workflowStatus = 1;
|
||||
string uuid = 2;
|
||||
int64 workflowTemplateId = 3;
|
||||
int64 workflowTemplateId = 2;
|
||||
}
|
||||
|
||||
message AddWorkflowExecutionStatisticRequest {
|
||||
@@ -241,6 +240,6 @@ message AddWorkflowExecutionStatisticRequest {
|
||||
|
||||
message CronStartWorkflowExecutionStatisticRequest {
|
||||
string namespace = 1;
|
||||
string uid = 2;
|
||||
string name = 2;
|
||||
int64 workflowTemplateId = 3;
|
||||
}
|
Reference in New Issue
Block a user