Skip to content

Use filter in list instance api#1473

Merged
NicolasMahe merged 1 commit intodevfrom
fix/instance-list-filter
Nov 6, 2019
Merged

Use filter in list instance api#1473
NicolasMahe merged 1 commit intodevfrom
fix/instance-list-filter

Conversation

@krhubert
Copy link
Copy Markdown
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 requested a review from NicolasMahe November 5, 2019 22:44
@krhubert krhubert self-assigned this Nov 5, 2019
@krhubert krhubert force-pushed the fix/instance-list-filter branch from 44107b4 to a09e07d Compare November 5, 2019 22:44
@NicolasMahe NicolasMahe merged commit f6e2605 into dev Nov 6, 2019
@NicolasMahe NicolasMahe deleted the fix/instance-list-filter branch November 6, 2019 07:11
// 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
Copy Markdown
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