-
Notifications
You must be signed in to change notification settings - Fork 752
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(query): account_admin should support grant ownership to new role after drop an created role #14597
Conversation
cc @everpcpc I already add label ci-benchmark-suites but not trigger the suite benchmark. Could you please help to this question? |
Maybe need to add to here: https://github.com/datafuselabs/databend/blob/023972b9c2ec97b83a3c4e15d7254dcfc251046e/.github/workflows/cloud.yml#L115? But that is strange.. Because this test not deploy in cloud. |
src/query/service/src/interpreters/interpreter_privilege_grant.rs
Outdated
Show resolved
Hide resolved
src/query/service/src/interpreters/interpreter_privilege_grant.rs
Outdated
Show resolved
Hide resolved
26bffd6
to
e76e478
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Docker Image for PR
|
…hip to new role 1. if has ownership but owner role not exists, the owner role will be set to account_admin 2. has_ownership should get ownership and role from meta
if has ownership but role not exists this object's owner set to account_admin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
if has ownership but owner role not exists, the owner role will be set to account_admin
has_ownership should get ownership and role from meta
Tests
Type of change
This change is