Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lordrip
Copy link
Member

@lordrip lordrip commented Jul 1, 2025

No description provided.

@lordrip lordrip requested a review from Copilot July 1, 2025 11:19
Copilot

This comment was marked as outdated.

@lordrip lordrip changed the title chore: update dependencies chore: Remove Ajv and Update form related dependencies Jul 1, 2025
@lordrip lordrip force-pushed the chore/update-form-dependencies branch from 9aba0ba to d8b9588 Compare July 1, 2025 12:27
@lordrip lordrip requested a review from Copilot July 1, 2025 12:31
@codecov
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

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

Project coverage is 81.16%. Comparing base (ecd4da9) to head (5836ed8).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...n/flows/camel-route-configuration-visual-entity.ts 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2342      +/-   ##
==========================================
+ Coverage   81.10%   81.16%   +0.05%     
==========================================
  Files         452      452              
  Lines       14360    14339      -21     
  Branches     3126     3123       -3     
==========================================
- Hits        11647    11638       -9     
+ Misses       2711     2699      -12     
  Partials        2        2              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes AJV-based schema validation in favor of shared form utilities and updates related dependencies.

  • Replaces manual AJV validators with ModelValidationService or getValidator in visualization entities
  • Cleans up unused imports and deprecated validator functions
  • Bumps @kaoto/forms, removes ajv/ajv-formats, updates PatternFly peer versions, and moves type packages to devDependencies

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/ui/src/models/visualization/flows/camel-route-configuration-visual-entity.ts Switched to ModelValidationService.validateNodeStatus, removed AJV setup and imports, updated method signature
packages/ui/src/models/visualization/flows/camel-rest-configuration-visual-entity.ts Replaced custom AJV compile with getValidator from @kaoto/forms, removed old validation helper
packages/ui/package.json Bumped @kaoto/forms and PatternFly versions, removed ajv/ajv-formats, relocated type definitions to devDependencies
Comments suppressed due to low confidence (2)

packages/ui/src/models/visualization/flows/camel-route-configuration-visual-entity.ts:127

  • The signature of getNodeValidationText was changed; ensure it matches the overridden method in the base class or interface to avoid potential breaking overrides.
  getNodeValidationText(path?: string | undefined): string | undefined {

packages/ui/package.json:80

  • Bumping peerDependencies for PatternFly from ^6.1.0 to ^6.2.0 may introduce breaking changes for consumers; verify compatibility and update documentation or migration guides as needed.
    "@patternfly/patternfly": "^6.2.0",

Comment on lines 130 to 132
if (!this.schemaValidator) {
this.schemaValidator = this.getValidatorFunction(componentVisualSchema);
this.schemaValidator = getValidator<RestConfiguration>(componentVisualSchema.schema, { useDefaults: 'empty' });
}
Copy link

Copilot AI Jul 1, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider unifying the schema validation approach with ModelValidationService (as used in CamelRouteConfigurationVisualEntity) for consistency and easier maintenance.

Copilot uses AI. Check for mistakes.
@lordrip lordrip force-pushed the chore/update-form-dependencies branch from d8b9588 to 881d409 Compare July 1, 2025 12:33
@lordrip lordrip force-pushed the chore/update-form-dependencies branch from 881d409 to 5836ed8 Compare July 1, 2025 12:36
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 1, 2025

@lordrip lordrip merged commit 500796d into KaotoIO:main Jul 1, 2025
13 checks passed
@lordrip lordrip deleted the chore/update-form-dependencies branch July 1, 2025 13:10
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.

1 participant