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

Default Grant Read Unnecessary Set #381

Merged
merged 3 commits into from
Nov 24, 2023
Merged

Default Grant Read Unnecessary Set #381

merged 3 commits into from
Nov 24, 2023

Conversation

dehume
Copy link
Contributor

@dehume dehume commented Nov 22, 2023

Remove unnecessary d.Set from grantDefaultPrivilegeRead. Reads for grants never need to set any attributes, it just needs to confirm that the query can be preformed based on the compound key and that the privilege is present in the returned result. Removing this part prevents an error in the provider if the query returns no rows.

Updating the RBAC integration tests to be a more complex matrix to more throughly test.

@dehume dehume added the bug Something isn't working label Nov 22, 2023
@dehume dehume changed the title [WIP] Default Grant Settings [WIP] Default Grant Read Unnecessary Set Nov 22, 2023
Copy link
Contributor

@bobbyiliev bobbyiliev left a comment

Choose a reason for hiding this comment

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

I've been testing this locally and so far it seems to be working as expected. Nice job!

@dehume dehume changed the title [WIP] Default Grant Read Unnecessary Set Default Grant Read Unnecessary Set Nov 24, 2023
@dehume dehume marked this pull request as ready for review November 24, 2023 11:04
@dehume dehume merged commit 949b362 into main Nov 24, 2023
6 checks passed
@dehume dehume deleted the Default-Grant-Setting branch November 24, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants