[jboss-jira] [JBoss JIRA] (DROOLS-2341) Asset validation show errors of other assets

Jozef Marko (JIRA) issues at jboss.org
Wed Feb 21 03:01:00 EST 2018


     [ https://issues.jboss.org/browse/DROOLS-2341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Marko updated DROOLS-2341:
--------------------------------
    Steps to Reproduce: 
# Open the workbench
# Import the *mortgages* project
# Update the asset *Dummy rule.drl* to be invalid, for example [1]
# Save the *Dummy rule*
# Open *Pricing loans.gdst*
# Validate *Pricing loans*
# Error that belongs to *Dummy rule* will be shown

[1]
{code:mvel}
package mortgages.mortgages

rule 'Dummy rule'

w
  //actions

end
{code}


  was:
# Open the workbench
# Import the *mortgages* project
# Update the asset *Dummy rule.drl* to be invalid, for example [1]
# Save the *Dummy rule*
# Open *Pricing loans.gdst*
# Validate *Pricing loans*
# Error that belongs to *Dummy rule* will be shown

{code:mvel}
package mortgages.mortgages

rule 'Dummy rule'

w
  //actions

end}
{code}




> Asset validation show errors of other assets
> --------------------------------------------
>
>                 Key: DROOLS-2341
>                 URL: https://issues.jboss.org/browse/DROOLS-2341
>             Project: Drools
>          Issue Type: Bug
>          Components: Guided Decision Table Editor, Guided Rule Editor, Guided Template Editor
>    Affects Versions: 7.7.0.Final
>            Reporter: Jozef Marko
>            Assignee: Michael Anstis
>            Priority: Blocker
>
> Setting this as blocker as the amount of failing tests. 
> The issue can be seen if the project contains two assets, for example:
> - a.rdrl - valid
> - b.drl - invalid
> Then if user validates the asset *a*, he will see errors of the asset *b*
> The issue was revealed by the tests:
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testValidDSRLFile
> *  org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testInvalidDSRLFile
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDSLCompinedWithPureDRL
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithGlobalVariable
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithExplicitNonExistingImport
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithExplicitImport
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testValidDRLFileWithTwoRules
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testValidDRLFile
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWithUnknownGlobalVariable
> * org.drools.workbench.screens.drltext.backend.server.DRLTextEditorServiceImplCDITest.testDRLFileWrongConstructor
> * org.drools.workbench.screens.guided.dtable.backend.server.GuidedDecisionTableEditorServiceImplCDITest.testFunctionFromDrl
> * org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImplCDITest.testAbbreviatedCondition
> * org.drools.workbench.screens.guided.rule.backend.server.GuidedRuleEditorServiceImplCDITest.testValidateRuleThatInherit



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list