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

policies: rename list fields to be plural #3242

Merged
merged 1 commit into from Jun 27, 2023

Conversation

josedonizetti
Copy link
Collaborator

@josedonizetti josedonizetti commented Jun 14, 2023

1. Explain what the PR does

Fix #3241
Fix #3181

2. Explain how to test it

This PR does two things:

1 - renames a few fields of the policy, and fix the code where appropriate.
filter -> filters
action -> actions

2 - add support to multiple default actions
defaultAction -> defaultActions

3. Other comments

This PR will break the internal tests, because of the policies change.

@josedonizetti josedonizetti force-pushed the refactor-policies branch 3 times, most recently from 4c8eec6 to d2a1034 Compare June 24, 2023 20:40
@yanivagman
Copy link
Collaborator

Still a draft?

@josedonizetti josedonizetti marked this pull request as ready for review June 26, 2023 12:40
Copy link
Contributor

@rafaeldtinoco rafaeldtinoco left a comment

Choose a reason for hiding this comment

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

LGTM

@rafaeldtinoco rafaeldtinoco merged commit 8d5237a into aquasecurity:main Jun 27, 2023
26 checks passed
@josedonizetti josedonizetti deleted the refactor-policies branch June 27, 2023 11:47
rafaeldtinoco pushed a commit to rafaeldtinoco/tracee that referenced this pull request Jun 29, 2023
Conflicts:
    pkg/policy/policy_file_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants