-
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
[DROOLS-6627] Verify Scorecard reasoncode when result is null #3875
Merged
+41
−13
Merged
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3fa1ab8
[DROOLS-6625] Managing missing "required" input data
gitgabrio 5753632
[DROOLS-6625] Managing best-effort conversion of input data
gitgabrio 680cdd3
[DROOLS-6625] Managing invalid values - TODO: integration tests
gitgabrio 25f4fa2
[DROOLS-6625] Managing invalid values
gitgabrio 0e7d37e
[DROOLS-6625] Managing missing values
gitgabrio 556fa70
Merge remote-tracking branch 'origin/7.x' into DROOLS-6625
gitgabrio f01da9d
[DROOLS-6625] Validate input data
gitgabrio 0888aa8
[DROOLS-6635] Move testing sources in specific files
gitgabrio 4bad52d
Merge remote-tracking branch 'origin/7.x' into DROOLS-6625
gitgabrio ac363eb
[DROOLS-6625] Fix merge with base branch
gitgabrio f7b6a53
[DROOLS-6625] Fix as per PR suggestion
gitgabrio f9ead51
Merge remote-tracking branch 'origin/7.x' into DROOLS-6625
gitgabrio 60079cc
Merge remote-tracking branch 'gitgabrio/DROOLS-6625' into DROOLS-6635
gitgabrio a2ec9c9
[DROOLS-6635] Fix merge
gitgabrio d565f47
[DROOLS-6627] Verify Scorecard reasoncode when result is null
gitgabrio 3ef7c98
Merge remote-tracking branch 'origin/7.x' into DROOLS-6635
gitgabrio d0e06a0
[DROOLS-6635] Fix merge with 7.x
gitgabrio 70268eb
Merge remote-tracking branch 'origin/7.x' into DROOLS-6627
gitgabrio b0441d7
Merge remote-tracking branch 'gitgabrio/DROOLS-6635' into DROOLS-6627
gitgabrio 01b40ce
[DROOLS-6627] Fix merge
gitgabrio 3e004f9
Merge remote-tracking branch 'origin/7.x' into DROOLS-6627
gitgabrio 3cf85fa
Merge remote-tracking branch 'origin/7.x' into DROOLS-6627
gitgabrio ae9afd8
[DROOLS-6627] Fixed as per PR request
gitgabrio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
import java.util.ArrayList; | ||
import java.util.Collections; | ||
import java.util.HashMap; | ||
import java.util.LinkedHashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
@@ -66,12 +67,15 @@ public Object evaluate(final Object knowledgeBase, final Map<String, Object> req | |
if (localTransformations != null) { | ||
derivedFields.addAll(localTransformations.getDerivedFields()); | ||
} | ||
return characteristics.evaluate(defineFunctions, derivedFields, kiePMMLOutputFields, requestData, | ||
outputFieldsMap, | ||
initialScore, | ||
reasonCodeAlgorithm, | ||
useReasonCodes, | ||
baselineScore).orElse(null); | ||
Map<String, Object> holder = new HashMap<>(); | ||
Object toReturn = characteristics.evaluate(defineFunctions, derivedFields, kiePMMLOutputFields, requestData, | ||
holder, | ||
initialScore, | ||
reasonCodeAlgorithm, | ||
useReasonCodes, | ||
baselineScore).orElse(null); | ||
outputFieldsMap = holder; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @danielezonca |
||
return toReturn; | ||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this necessary? I don't usually like a method that changes the instance of a field. Isn't possible to do
outpitFieldsMap.putAll(output)
?
Or do a
clear()
if necessaryThere 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.
@danielezonca
done