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

flags: refactor FilterMap #3222

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

yanivagman
Copy link
Collaborator

1. Explain what the PR does

Currently the filterFlag struct includes information about the policy - it's index and name. Since FilterMap is already indexed by policy, this information is redundant and can be set once per policy. Removing the policy information from filterFlag makes code simpler and easier to modify in future PR (e.g. splitting filter flag to event and scope flags).

2. Explain how to test it

3. Other comments

Currently the filterFlag struct includes information about the policy -
it's index and name. Since FilterMap is already indexed by policy, this
information is redundant and can be set once per policy.
Removing the policy information from filterFlag makes code simpler and
easier to modify in future PR (e.g. splitting filter flag to event and
scope flags).
Copy link
Collaborator

@josedonizetti josedonizetti left a comment

Choose a reason for hiding this comment

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

LGTM

@yanivagman yanivagman merged commit 7b4fc55 into aquasecurity:main Jun 14, 2023
25 checks passed
@yanivagman yanivagman deleted the refactor_filter_map branch June 14, 2023 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants