milvus-io / milvus-sdk-go

Go SDK for Milvus.
Apache License 2.0
326 stars 105 forks source link

fix broken Grant() call #784

Closed nustiueudinastea closed 1 month ago

nustiueudinastea commented 1 month ago

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 commented 1 month ago

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

nustiueudinastea commented 1 month ago

/assign @congqixia

congqixia commented 1 month ago

@Mergifyio rebase

mergify[bot] commented 1 month ago

rebase

✅ Branch has been successfully rebased

congqixia commented 1 month ago

/kind bug

congqixia commented 1 month ago

/lgtm /approve

798 might have some conflict with this PR

@SimFG please fix after this patch merged

sre-ci-robot commented 1 month ago

[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: - ~~[OWNERS](https://github.com/milvus-io/milvus-sdk-go/blob/master/OWNERS)~~ [congqixia] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment