-
Notifications
You must be signed in to change notification settings - Fork 113
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
fix broken Grant() call #784
fix broken Grant() call #784
Conversation
Welcome @nustiueudinastea! It looks like this is your first PR to milvus-io/milvus-sdk-go 🎉 |
c6b391c
to
703a677
Compare
/assign @congqixia |
@Mergifyio rebase |
Signed-off-by: Alex Giurgiu <[email protected]>
✅ Branch has been successfully rebased |
703a677
to
664039a
Compare
/kind bug |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia, nustiueudinastea The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The latest version of the SDK doesn't pass the actual privilege that is granted during a Grant() call. This causes the Grant call to fail in any situation.
This PR fixes this issue by extending the method signature to take a
privilege
parameter, similarly to how the Python SDK does. This was an easy fix because the protobuf structs already had the field in place, so the SDK only needs to use that correct field in the API call.