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: expand privilege group when list policy in rootcoord #38758

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

shaoting-huang
Copy link
Contributor

related: #38757

@sre-ci-robot sre-ci-robot added the size/L Denotes a PR that changes 100-499 lines. label Dec 25, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Dec 25, 2024
@shaoting-huang shaoting-huang force-pushed the list_policy branch 2 times, most recently from adc03e8 to bf31aed Compare December 25, 2024 14:50
Copy link
Contributor

mergify bot commented Dec 25, 2024

@shaoting-huang go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 25, 2024

@shaoting-huang cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

Copy link
Contributor

mergify bot commented Dec 25, 2024

@shaoting-huang cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

// expand privilege groups and turn to policies
allGroups, err := c.getPrivilegeGroups(ctx)
if err != nil {
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

According to the code above, the error is supposed to be returned by a wrapped response. Is it safe to return a nil response here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@tedxu
Copy link
Contributor

tedxu commented Dec 26, 2024

/lgtm
/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: shaoting-huang, tedxu

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

Copy link

codecov bot commented Dec 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.02%. Comparing base (f49d618) to head (1acc740).
Report is 3 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #38758      +/-   ##
==========================================
- Coverage   81.08%   79.02%   -2.06%     
==========================================
  Files        1381     1373       -8     
  Lines      195289   194075    -1214     
==========================================
- Hits       158345   153370    -4975     
- Misses      31354    35150    +3796     
+ Partials     5590     5555      -35     
Components Coverage Δ
Client 78.26% <ø> (ø)
Core 69.32% <ø> (ø)
Go 80.61% <100.00%> (-2.47%) ⬇️
Files with missing lines Coverage Δ
internal/metastore/catalog.go 100.00% <ø> (ø)
internal/metastore/kv/rootcoord/kv_catalog.go 79.04% <100.00%> (-1.67%) ⬇️
internal/rootcoord/meta_table.go 77.15% <100.00%> (-6.16%) ⬇️
internal/rootcoord/root_coord.go 83.49% <100.00%> (-4.26%) ⬇️

... and 243 files with indirect coverage changes

sre-ci-robot pushed a commit that referenced this pull request Dec 26, 2024
sre-ci-robot pushed a commit that referenced this pull request Dec 26, 2024
@mergify mergify bot added the ci-passed label Dec 26, 2024
@sre-ci-robot sre-ci-robot merged commit 94955e5 into milvus-io:master Dec 26, 2024
18 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/test ci-passed dco-passed DCO check passed. kind/bug Issues or changes related a bug lgtm sig/testing size/L Denotes a PR that changes 100-499 lines. test/integration integration test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants