-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Kie issues#1448 - matches() function wrongly behaves - negation syntax translation #6083
Conversation
# Conflicts: # kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/MatchesFunctionTest.java
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.
@bncriju Thank you for your PR! After @gitgabrio and I analyzed your changes, we discovered more parts of the code that require to be improved. So, we agreed to open a new PR based on your PR to apply the adjustments.
<dependency> | ||
<groupId>org.apache.poi</groupId> | ||
<artifactId>poi</artifactId> | ||
</dependency> |
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.
@bncriju I guess this is not required
@@ -144,7 +162,7 @@ | |||
<directory>${project.basedir}/src/test/resources</directory> | |||
</testResource> | |||
<testResource> | |||
<directory>${project.basedir}/</directory> | |||
<directory>${project.basedir}/../</directory> |
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.
@bncriju I guess this change is not required
@@ -39,21 +36,24 @@ private MatchesFunction() { | |||
super( "matches" ); | |||
} | |||
|
|||
public FEELFnResult<Boolean> invoke(@ParameterName("input") String input, @ParameterName("pattern") String pattern) { | |||
public FEELFnResult<Boolean> FEELFnResult(@ParameterName("input") String input, @ParameterName("pattern") String pattern) { |
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.
@bncriju Wrong method name
Superseded by #6085 |
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.
Make the tests without reused variables. either separate tests or make them just parametric.
boolean retrieved = XQueryImplUtil.executeMatchesFunction(input, pattern, | ||
flags); | ||
boolean expected = true; | ||
assertThat(retrieved).isNotNull().isEqualTo(expected); |
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.
One general comment. Do not reuse variables. Either separate the tests or make a parametric test. a test should be quite simple and very easy to read.
Fixes apache/incubator-kie-issues#1448
Thank you for submitting this pull request
NOTE!: Double-check the target branch for this PR.
The default is
main
so it will target Drools 8 / Kogito.Ports If a forward-port or a backport is needed, paste the forward port PR here
Issue: (please edit the GitHub Issues link if it exists)
referenced Pull Requests: (please edit the URLs of referenced pullrequests if they exist)
How to replicate CI configuration locally?
Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.
build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.
How to retest this PR or trigger a specific build:
for pull request and downstream checks
for a full downstream build
run_fdb
for Jenkins PR check only
Build Now
button.