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

Feat/update kaoto 2.5.0-M1 #772

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

apupier
Copy link
Member

@apupier apupier commented Jan 16, 2025

No description provided.

@apupier apupier force-pushed the feat/update-kaoto-2.5.0-M1-testUpdate branch from 8858cc0 to d0e7c0e Compare January 16, 2025 10:30
webpack.config.js Outdated Show resolved Hide resolved
@apupier apupier force-pushed the feat/update-kaoto-2.5.0-M1-testUpdate branch from d0e7c0e to a8d7b11 Compare January 16, 2025 12:17
Signed-off-by: Aurélien Pupier <[email protected]>
@apupier apupier force-pushed the feat/update-kaoto-2.5.0-M1-testUpdate branch from a8d7b11 to 328b672 Compare January 16, 2025 12:17
Signed-off-by: Aurélien Pupier <[email protected]>
@@ -118,7 +118,6 @@ const commonConfig = (env) => {
alias: {
"react": path.resolve('./node_modules/react'),
"react-dom": path.resolve('./node_modules/react-dom'),
"@patternfly/react-core": path.resolve('./node_modules/@patternfly/react-core')
Copy link
Member Author

Choose a reason for hiding this comment

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

@lordrip What is the impact of removing it? (apart from the good news that it allows compilation despite kie using patternfly v4)

Copy link
Member

Choose a reason for hiding this comment

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

alias offers a way to resolve modules in an easier manner by letting you specify the module name in the code in the way you need and then webpack resolving it to the right module.

In this case, we were bypassing the node resolution by fixing all modules requiring @patternfly/react-core to use the root version of it, this prevented @kie-tools-core/* packages from accessing their patternfly v4 version.

Copy link
Member Author

Choose a reason for hiding this comment

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

if I understand well, now if kie-tools-core is using some patternfly component they will use Patternfly v4 for it, right?
(I would need to search in which case they are used and if it can occur in our context to check that it is working)

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it will and it's happening already for the components used by the hotkeys panel (which we don't see) and the initial loading distractor

@apupier apupier changed the title WIP Feat/update kaoto 2.5.0 m1 test update Feat/update kaoto 2.5.0-M1 Jan 16, 2025
@apupier apupier requested a review from lordrip January 16, 2025 13:03
@apupier apupier marked this pull request as ready for review January 16, 2025 13:03
@apupier
Copy link
Member Author

apupier commented Jan 16, 2025

on hold: discovered that it breaks the Drag'n'drop (only in VS Code...)

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.

2 participants