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
DROOLS-3727 - Adding kogito compileSourcesArtifact to business-central pom.xml #965
Conversation
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 change is also likely on every showcase kicking around.. but they can possibly be cleaned up as needed....
@@ -2708,6 +2708,9 @@ | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-forms-client</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-project-api</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-project-client</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-kogito-api</compileSourcesArtifact> |
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.
You couldn't fix the formatting could you!? Sorry.
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.
why this needs to be added in BC? Is that API used in 7.x applications?
This is big -1 to include it in full and productized part of the buiild
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.
done @manstis
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.
Code formatting.
@@ -2708,6 +2708,9 @@ | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-forms-client</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-project-api</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-project-client</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-kogito-api</compileSourcesArtifact> |
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 use the same indentation as lines above and below.
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.
done !
@@ -2708,6 +2708,9 @@ | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-forms-client</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-project-api</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-project-client</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-kogito-api</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench.stunner:kie-wb-common-stunner-kogito-client</compileSourcesArtifact> | |||
<compileSourcesArtifact>org.kie.workbench:kie-wb-common-kogito-client</compileSourcesArtifact> |
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.
why this needs to be added in BC? Is that API used in 7.x applications? I would expect it is in kogito editors not in our 7.x stream as the name says.
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.
The refactoring of Stunner to support re-use of the core editors in both Business Central and kogito (VSCode etc plugins) necessitated the introduction of new modules. The source code for the new modules needs to be declared to the GWT compiler in order for GWT compilation to succeed.
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 you should use different naming then if that is general API for using by both code bases
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'm agree with @mareknovotny guys - I think kogito should be used for the impls rather than for APIs...
At least in Stunner we'd been always making the difference between: "standalone" and "project" stuff. For the implementation, most of the "project" related class names start with or contains some "Project" term, and the "standalone" ones are usually named using the term "Default" or "Standalone", but the API class names do not mention it...
So this way, in Stunner terms, the term "kogito" can be directly mapped to the "standalone" stuff, but not at API level, IMO at the implementation.
This is why I was proposing also to remove the "stunner-kogito-api" module and refactor that code into the core, it's fine then having the kogito, standalone, project or whatever impl on top, even as maven modules, but IMO that kogito API stuff should be integrated into the core, and not make the relationship on the API classes by using the term kogito
Just leaving my 2 cents here too guys, I don't say it's a blocker, it works anyway, but as far as we introduce something into master
it gets visibility, so I would prefer to have this discussions now rather than later...
Thx!
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.
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 Can you please clarify your terms?
DMN and scesim use -runtime
for kogito standalone and -testing
for kogito with wrapper (for development). We use the term -standalone
for what was the project showcase.
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.
hey @manstis @jomarko
In stunner there are two environments on top the core/commons libraries, so two showcaes too - the standalone
and the project
ones.
The term standalone
or project
has nothing to do with BPMN marshallers - those marshallers are either on bpm-backend (server) or bpmn-marshalling modules (client), and then, on of top those modules, we'll have in kogito 3 environments now:
standalone
-> a webapp, with as less kie deps as possible, but not as kogito. It still uses the BPMN server sdie marshallersproject
-> the webapp for the whole kie environment. It still uses the BPMN server sdie marshallersbpmn-runtime-webapp
-> the webapp for kogito's BPMN editor. It uses the client side marshallers
So as you can see, the terms standalone
, project
or kogito
are (or should be) top level modules, on top of the core/commons ones for each domain (BPMN,DMN), and in case of BPMN, marshallers are not specifcly tight to any concrete environment, they're just maven deps thta can be added to achieve whatevet kind of marshallers you want.
Hope this clarifies a bit...
@manstis please see my question #965 (comment) |
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.
Approving it assuming that we still need to refactor the following dependenices by remvoing from this pom - the idea is that KIE
stuff should not depend on any kogito
stuff:
org.kie.workbench.stunner:kie-wb-common-stunner-kogito-api
org.kie.workbench.stunner:kie-wb-common-stunner-kogito-client
org.kie.workbench:kie-wb-common-kogito-client
@tiagodolphine could you please report it?? thx!
@manstis should we align this naming or it isn't in conflict from your point of view? |
@jomarko The general agreement is to get DROOLS-3727 merged "as is" and perform a secondary clean-up/refactor/move of classes to remove the kogito dependencies from Business Central. |
@manstis sure, my quesiton was if I should create ticket to align project, standalone, and xxx-runtime-webapp naming for bpmn and dmn. Or is the current naming fine? |
Personally I'm OK with them as they are: BPMN terms
DMN terms
|
from FDB here we need some fix for GWT maven plugin to not complain about ERROR
see more details https://rhba-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/KIE/job/master/job/pullrequest/job/kie-wb-common-downstream-pullrequests/446/console |
Jenkins retest this please |
@hasys @mareknovotny I'm on the case.... it's likely to be some missing configuration in the |
Jenkins please retest this. |
Jenkins please retest this...
Dependency versions are declared: The dependent PRs are all on the same branch name so this should be fine..... |
@manstis the PR build takes into account only PRs across repos if that is from the same author. so here it doesn't apply as this PR is from @tiagodolphine repo branch, but the other 2 PRs are directly from branches on the kiegroup repos. |
Jenkins please execute full downstream build.... IDK why a normal build is not fetching the correct downstream branches :-(
|
@manstis look above to my comment |
@tiagobento Given @mareknovotny comment you may need to merge this first into |
Thank-you @mareknovotny for your insights :-) |
@manstis ok, I'll open a PR to merge into kiegroup/kie-wb-distributions/DROOLS-3727. |
new PR opened #977 |
@tiagobento Want to close this one? Thanks for the new PR :-) |
closing this PR since we opened #965 |
Hi @romartin @tiagodolphine I was having a chat with @pefernan about his PRs for "state control" that was leading to everything to need a new dependency on |
Hey @manstis Good point!! I also remember that conversation... I'd been looking accross several JIRA tickets, starting from KOGITO-50, but I can't find any issue reported about "removing kogito dependencies from the BC...." Sooo maybe we forgot to report it? If you can work on it, maybe you can just create the ticket as well... hehe better late than never :) The main goal, as far as I rememer, was avoiding having dependencies like those in the BC, right? Otherwise please let me know and I'l lcreate the ticket, np, althoguh I won't be able to address it yet. Thanks for pointing that out!!! |
@romartin @tiagodolphine @pefernan Found it: https://issues.redhat.com/browse/KOGITO-459 Let's ensure the we don't add to the rot... ONLY kogito editors' modules should depend on kogito related modules (i.e. Business Central should not have ANY dependencies on kogito). The JIRA above should be remembered and added to sprints...... for some one, any one (probably me, the culprit of them in the first place!) to fix.. |
Allow initial kogito branch on kie-wb-common to be merged on master, adding some needed dependencies.
Related PR's
kiegroup/kie-wb-common#2923
kiegroup/droolsjbpm-build-bootstrap#1071