Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement List for Service #1077

Merged
merged 1 commit into from
Jun 24, 2019
Merged

Implement List for Service #1077

merged 1 commit into from
Jun 24, 2019

Conversation

krhubert
Copy link
Contributor

Dep on: #1072

@antho1404 antho1404 mentioned this pull request Jun 23, 2019
@antho1404
Copy link
Member

why using a stream here. We don't have any pub/sub system for services yet so there is no reason to have a stream here. Let's simplify and return a list of services directly and let grpc/protobuf handle that

@NicolasMahe
Copy link
Member

@krhubert I agree with Anthony. A stream seems overkill for now.. Let's develop the simplest api we can.


resp := &protobuf_api.ListServiceResponse{}
for _, service := range services {
resp.Services = append(resp.Services, ToProtoService(service))
Copy link
Member

@NicolasMahe NicolasMahe Jun 24, 2019

Choose a reason for hiding this comment

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

I think there is a ToProtoServices function. Let's use it or remove it.

Copy link
Member

Choose a reason for hiding this comment

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

mapping.go > ToProtoServices


resp := &protobuf_api.ListServiceResponse{}
for _, service := range services {
resp.Services = append(resp.Services, ToProtoService(service))
Copy link
Member

Choose a reason for hiding this comment

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

mapping.go > ToProtoServices

@antho1404 antho1404 merged commit 24bd85b into dev Jun 24, 2019
@antho1404 antho1404 deleted the feature/service-list branch June 24, 2019 10:04
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.

3 participants