Skip to content

Commit b5b638d

Browse files
Adding method for getting the reindexing Status (#8805)
* adding method for getting the status Signed-off-by: swatign <[email protected]> * writing test cases and modifying getstatus method-1 Signed-off-by: swatign <[email protected]> * correcting some changes in file -2 Signed-off-by: swatign <[email protected]> * made stage as json and correcting status method -3 Signed-off-by: swatign <[email protected]> * modifying status method -4 Signed-off-by: swatign <[email protected]> * mofifying the method -5 Signed-off-by: swatign <[email protected]> * Adding new cli command to get reindex status (#8811) * adding api changes Signed-off-by: swatign <[email protected]> * adding cli changes Signed-off-by: Aishwarya2001 <[email protected]> * solving suite_test.go file error Signed-off-by: Aishwarya2001 <[email protected]> * resolving nil pointer error Signed-off-by: swatign <[email protected]> * returning cli response Signed-off-by: Aishwarya2001 <[email protected]> --------- Signed-off-by: swatign <[email protected]> Signed-off-by: Aishwarya2001 <[email protected]> Co-authored-by: swatign <[email protected]> --------- Signed-off-by: swatign <[email protected]> Signed-off-by: Aishwarya2001 <[email protected]> Co-authored-by: Aishwarya2001A <[email protected]>
1 parent 4cf10ee commit b5b638d

File tree

16 files changed

+3023
-1901
lines changed

16 files changed

+3023
-1901
lines changed

api/external/ingest/request/action.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,4 @@ message Delete {
4848
message MultipleNodeDeleteRequest {
4949
repeated string node_ids = 1;
5050
}
51+

api/interservice/deployment/automate_deployment.pb.go

Lines changed: 1878 additions & 1734 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/interservice/deployment/automate_deployment.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ service Deployment {
6060
rpc BootstrapBundle (BootstrapBundleRequest) returns (stream BootstrapBundleResponse);
6161
rpc ControlIndexUpgradeStatus(google.protobuf.Empty) returns (ControlIndexUpgradeStatusResponse);
6262
rpc StartReindex(StartReindexRequest) returns (StartReindexResponse);
63+
rpc GetReindexStatus (GetReindexStatusRequest) returns (GetReindexStatusResponse);
64+
}
65+
66+
message GetReindexStatusResponse {
67+
string status_json = 1;
68+
}
69+
70+
message GetReindexStatusRequest {
71+
int32 request_id = 1;
6372
}
6473

6574
message StartReindexRequest {

api/interservice/ingest/chef.pb.client_mock.go

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/interservice/ingest/chef.pb.go

Lines changed: 239 additions & 93 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/interservice/ingest/chef.pb.gw.go

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/interservice/ingest/chef.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ message StartReindexResponse {
3636
string message = 1;
3737
}
3838

39+
40+
message GetReindexStatusResponse {
41+
string status_json = 1;
42+
}
43+
44+
message GetReindexStatusRequest {
45+
int32 request_id = 1;
46+
}
47+
3948
service ChefIngesterService {
4049
rpc ProcessChefRun (api.ingest.request.Run) returns (api.ingest.response.ProcessChefRunResponse) {
4150
option (google.api.http) = {
@@ -68,4 +77,7 @@ service ChefIngesterService {
6877
rpc StartReindex(StartReindexRequest) returns (StartReindexResponse) {
6978
option (google.api.http).post = "/api/v0/ingest/reindex/start";
7079
};
80+
rpc GetReindexStatus (GetReindexStatusRequest) returns (GetReindexStatusResponse) {
81+
option (google.api.http).get = "/api/v0/ingest/reindex/status";
82+
};
7183
}

api/interservice/ingest/chef.swagger.json

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)