-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
store: Add Request Hints for Labels APIs #3469
Conversation
Signed-off-by: Goutham Veeramachaneni <[email protected]>
6b2d465
to
7e27b80
Compare
This is in anticipation of thanos-io/thanos#3469 where we would need to utilise the consistency check to query for labels as well. Signed-off-by: Goutham Veeramachaneni <[email protected]>
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.
Awesome, LGTM!
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.
LGTM. I just noticed a typo in a error message.
reqHints := &hintspb.LabelValuesRequestHints{} | ||
err := types.UnmarshalAny(req.Hints, reqHints) | ||
if err != nil { | ||
return nil, status.Error(codes.InvalidArgument, errors.Wrap(err, "unmarshal label names request hints").Error()) |
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.
unmarshal label names request hints
Should be "label values request hints"
This is in anticipation of thanos-io/thanos#3469 where we would need to utilise the consistency check to query for labels as well. Signed-off-by: Goutham Veeramachaneni <[email protected]>
Signed-off-by: Goutham Veeramachaneni <[email protected]> Signed-off-by: Oghenebrume50 <[email protected]>
This is in anticipation of thanos-io/thanos#3469 where we would need to utilise the consistency check to query for labels as well. Signed-off-by: Goutham Veeramachaneni <[email protected]> Former-commit-id: 1216d00
Signed-off-by: Goutham Veeramachaneni [email protected]
Changes
This is a follow up to #3437 and this PR adds the request hints support to the LabelNames/Values APIs.
Verification
Again haven't gone beyond the unit test.