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

Use filter in list instance api #1473

Merged
merged 1 commit into from
Nov 6, 2019
Merged

Conversation

krhubert
Copy link
Contributor

@krhubert krhubert commented Nov 5, 2019

close #1466

@krhubert krhubert added enhancement New feature or request breaking change labels Nov 5, 2019
@krhubert krhubert added this to the next milestone Nov 5, 2019
@krhubert krhubert self-assigned this Nov 5, 2019
@NicolasMahe NicolasMahe merged commit f6e2605 into dev Nov 6, 2019
@NicolasMahe NicolasMahe deleted the fix/instance-list-filter branch November 6, 2019 07:11
@@ -21,7 +21,7 @@ func NewInstanceServer(sdk *sdk.SDK) *InstanceServer {

// List instances.
func (s *InstanceServer) List(ctx context.Context, request *protobuf_api.ListInstanceRequest) (*protobuf_api.ListInstanceResponse, error) {
instances, err := s.sdk.Instance.List(&instancesdk.Filter{ServiceHash: request.ServiceHash})
instances, err := s.sdk.Instance.List(&instancesdk.Filter{ServiceHash: request.Filter.ServiceHash})
Copy link
Member

Choose a reason for hiding this comment

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

request.Filter should be nilable.
Should add a check if request.Filter is nil

@NicolasMahe NicolasMahe changed the title Use filter in list instace api Use filter in list instance api Nov 26, 2019
@NicolasMahe NicolasMahe mentioned this pull request Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a dedicated filter message in Instance.List API
3 participants