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

chore(flags): change scope/event flag parsers #3343

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

geyslan
Copy link
Member

@geyslan geyslan commented Jul 26, 2023

Close: #3312

1. Explain what the PR does

f913456 chore(flags): change scope/event flag parsers

Store the scope and event operator (non expression) in the parser stage,
avoiding re-parsing them in the policy build stage.

parseEventFlag now returns a slice of eventFlag instead of a single
eventFlag.

This also adds a new related unit tests.

2. Explain how to test it

3. Other comments

Store the scope and event operator (non expression) in the parser stage,
avoiding re-parsing them in the policy build stage.

parseEventFlag now returns a slice of eventFlag instead of a single
eventFlag.

This also adds a new related unit tests.
@geyslan geyslan merged commit fdafe73 into aquasecurity:main Aug 22, 2023
26 checks passed
josedonizetti pushed a commit to josedonizetti/tracee that referenced this pull request Sep 1, 2023
Store the scope and event operator (non expression) in the parser stage,
avoiding re-parsing them in the policy build stage.

parseEventFlag now returns a slice of eventFlag instead of a single
eventFlag.

This also adds a new related unit tests.
@geyslan geyslan deleted the 3312-op-parsing branch September 18, 2023 22:08
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.

parse - and ! operators in respective parsers
2 participants