-
Notifications
You must be signed in to change notification settings - Fork 748
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
replaced govaluate with expr #2911
replaced govaluate with expr #2911
Conversation
d71adce
to
5b93aad
Compare
20c32ed
to
8215f19
Compare
@@ -65,7 +66,7 @@ func NewJetstreamTriggerConn(conn *jetstreambase.JetstreamConnection, | |||
recentMsgsByTime: make([]*msg, 0)} | |||
connection.Logger = connection.Logger.With("triggerName", connection.triggerName, "sensorName", connection.sensorName) | |||
|
|||
connection.evaluableExpression, err = govaluate.NewEvaluableExpression(strings.ReplaceAll(dependencyExpression, "-", "\\-")) | |||
connection.evaluableExpression, err = expr.Compile(dependencyExpression) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to escape it any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted to deprecate -
in naming, cause it limits subtract operations, reverted this change for now. want to add abilities to set priorities later in trigger conditions
@@ -7,17 +7,17 @@ spec: | |||
serviceAccountName: operate-workflow-sa | |||
# defines list of all events sensor will accept | |||
dependencies: | |||
- name: test-dep | |||
- name: TestDep |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious, what's the reason to change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted it as well, not relevant anymore
527b927
to
40735cd
Compare
40735cd
to
453f71c
Compare
453f71c
to
ccb5871
Compare
@whynowy could you please review it again? |
fddf83f
to
47eccb2
Compare
Signed-off-by: AndrewChubatiuk <[email protected]>
47eccb2
to
08db235
Compare
This Pull Request is stale because it has been open for 60 days with |
Removed govaluate, which is not maintained and left expr only instead