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

feat(frontend): support acl column in pg_namespace #4326

Merged
merged 11 commits into from
Aug 2, 2022
Merged

Conversation

cnissnzg
Copy link
Contributor

@cnissnzg cnissnzg commented Aug 1, 2022

I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.

What's changed and what's your intention?

Add acl column in pg_namespace

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 979 files.

Valid Invalid Ignored Fixed
977 1 1 0
Click to see the invalid file list
  • src/frontend/src/catalog/pg_catalog/mod.rs

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 979 files.

Valid Invalid Ignored Fixed
977 1 1 0
Click to see the invalid file list
  • src/frontend/src/catalog/pg_catalog/mod.rs

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 979 files.

Valid Invalid Ignored Fixed
977 1 1 0
Click to see the invalid file list
  • src/frontend/src/catalog/pg_catalog/mod.rs

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 979 files.

Valid Invalid Ignored Fixed
977 1 1 0
Click to see the invalid file list
  • src/frontend/src/catalog/pg_catalog/mod.rs

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 979 files.

Valid Invalid Ignored Fixed
977 1 1 0
Click to see the invalid file list
  • src/frontend/src/catalog/pg_catalog/mod.rs

@yezizp2012 yezizp2012 changed the title feat(frontend): add privilege check in pg_namespace feat(frontend): support acl column in pg_namespace Aug 2, 2022
@codecov
Copy link

codecov bot commented Aug 2, 2022

Codecov Report

Merging #4326 (fb221dc) into main (b71dd23) will decrease coverage by 0.05%.
The diff coverage is 17.36%.

@@            Coverage Diff             @@
##             main    #4326      +/-   ##
==========================================
- Coverage   74.37%   74.32%   -0.06%     
==========================================
  Files         845      846       +1     
  Lines      122898   122993      +95     
==========================================
+ Hits        91409    91410       +1     
- Misses      31489    31583      +94     
Flag Coverage Δ
rust 74.32% <17.36%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/frontend/src/catalog/pg_catalog/mod.rs 3.61% <0.00%> (-1.42%) ⬇️
src/frontend/src/user/user_manager.rs 61.29% <0.00%> (-3.12%) ⬇️
src/frontend/src/user/user_privilege.rs 33.33% <33.33%> (ø)
src/frontend/src/handler/handle_privilege.rs 80.95% <100.00%> (+6.54%) ⬆️
src/meta/src/manager/id.rs 94.56% <0.00%> (-0.55%) ⬇️
src/connector/src/source/filesystem/file_common.rs 80.35% <0.00%> (-0.45%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

add superuser acl check
Copy link
Member

@yezizp2012 yezizp2012 left a comment

Choose a reason for hiding this comment

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

Good job, generally LGTM except the acl fmt, should compatible with postgreSQL.

src/frontend/src/catalog/pg_catalog/mod.rs Outdated Show resolved Hide resolved
src/frontend/src/catalog/pg_catalog/mod.rs Outdated Show resolved Hide resolved
src/frontend/src/catalog/pg_catalog/mod.rs Outdated Show resolved Hide resolved
src/frontend/src/catalog/pg_catalog/mod.rs Outdated Show resolved Hide resolved
src/frontend/src/catalog/pg_catalog/mod.rs Outdated Show resolved Hide resolved
@mergify mergify bot merged commit fa06647 into main Aug 2, 2022
@mergify mergify bot deleted the yifeng/NamespaceAcl branch August 2, 2022 07:25
@yezizp2012 yezizp2012 added the user-facing-changes Contains changes that are visible to users label Aug 2, 2022
nasnoisaac pushed a commit to nasnoisaac/risingwave that referenced this pull request Aug 9, 2022
* inital

* add get_acl_items()

* add acl column

* fix long line

* fmt

* fix ut

* fix license & e2e test

* remove check code

* add user_privilege.rs

add superuser acl check

* fix format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature user-facing-changes Contains changes that are visible to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants