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

adapter: Add test for update_privilege_owners #18804

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

jkosh44
Copy link
Contributor

@jkosh44 jkosh44 commented Apr 17, 2023

Motivation

Add test.

Tips for reviewer

  • Hide whitespace when reviewing and the diff is much smaller.
  • All non-test code changes is code movement. There is no actual updates to non-test code.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • This PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way) and therefore is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

@jkosh44 jkosh44 requested a review from def- April 17, 2023 18:02
@jkosh44 jkosh44 requested a review from a team as a code owner April 17, 2023 18:02
},
))
.collect();
Op::UpdateOwner { id, new_owner } => match id {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All changes here are removing the update_privilege_owners nested function and whitespace changes.

/// Update privileges to reflect the new owner. Based off of PostgreSQL's
/// implementation:
/// https://github.com/postgres/postgres/blob/43a33ef54e503b61f269d088f2623ba3b9484ad7/src/backend/utils/adt/acl.c#L1078-L1177
fn update_privilege_owners(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are no changes to the contents of this function. It was just extracted from it's old location so I could write a test on it.

@jkosh44 jkosh44 merged commit b6ad9b7 into MaterializeInc:main Apr 17, 2023
@jkosh44 jkosh44 deleted the owner-update-test branch April 17, 2023 19:37
@jkosh44 jkosh44 mentioned this pull request Apr 24, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants