Skip to content

Commit d2946da

Browse files
authored
Merge pull request #448 from ggildong/master
fix: typo in task.proto
2 parents d414e1b + cc3132a commit d2946da

5 files changed

Lines changed: 34 additions & 37 deletions

File tree

proto/spaceone/api/opsflow/comment.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ message CommentSearchQuery {
8181
string comment_id = 3;
8282
// +optional
8383
CommentInfo.CommentType comment_type = 4;
84+
// +optional
85+
string user_id = 5;
86+
// +optional
87+
string user_group_id = 6;
8488

8589
// +optional
8690
string workspace_id = 11;
8791
// +optional
8892
string project_id = 12;
89-
// +optional
90-
string user_group_id = 13;
91-
// +optional
92-
string user_id = 14;
9393
}
9494

9595
message CommentInfo {

proto/spaceone/api/opsflow/event.proto

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ package spaceone.api.opsflow.v1;
44

55
option go_package = "github.com/cloudforet-io/api/dist/go/spaceone/api/opsflow/v1";
66

7-
import "google/protobuf/empty.proto";
87
import "google/protobuf/struct.proto";
98
import "google/api/annotations.proto";
109
import "spaceone/api/core/v2/query.proto";
11-
import "spaceone/api/opsflow/comment.proto";
1210

1311

1412
service Event {
@@ -32,17 +30,17 @@ message EventSearchQuery {
3230
// +optional
3331
string task_id = 2;
3432
// +optional
35-
string event_id = 3;
33+
EventInfo.EventType event_type = 3;
3634
// +optional
37-
string workspace_id = 4;
35+
string user_type = 4;
3836
// +optional
39-
string project_id = 5;
37+
string event_id = 5;
4038
// +optional
41-
string user_type = 6;
39+
string user_id = 6;
4240
// +optional
43-
string user_id = 7;
41+
string workspace_id = 7;
4442
// +optional
45-
EventInfo.EventType event_type = 8;
43+
string project_id = 8;
4644
}
4745

4846
message EventInfo {

proto/spaceone/api/opsflow/task.proto

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ service Task {
2626
body: "*"
2727
};
2828
}
29-
rpc change_status (TaskStatusRequest) returns (TaskInfo) {
29+
rpc change_status (TaskChangeStatusRequest) returns (TaskInfo) {
3030
option (google.api.http) = {
3131
post: "/opsflow/v1/task/change_status"
3232
body: "*"
@@ -67,7 +67,7 @@ enum TaskPriority {
6767

6868
message TaskCreateRequest {
6969
string name = 1;
70-
string status = 2;
70+
string status_id = 2;
7171
// +optional
7272
TaskPriority priority = 3;
7373
// +optional
@@ -104,13 +104,11 @@ message TaskUpdateRequest {
104104
string project_id = 21;
105105
}
106106

107-
message TaskStatusRequest {
107+
message TaskChangeStatusRequest {
108108
string task_id = 1;
109-
string status = 2;
109+
string status_id = 2;
110110
// +optional
111111
string assignee = 3;
112-
// +optional
113-
string comment = 4;
114112
}
115113

116114
message TaskRequest {
@@ -125,17 +123,17 @@ message TaskSearchQuery {
125123
// +optional
126124
string name = 3;
127125
// +optional
128-
string status = 4;
126+
string status_id = 4;
129127
// +optional
130-
spaceone.api.opsflow.v1.StatusType status_type = 5;
128+
string status_type = 5;
131129
// +optional
132130
TaskPriority priority = 6;
133131
// +optional
134132
string workspace_id = 11;
135133
// +optional
136134
string project_id = 12;
137135
// +optional
138-
string task_category_id = 13;
136+
string category_id = 13;
139137
// +optional
140138
string task_type_id = 14;
141139
}
@@ -144,16 +142,17 @@ message TaskInfo {
144142
string task_id = 1;
145143
string name = 2;
146144
string status = 3;
147-
spaceone.api.opsflow.v1.StatusType status_type = 4;
145+
string status_type = 4;
148146
TaskPriority priority = 5;
149147
string description = 6;
150148
google.protobuf.Struct data = 7;
151149
repeated spaceone.api.file_manager.v1.FileInfo files = 8;
150+
string assignee = 9;
152151

153152
string domain_id = 21;
154153
string workspace_id = 22;
155154
string project_id = 23;
156-
string task_category_id = 24;
155+
string category_id = 24;
157156
string task_type_id = 25;
158157

159158
string created_at = 31;

proto/spaceone/api/opsflow/task_category.proto

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ service TaskCategory {
4949
}
5050
}
5151

52-
enum StatusType {
53-
STATUS_NONE = 0;
54-
TODO = 1;
55-
IN_PROGRESS = 2;
56-
COMPLETED = 3;
52+
message StatusOptions {
53+
repeated StatusOption TODO = 1;
54+
repeated StatusOption IN_PROGRESS = 2;
55+
repeated StatusOption COMPLETED = 3;
5756
}
5857

5958
message StatusOption {
60-
string name = 1;
61-
string color = 2;
62-
StatusType status_type = 3;
59+
string status_id = 1;
60+
string name = 2;
61+
string color = 3;
62+
bool is_default = 4;
6363
}
6464

6565
message TaskField {
@@ -83,7 +83,7 @@ message TaskCategoryCreateRequest {
8383
string name = 1;
8484
// +optional
8585
string description = 2;
86-
repeated StatusOption status_option = 3;
86+
StatusOptions status_options = 3;
8787
// +optional
8888
repeated TaskField fields = 4;
8989
// +optional
@@ -98,7 +98,7 @@ message TaskCategoryUpdateRequest {
9898
// +optional
9999
string description = 3;
100100
// +optional
101-
repeated StatusOption status_option = 4;
101+
StatusOptions status_options = 4;
102102
// +optional
103103
repeated TaskField fields = 5;
104104
// +optional
@@ -124,7 +124,7 @@ message TaskCategoryInfo {
124124
string category_id = 1;
125125
string name = 2;
126126
string description = 3;
127-
repeated StatusOption status_option = 4;
127+
StatusOptions status_options = 4;
128128
repeated TaskField fields = 5;
129129
google.protobuf.Struct tags = 11;
130130

proto/spaceone/api/opsflow/task_type.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ message TaskTypeCreateRequest {
5555
// +optional
5656
string description = 2;
5757
// +optional
58-
repeated spaceone.api.opsflow.v1.TaskField fields = 3;
58+
repeated TaskField fields = 3;
5959
// +optional
6060
google.protobuf.Struct tags = 11;
6161
string category_id = 21;
@@ -68,7 +68,7 @@ message TaskTypeUpdateRequest {
6868
// +optional
6969
string description = 3;
7070
// +optional
71-
repeated spaceone.api.opsflow.v1.TaskField fields = 4;
71+
repeated TaskField fields = 4;
7272
// +optional
7373
google.protobuf.Struct tags = 11;
7474
// +optional
@@ -92,7 +92,7 @@ message TaskTypeInfo {
9292
string task_type_id = 1;
9393
string name = 2;
9494
string description = 3;
95-
repeated spaceone.api.opsflow.v1.TaskField fields = 4;
95+
repeated TaskField fields = 4;
9696
google.protobuf.Struct tags = 11;
9797

9898
string domain_id = 21;

0 commit comments

Comments
 (0)