-
Notifications
You must be signed in to change notification settings - Fork 458
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
API Refactor: Implement Entry.ListEntries RPC #1598 #1628
API Refactor: Implement Entry.ListEntries RPC #1598 #1628
Conversation
05e0aa0
to
b057c98
Compare
pkg/server/api/entry/v1/service.go
Outdated
var dsSelectors []*common.Selector | ||
for _, reqSelector := range req.Filter.BySelectors.Selectors { | ||
s := &common.Selector{ | ||
Type: reqSelector.Type, | ||
Value: reqSelector.Value, | ||
} | ||
dsSelectors = append(dsSelectors, s) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this can go into an api.SelectorsFromProto
that also does the selector type and value validation that we have done elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely! Giving these are selectors, I suppose it should go under common and not server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The api
package is where we've been putting that stuff, since for now, these new types are only part of the server API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e. pkg/server/api
Signed-off-by: Mariano Kunzi <kunzi.mariano@gmail.com>
Signed-off-by: Mariano Kunzi <kunzi.mariano@gmail.com>
b057c98
to
75d76ac
Compare
Signed-off-by: Mariano Kunzi <kunzi.mariano@gmail.com>
75d76ac
to
454d400
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\o/, thanks @kunzimariano!
DCO status is wedged. I've reviewed DCO on the commits though and I think we're good. |
API Refactor: Implement Entry.ListEntries RPC
fixes #1598
Signed-off-by: Mariano Kunzi kunzi.mariano@gmail.com