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

Remove Permissions From Fetcher #1839

Merged
merged 7 commits into from
Dec 17, 2024
Merged

Conversation

RodrigoVillar
Copy link
Contributor

@RodrigoVillar RodrigoVillar commented Dec 17, 2024

This PR removes permissions from Fetcher by having it take in a slice of strings (i.e. database keys) instead of state.Keys.

This PR also modifies the Fetcher tests to natively use database keys instead of state keys.

state/keys.go Outdated
Comment on lines 64 to 65
// Strip returns the database keys of k
func (k Keys) Strip() []string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we rename this to either Keys(), KeysWithoutPermissions(), or WithoutPermissions() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will rename to WithoutPermissions()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

state/keys.go Outdated Show resolved Hide resolved
Signed-off-by: aaronbuchwald <aaron.buchwald56@gmail.com>
@aaronbuchwald aaronbuchwald enabled auto-merge (squash) December 17, 2024 18:35
@aaronbuchwald aaronbuchwald merged commit 5a4c4eb into main Dec 17, 2024
17 checks passed
@aaronbuchwald aaronbuchwald deleted the remove-permissions-from-fetcher branch December 17, 2024 18:50
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.

2 participants