-
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
[incubator-kie-issues#1344] Refactoring/reorganizing Functions #6005
Conversation
|
||
import java.math.BigDecimal; | ||
import java.math.RoundingMode; | ||
|
||
import org.kie.dmn.api.feel.runtime.events.FEELEvent.Severity; | ||
import org.kie.dmn.feel.runtime.events.InvalidParametersEvent; | ||
import org.kie.dmn.feel.runtime.functions.BaseFEELFunction; | ||
import org.kie.dmn.feel.runtime.functions.FEELFnResult; | ||
import org.kie.dmn.feel.runtime.functions.ParameterName; | ||
|
||
/** | ||
* provisional access for DMN14-126 |
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.
@gitgabrio Probably those kind of comment could be removed.
...kie-dmn-feel/src/main/java/org/kie/dmn/feel/lang/ast/visitor/ASTTemporalConstantVisitor.java
Show resolved
Hide resolved
kie-dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/DurationFunction.java
Show resolved
Hide resolved
...dmn/kie-dmn-feel/src/main/java/org/kie/dmn/feel/runtime/functions/extended/DateFunction.java
Show resolved
Hide resolved
} | ||
} | ||
|
||
public FEELFnResult<TemporalAccessor> manageDateTimeException(DateTimeException e, String val) { |
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.
@gitgabrio As this is no a method to be consumed externally, I would set is as protected, WDTY?
…1344 # Conflicts: # kie-dmn/kie-dmn-feel/src/test/java/org/kie/dmn/feel/runtime/functions/ContextFunctionTest.java
…are singleton by design
* | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> |
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.
@gitgabrio Please check those Test classes, it seems to me they have unintended formatting changes (in the headers and in the below test functions)
* | ||
* <p> | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* <p> |
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.
@gitgabrio This class has unintended formatting changes, I guess
…e#6005) * [incubator-kie-issues#1344] Rrefactoring/reorganizing Functions * [incubator-kie-issues#1344] Fixed as per PR suggestion * [incubator-kie-issues#1344] Hiding constructors from functions, that are singleton by design * [incubator-kie-issues#1344] Fixing tests --------- Co-authored-by: Gabriele-Cardosi <[email protected]>
Fixes apache/incubator-kie-issues#1344
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.