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

fix broken Grant() call #784

Merged
merged 1 commit into from
Aug 2, 2024

Conversation

nustiueudinastea
Copy link
Contributor

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.

@sre-ci-robot
Copy link

Welcome @nustiueudinastea! It looks like this is your first PR to milvus-io/milvus-sdk-go 🎉

@sre-ci-robot sre-ci-robot added the size/S Denotes a PR that changes 10-29 lines. label Jul 8, 2024
@nustiueudinastea nustiueudinastea force-pushed the fix-grant-creation branch 2 times, most recently from c6b391c to 703a677 Compare July 9, 2024 15:11
@nustiueudinastea
Copy link
Contributor Author

/assign @congqixia

@congqixia
Copy link
Contributor

@Mergifyio rebase

Signed-off-by: Alex Giurgiu <alex@giurgiu.io>
Copy link

mergify bot commented Jul 29, 2024

rebase

✅ Branch has been successfully rebased

@congqixia
Copy link
Contributor

/kind bug

@sre-ci-robot sre-ci-robot added the kind/bug Something isn't working label Jul 29, 2024
@mergify mergify bot added the ci-passed auto merge needed label label Jul 29, 2024
@congqixia
Copy link
Contributor

/lgtm
/approve
#798 might have some conflict with this PR
@SimFG please fix after this patch merged

@sre-ci-robot sre-ci-robot added the lgtm look good to me label Aug 2, 2024
@sre-ci-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot added the approved review approved label Aug 2, 2024
@sre-ci-robot sre-ci-robot merged commit 78139c2 into milvus-io:master Aug 2, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved review approved ci-passed auto merge needed label kind/bug Something isn't working lgtm look good to me size/S Denotes a PR that changes 10-29 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants