Skip to content

Describe service#209

Open
rahulrayal wants to merge 4 commits into
2.x.xfrom
describe-service
Open

Describe service#209
rahulrayal wants to merge 4 commits into
2.x.xfrom
describe-service

Conversation

@rahulrayal

Copy link
Copy Markdown
Contributor

Odin version(x.y.z)

Features

Resources

Comment thread cmd/describe/service.go
if labelsJSON != "" {
err := json.Unmarshal([]byte(labelsJSON), &labels)
if err != nil {
log.Fatal("Error parsing JSON, the the key and values should be strings: ", err)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If the input is not a valid json, then will this error message will be misleading?

Comment thread cmd/describe/service.go

var serviceName string
var serviceVersion string
var labelsJSON string

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we use camel case consistently?

optional google.protobuf.Struct labels = 7;
optional google.protobuf.Struct service_definition = 8;
repeated google.protobuf.Struct provisioning_config_files = 9;
repeated string versions = 10;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we have both version and versions?

}

message DescribeServiceRequest {
string service_name = 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we be consistent in naming these eg. either have name and version OR service_name and service_version?

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.

2 participants