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

fix(catalog-generator): Use Label or Group for the EIP parameters grouping #1532

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Oct 3, 2024

Context

Starting from Camel 4.5.0, the label property from EIP was renamed to group.

This PR handles that change and uses whatever is available at the moment of creating the catalog. In addition to that, it changed the scope of the camel-yaml-dsl dependency because it was forcing the catalog generator to use the latest YAML DSL schema, failing to generate older catalog versions.

Before After
image image

fix: #1381

Copy link

sonarcloud bot commented Oct 3, 2024

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Please upload report for BASE (main@5d9fc41). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../camelcatalog/generator/CamelCatalogProcessor.java 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1532   +/-   ##
=======================================
  Coverage        ?   80.02%           
  Complexity      ?      259           
=======================================
  Files           ?      276           
  Lines           ?     7755           
  Branches        ?     1480           
=======================================
  Hits            ?     6206           
  Misses          ?     1489           
  Partials        ?       60           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

<groupId>org.apache.camel</groupId>
<artifactId>camel-yaml-dsl</artifactId>
<version>${version.camel}</version>
<scope>test</scope>
Copy link
Member Author

Choose a reason for hiding this comment

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

Without having <scope>test</scope>, this forces the runtime to load the latest Camel YAML DSL schema, making the catalog generation fail.

@lordrip lordrip merged commit 527849b into KaotoIO:main Oct 4, 2024
12 checks passed
@lordrip lordrip deleted the fix/eip-null-groups branch October 10, 2024 11:14
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.

"processor null properties" for step with Catalog 4.4.x
3 participants