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: [GoSDK] Return role without grants #40284

Merged

Conversation

congqixia
Copy link
Contributor

Related to #40274

Previousy DescribeRole returns only roles with grants, this PR add select role action to check role existence.

Also added database properties related option

Related to milvus-io#40274

Previousy DescribeRole returns only roles with grants, this PR add
select role action to check role existence.

Also added database properties related option

Signed-off-by: Congqi Xia <[email protected]>
@sre-ci-robot sre-ci-robot added the size/M Denotes a PR that changes 30-99 lines. label Mar 3, 2025
@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: congqixia

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

@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Mar 3, 2025
@dosubot dosubot bot added the component/gosdk issues & PRs related to GoSDK package label Mar 3, 2025
Signed-off-by: Congqi Xia <[email protected]>
Signed-off-by: Congqi Xia <[email protected]>
Copy link
Contributor

mergify bot commented Mar 3, 2025

@congqixia E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

Copy link

codecov bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 77.41935% with 7 lines in your changes missing coverage. Please review.

Project coverage is 80.54%. Comparing base (8eb662b) to head (ab866b6).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
client/milvusclient/rbac.go 77.77% 2 Missing and 2 partials ⚠️
client/milvusclient/database_options.go 57.14% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #40284    +/-   ##
========================================
  Coverage   80.54%   80.54%            
========================================
  Files        1474     1475     +1     
  Lines      206890   207202   +312     
========================================
+ Hits       166634   166886   +252     
- Misses      34211    34261    +50     
- Partials     6045     6055    +10     
Components Coverage Δ
Client 79.16% <77.41%> (-0.06%) ⬇️
Core 69.88% <ø> (ø)
Go 82.33% <ø> (-0.01%) ⬇️
Files with missing lines Coverage Δ
client/milvusclient/rbac_options.go 100.00% <100.00%> (ø)
client/milvusclient/database_options.go 95.16% <57.14%> (-4.84%) ⬇️
client/milvusclient/rbac.go 94.70% <77.77%> (-1.68%) ⬇️

... and 43 files with indirect coverage changes

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Mar 3, 2025
Copy link
Contributor

@ThreadDao ThreadDao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@sre-ci-robot sre-ci-robot merged commit 16d468c into milvus-io:master Mar 3, 2025
18 of 20 checks passed
congqixia added a commit to congqixia/milvus that referenced this pull request Mar 6, 2025
Related to milvus-io#40274

Previousy DescribeRole returns only roles with grants, this PR add
select role action to check role existence.

Also added database properties related option

---------

Signed-off-by: Congqi Xia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed component/gosdk issues & PRs related to GoSDK package dco-passed DCO check passed. kind/bug Issues or changes related a bug lgtm size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants