Skip to content

Commit

Permalink
Migration Data service creation and created a rpc method for upload z…
Browse files Browse the repository at this point in the history
…ip file (#6612)

* Changes for stream api for upload

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* changes

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* added some changes for the protofile

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* added function changes

* added changes for the proto

* added changes to devide the chunks in bytes

* added changes for the validation

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* adding status in database

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* adding the request for server id and filename

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Adding  loggers and saving the failed migration phase

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* optimising the code

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Changes for content-type

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* added changes for the validation

Signed-off-by: Vinay Sharma <vsharma@chef.io>

* Upload to the hab svc data folder

Signed-off-by: Kallol Roy <karoy@progress.com>

* Enhance log and modify migration phases

Signed-off-by: Kallol Roy <karoy@progress.com>

* Granularize the migration stages

Signed-off-by: Kallol Roy <karoy@progress.com>

* Granularize the migration stages

Signed-off-by: Kallol Roy <karoy@progress.com>

Co-authored-by: Vinay Sharma <vsharma@chef.io>
Co-authored-by: Kallol Roy <karoy@progress.com>
  • Loading branch information
3 people committed Mar 24, 2022
1 parent 0d6998e commit 99189b1
Show file tree
Hide file tree
Showing 35 changed files with 3,435 additions and 2,204 deletions.
1,709 changes: 854 additions & 855 deletions api/external/infra_proxy/infra_proxy.pb.client_mock.go

Large diffs are not rendered by default.

287 changes: 274 additions & 13 deletions api/external/infra_proxy/migrations/request/migrations.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions api/external/infra_proxy/migrations/request/migrations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,27 @@ syntax = "proto3";

package chef.automate.api.infra_proxy.migrations.request;
option go_package = "github.com/chef/automate/api/external/infra_proxy/migrations/request";

message UploadZipFileRequest {
//Chef infra server id for the file
string serverId =1;
//Chunk of the data in bytes
Chunk chunk = 2;
//Metadata for the request
Metadata meta = 3;
}

message Metadata {
//Migration File name
string name = 1;
//Content type of the request
string contentType =2;
}

// Zip content in byte form.
message Chunk {
// Byte data
bytes data = 1;
// Stream pointer
int64 position = 2;
}
Loading

0 comments on commit 99189b1

Please sign in to comment.