Skip to content

[WIP] Add jsondata#19

Open
keigohtr wants to merge 3 commits into
feature/renew-proto-20190215from
patch/add-jsondata
Open

[WIP] Add jsondata#19
keigohtr wants to merge 3 commits into
feature/renew-proto-20190215from
patch/add-jsondata

Conversation

@keigohtr
Copy link
Copy Markdown
Member

@keigohtr keigohtr commented Sep 30, 2019

I will add the util methods for RekcurdMessage.

What is this PR for?

Update to the latest spec of Seldon Core -> Link

This PR includes

  • Add jsonData
  • Update to the latest spec of gRPC health check

What type of PR is it?

Update

What is the issue?

N/A

How should this be tested?

N/A

@keigohtr keigohtr self-assigned this Sep 30, 2019
Copy link
Copy Markdown
Member Author

@keigohtr keigohtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have commented the major changes.

Comment thread rekcurd.proto
service Health {
rpc Check(HealthCheckRequest) returns (HealthCheckResponse);

rpc Watch(HealthCheckRequest) returns (stream HealthCheckResponse);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread rekcurd.proto
message RekcurdMessage {
Status status = 1;
JsonFormatString meta = 2;
google.protobuf.Value meta = 2;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread rekcurd.proto
StatusFlag status = 4;
}

// JsonFormatString message.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't use anymore.

Comment thread rekcurd.proto
bytes binData = 4;
string strData = 5;
StringList strDataList = 6;
google.protobuf.Value jsonData = 6;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the official doc, Value represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.

Comment thread rekcurd.proto
repeated double val = 2;
}

// StringList message.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't use anymore

@keigohtr keigohtr changed the title Add jsondata [WIP] Add jsondata Sep 30, 2019
@keigohtr
Copy link
Copy Markdown
Member Author

I will add util methods by referring Seldon's utils.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant