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

KOGITO-5522: Incorporate kogito-editors-java #729

Merged
merged 10,000 commits into from
Jan 11, 2022
Merged

Conversation

tiagobento
Copy link
Contributor

@tiagobento tiagobento commented Dec 28, 2021

This PR incorporates the kogito-editors-java repository into the kogito-tooling monorepo.

The entire repository was placed inside the stunner-editors directory.

The directory structure is kept identical, except for the kogito-editors-js package, which was hoisted into the top level of the monorepo. This avoids nested lerna builds and encourages reusability and enhances the separation of concerns of our packages. The names are kept, with the exception of dmn-loader, which is now called stunner-editors-dmn-loader.

I also removed the yarn build:dev and yarn build:prod commands, as we should begin to choose what we want to build. Two new commands were created -- yarn build:dev:until [pkg-name] and yarn build:prod:until [pkg-name].

Of course building everything is still supported with lerna run build:dev and lerna run build:prod.

Some changes were made to the way the DMN Loader package is configured. The wire env var was renamed to DMN_LOADER__outputPath and is now managed by build-env, just like all the other env vars we have.

Maven commands still work normally inside packages/stunner-editors.

The envisioned workflow for Editor developers is

  1. yarn bootstrap
  2. yarn build:dev:until @kogito-tooling/stunner-editors
  3. mvn clean gwt:run -f [bpmn/dmn/scesim webapp path]
  4. For instructions on how to enable "live-reloading" of React components, refer to DMN Loader's README.

Something that also changed is how we load CSS for React components inside the DMN Editor. The CSS was separate from the JS bundle in production builds. Although this the ideal thing to do, it gives us some challenges due to the discrepancy between dev and prod builds. For this reason, I changed the DMN Loader to use our default Webpack configuration, so everything works the same now. This is an important optimization issue and we're aware that this could be considered a "step back", however, having everything on the same repository is far more important at this time.

I already contacted Jozef and Dominik about the QE builds/checks we have, so this PR can still be updated once I have more information.

caponetto and others added 30 commits May 10, 2021 09:52
* switched to elemental2 Blob implementation

* formating
* BXMSPROD-1311 action-surefire-report

* Check Surefire Report errata fixed
* BXMSPROD-1311 action-surefire-report

* Check Surefire Report errata fixed
…#37)

* KOGITO-4872: Add ErrorPage for SceSim.

* KOGITO-4872: Fix associated test.
Co-authored-by: karreiro <karreiro@users.noreply.github.com>
…select nodes cherry-pick (#47)

Co-authored-by: Jaime Enriquez <jenrique@redhat.com>
… empty (#36)

If an item could not be found in the workiItemDefinitionRegistry a null exception was thrown interrupting the load process.
* Update ci_full_downstream_build.yml

* Fix FDB workflow
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
@tiagobento
Copy link
Contributor Author

@jomarko They are not running on kogito-editors-java as well. I tried enabling them, but they were not stable enough yet.

@jomarko
Copy link
Contributor

jomarko commented Jan 6, 2022

@tiagobento I can not agree, there were part of regular CI build on kogito-editors-java https://github.com/kiegroup/kogito-editors-java/pull/173/files

@tiagobento
Copy link
Contributor Author

@jomarko Ok, you're right. Let's enable them.

jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 6, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 7, 2022
This changes are related to monorepo migration apache#729
jomarko pushed a commit to jomarko/kie-tools that referenced this pull request Jan 7, 2022
This changes are related to monorepo migration apache#729
Copy link
Contributor

@yesamer yesamer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tiagobento Thank you for this huge work. After the merge, I think it's crucial to inform the team about the new commands you introduced and their usage, in order to avoid full compilation in local builds.

README.md Outdated Show resolved Hide resolved
@tiagobento tiagobento changed the title Incorporate kogito-editors-java KOGITO-5522: Incorporate kogito-editors-java Jan 10, 2022
@jomarko
Copy link
Contributor

jomarko commented Jan 11, 2022

Thank you @tiagobento for bringing back most of ./boxed-expression-component/it-tests/integration/. I reported one more jira for stunner-editors integration tests https://issues.redhat.com/browse/KOGITO-6518

@tiagobento tiagobento merged commit 4251fbb into apache:main Jan 11, 2022
radtriste pushed a commit to apache/incubator-kie-kogito-pipelines that referenced this pull request Jan 11, 2022
* Activate jenkins PR jobs for kogito-tooling

This change is needed due to monorepo-migration:
- apache/incubator-kie-tools#729

* Temporal changes to debug new Jenkins job

* Revert "Temporal changes to debug new Jenkins job"

This reverts commit 35c9512.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet