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

[#5124][#5146] feat(auth-ranger): Ranger plugin should support rename operation #5176

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

xunliu
Copy link
Member

@xunliu xunliu commented Oct 18, 2024

What changes were proposed in this pull request?

Add rename a securable object in the RoleChange.

Why are the changes needed?

Fix: #5124 #5146

Does this PR introduce any user-facing change?

N/A

How was this patch tested?

Add ITs.

@xunliu xunliu requested a review from jerqi October 18, 2024 03:53
@xunliu xunliu self-assigned this Oct 18, 2024
@xunliu xunliu marked this pull request as draft October 18, 2024 03:54
@xunliu
Copy link
Member Author

xunliu commented Oct 18, 2024

@jerqi Please help me review commit(b1813c5) in this PR, Thanks.

@xunliu xunliu force-pushed the issue-5124 branch 2 times, most recently from a248f11 to d9466d1 Compare October 23, 2024 11:15
@xunliu xunliu changed the title [#5124] feat(auth-ranger): Ranger plugin should support rename operation [#5124][#5146] feat(auth-ranger): Ranger plugin should support rename operation Oct 23, 2024
@xunliu xunliu added the branch-0.7 Automatically cherry-pick commit to branch-0.7 label Oct 28, 2024
@xunliu xunliu marked this pull request as ready for review October 28, 2024 10:57
@xunliu xunliu force-pushed the issue-5124 branch 5 times, most recently from e54ee7c to bb20a1e Compare October 29, 2024 07:18
}

/**
* Remove the TABLE, Need to rename these the relevant policies, `*.{table}`, `*.{table}.{column}`
Copy link
Contributor

Choose a reason for hiding this comment

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

rename -> delete.

Copy link
Member Author

Choose a reason for hiding this comment

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

DONE.

}

/**
* Remove the SCHEMA, Need to rename these the relevant policies, `{schema}`, `{schema}.*`,
Copy link
Contributor

Choose a reason for hiding this comment

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

rename -> delete?

Copy link
Member Author

Choose a reason for hiding this comment

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

DONE.

Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

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

LGTM. some minors.

@xunliu xunliu requested a review from yuqi1129 October 29, 2024 08:58
* @return return a metadataObject.
*/
public MetadataObject getMetadataObject() {
return this.metadataObject;
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove this

Copy link
Member Author

Choose a reason for hiding this comment

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

DONE.

*
* @return return a metadataObject.
*/
public MetadataObject getMetadataObject() {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove get from method name?

Copy link
Member Author

Choose a reason for hiding this comment

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

DONE.

/**
* IF remove the SCHEMA, Need to remove these the relevant policies, `{schema}`, `{schema}.*`,
* `{schema}.*.*` <br>
* IF remove the TABLE, Need to remove these the relevant policies, `{schema}.*`, `{schema}.*.*`
Copy link
Contributor

Choose a reason for hiding this comment

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

Need -> need

Copy link
Member Author

Choose a reason for hiding this comment

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

DONE.

*
* @return return a metadataObject object.
*/
public MetadataObject getNewMetadataObject() {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove get too?

*
* @return return a metadataObject.
*/
public MetadataObject getMetadataObject() {
Copy link
Contributor

Choose a reason for hiding this comment

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

get

@FANNG1
Copy link
Contributor

FANNG1 commented Oct 30, 2024

LGTM except minor comments

@xunliu xunliu merged commit b2730a9 into apache:main Oct 30, 2024
26 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 30, 2024
… operation (#5176)

### What changes were proposed in this pull request?

Add rename a securable object in the RoleChange.

### Why are the changes needed?

Fix: #5124 #5146

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

Add ITs.
mplmoknijb pushed a commit to mplmoknijb/gravitino that referenced this pull request Nov 6, 2024
…pport rename operation (apache#5176)

### What changes were proposed in this pull request?

Add rename a securable object in the RoleChange.

### Why are the changes needed?

Fix: apache#5124 apache#5146

### Does this PR introduce _any_ user-facing change?

N/A

### How was this patch tested?

Add ITs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-0.7 Automatically cherry-pick commit to branch-0.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Subtask] Ranger plugin should support rename operation
3 participants