-
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
add generic V&V reporting #2828
Conversation
bd6ffb3
to
e0ddcab
Compare
jenkins please restest this |
14af236
to
776478a
Compare
The analysis report still has the old overlaps in it, I'm planning to remove them, but they are atm there to prove I have the same coverage. |
@@ -141,6 +141,13 @@ private DTAnalysis dmnDTAnalysis(DMNModel model, DecisionTable dt) { | |||
analysis.compute2ndNFViolations(); | |||
LOG.debug("computeHitPolicyRecommender"); | |||
analysis.computeHitPolicyRecommender(); | |||
|
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.
This bit below will replace the lines 124-131 above. The original overlaps, misleading and masked rows are still resolved, but not reported or used in the reports added byt addIssues
below.
not sure about my involvement as this does not fill the agnostic API for DMN gaps and overlaps which enables any other checks. If I missed something don't hesitate to let me know |
assertThat(analysis.getMisleadingRules(), contains(misleadingRules.toArray())); | ||
assertTrue("It should contain DMNMessage for the MisleadingRule", | ||
validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.DECISION_TABLE_MISLEADING_RULE))); | ||
// assertThat(analysis.getMaskedRules(), hasSize(2)); |
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.
???
assertThat(analysis.getMaskedRules(), contains(maskedRules.toArray())); | ||
assertTrue("It should contain DMNMessage for the MaskedRule", | ||
validate.stream().anyMatch(p -> p.getMessageType().equals(DMNMessageType.DECISION_TABLE_MASKED_RULE))); | ||
// assertThat(analysis.getMaskedRules(), hasSize(2)); |
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.
??
@tarilabs I think your find gaps implementation will stay in. However I also think both mine and your style of finding the gaps could be done better in a 3rd way. This PR starts to remove your overlaps codes. This replaces your misleading, masked and overlapping row reporting. Overlap data will still be there since your redundancy checks use it, but both overlaps and the redundancy are on the list that I'm aiming to replace. I marked you as a reviewer since I think you might find this interesting, but @manstis is already taking a look at the implementation. So if you are not against this then we are good. |
Q1. some test have commented out results. If you merge this code, how is this supposed to be checked? Q2. so are you stepping in as the maintainer for Q3. How the new impl which you are putting forward will support the future DMN checks which are missing even in my impl. at the moment, please? |
Answer 1. Answer 2. Answer 3. |
6554f3b
to
35003d5
Compare
Checking impact of the changes in a PR. I expect I need to still fix few things before moving out of Draft-status. |
DROOLS-2851 : DMN Verifier: Add support for ranges DROOLS-2851 : DMN Verifier: Add support for ranges - bug fixes
SonarCloud Quality Gate failed.
|
…violation_1.0.0-SNAPSHOT (apache#161) (apache#2828)
…violation_1.0.0-SNAPSHOT (apache#161) (apache#2828)
Main ticket:
https://issues.redhat.com/browse/DROOLS-5203
Changes to generic Validator:
This adds in as experimental:
https://github.com/kiegroup/drools/pull/2828
kiegroup/kie-wb-common#3250
kiegroup/drools-wb#1342