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

Filterx switch case #473

Merged
merged 19 commits into from
Feb 6, 2025
Merged

Filterx switch case #473

merged 19 commits into from
Feb 6, 2025

Conversation

bazsi
Copy link
Member

@bazsi bazsi commented Jan 24, 2025

This PR adds support for switch-case structure and changes app-parser() to use it.

This sits on top of #465

@bazsi bazsi force-pushed the filterx-switch-case branch 6 times, most recently from 6fff9da to 933f384 Compare January 26, 2025 16:01
@alltilla alltilla self-requested a review February 4, 2025 10:39
@bazsi bazsi force-pushed the filterx-switch-case branch 2 times, most recently from 723f2f1 to 8516445 Compare February 4, 2025 13:10
@alltilla
Copy link
Member

alltilla commented Feb 6, 2025

Talked with Bazsi IRL, I will finish this PR by fixing the review comments.

bazsi and others added 15 commits February 6, 2025 16:26
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
May even be extracted into its own module. Right now, it's just a quick
and dirty export.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
…specified start index

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
This should bail out from the current compound expression, but not
out of the entire filterx block, like "done" or "drop".

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Due to the way our for() loop was organized, the processing
for eval_control_modified was not performed for the last element. Make sure
it is.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
…r transformations

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
The respective target might only turn into a
litaral in optimize, not in the ctor.

Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the filterx-switch-case branch from 8516445 to 5945443 Compare February 6, 2025 17:50
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
@alltilla alltilla force-pushed the filterx-switch-case branch from 5945443 to 1447538 Compare February 6, 2025 18:02
@alltilla
Copy link
Member

alltilla commented Feb 6, 2025

@bazsi Updated the PR according to my review comments. Could you kindly review it? I put an approve to the PR so you can self merge if you are okay with the changes.

@bazsi
Copy link
Member Author

bazsi commented Feb 6, 2025

The followups all look great. Thanks @alltilla

@bazsi bazsi merged commit 2123ed5 into axoflow:main Feb 6, 2025
22 checks passed
fekete-robert pushed a commit to axoflow/axosyslog-core-docs that referenced this pull request Feb 16, 2025
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