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
KOGITO-1436: Stunner - Remove double setContent
call.
#3246
Conversation
target/ | ||
yarn*.log |
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.
just a clean up
@@ -40,8 +40,6 @@ | |||
default void onSuccess() { | |||
} | |||
|
|||
; | |||
|
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.
another clean up
@@ -316,6 +316,7 @@ public void onError(final ClientRuntimeError error) { | |||
BPMNStandaloneDiagramEditor.this.getEditor().onLoadError(error); | |||
} | |||
}); | |||
return null; |
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.
@romartin I'm not sure what should I return here.
Closing as code from this PR is already present in #3236. |
@ederign oops sorry closed the wrong PR :/ |
Jenkins execute full downsteam build |
Hey @ederign @manstis @jomarko @tiagobento Great job guys, I've been testing this locally and it results on most of the acutal blocker tickets for editors being fixed, although I there is still one concrete case in which it doesn't work properly... See the following video: https://issues.redhat.com/secure/attachment/12468485/KOGITO-1436-verification.mp4 As you can see, I can verify (VERIFICATION) it works, although I can still see a non-related issue (BUG):
Sooo IMO we should take these actions:
PS: Also I've been testing this locally with #3239 merged as well, I mean both features in my local, and Ctrl +S is working fine too now in VSCode, expect in same situation that the bug mentioned above. Good job @Josephblt too!! Again - great job everyone involed, specially @ederign @tiagobento !!!! 👍 Thanks!! |
CC @lazarotti @porcelli ^^ |
Jenkins execute full downstream build |
CC @pefernan maybe I'll need your help Pere, after flushing, once some invalid field, it looks the forms state is not properly saved, see comment above. If you have some clue anyway please let us know!! 👍 |
hey @romartin let me test it locally to understand the issue. |
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.
I tested DMN in VSCode and -webapp-kogito-testing
. Both were fine. Thank-you.
Jenkins execute full downstream build |
public void setContent(final String path, | ||
public Promise setContent(final String path, | ||
final String value) { |
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.
please update formatting
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.
fixed
@@ -145,7 +145,7 @@ public boolean isDirty() { | |||
* @param value | |||
* Editor's content | |||
*/ | |||
public abstract void setContent(final String path, final String value); | |||
public abstract Promise setContent(final String path, final String value); |
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.
In appformer we changed to Promise<Void>
shouldn't we follow also here?
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.
That's a current limitation of our annotation processors. Other methods also return untyped Promises for now.
Manual check in business central was same as on vs code apache/incubator-kie-tools#95 (comment), but passed all scenarios. |
Hey @ederign @paulovmr @tiagobento Please this PR is blocking this other one for being properly reviewed: #3239 Could you please prioritize this review and try to merge this ASAP? Thx! |
CC @LuboTerifaj @Josephblt ^^ |
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
This PR changes the set content method to return a Promise instead of void.
The goal of this change is to be able to make the loading of editors predictable and remove the need for double set content call.
This PR also includes the changes by @manstis and @romartin at #3236
Merge together with:
apache/incubator-kie-tools#95
kiegroup/appformer#934
The new changes are here: 0d5c3a1