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

execute processor condition template #1352

Merged
merged 11 commits into from
Feb 6, 2024
Merged

execute processor condition template #1352

merged 11 commits into from
Feb 6, 2024

Conversation

maha-hajja
Copy link
Contributor

@maha-hajja maha-hajja commented Jan 27, 2024

Description

Adds a utility to parse and execute go templates on conduit records, and evaluate them into boolean.
should be used to execute the "condition" field when running processors, only needs to be called in the right place when Better Processors work is done.

Fixes #1346

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@maha-hajja maha-hajja requested a review from a team as a code owner January 27, 2024 00:07
pkg/processor/template_utils.go Outdated Show resolved Hide resolved
pkg/processor/template_utils.go Outdated Show resolved Hide resolved
pkg/processor/template_utils.go Outdated Show resolved Hide resolved
pkg/processor/template_utils.go Outdated Show resolved Hide resolved
pkg/processor/template_utils.go Outdated Show resolved Hide resolved
pkg/processor/template_utils_test.go Outdated Show resolved Hide resolved
pkg/processor/template_utils.go Outdated Show resolved Hide resolved
@maha-hajja maha-hajja merged commit 442f8ee into main Feb 6, 2024
3 checks passed
@maha-hajja maha-hajja deleted the maha/execute-template branch February 6, 2024 21:02
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.

Execute and evaluate the condition in the processor
3 participants