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
JBPM-9352: Stunner - Warning when getContent is called while the model is invalid #3427
Conversation
Jenkins do fdb |
Jenkins do cdb |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (1.8.0_202) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11. |
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.
maybe add a test that will make sure that no validation is emitted on the getContent method call?
@porcelli in fact I removed the code that calls validation, even the validator injections, in order to don't have dead code (we can inject later on as well, once fixing it). Also removed the validator instance from the test case, so it's for sure not calling validation now, I don't think I can ensure validation is not being called because of the class is now not using any validator. |
Hello @domhanak would you mind to have a look at this PR? Thank you! |
hey @ederign @paulovmr @domhanak @LuboTerifaj @porcelli |
Thanks @romartin I tried to reproduce the warning but I can't with these changes. Only time I couldn't was when I added sequence flow without target node. A notification that save operation was cancelled pops up. I believe this is correct behavior as sequence flow without target does not make sense. |
Hey @paulovmr @ederign
As discussed with @porcelli , fixing the actual blocker issue by completely disabling validation in the bpmn editor.
See comments in https://issues.redhat.com/browse/JBPM-9352
BTW You know who should be the QE tester for this, if any? Can't see anyone on the ticket yet.
Thanks!