Skip to content
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

Merged
merged 1 commit into from Sep 25, 2020

Conversation

romartin
Copy link
Contributor

@romartin romartin commented Sep 22, 2020

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!

@romartin
Copy link
Contributor Author

Jenkins do fdb

@romartin
Copy link
Contributor Author

Jenkins do cdb

@sonarcloud
Copy link

sonarcloud bot commented Sep 22, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

warning 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.
Read more here

Copy link
Member

@porcelli porcelli left a 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?

@romartin
Copy link
Contributor Author

@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.

@LuboTerifaj
Copy link
Contributor

Hello @domhanak would you mind to have a look at this PR? Thank you!

@romartin
Copy link
Contributor Author

hey @ederign @paulovmr @domhanak @LuboTerifaj @porcelli
For me this fix is ready, please let me know some feedback asap.
Thanks guys!

@domhanak
Copy link
Contributor

Thanks @romartin I tried to reproduce the warning but I can't with these changes.
I was able to save a BPMN process in invalid state.

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.
Approved.

@LuboTerifaj LuboTerifaj removed their request for review September 23, 2020 08:28
@ederign ederign removed their request for review September 24, 2020 22:50
@romartin romartin merged commit e680dbc into kiegroup:master Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants