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(Canvas): Use path+scope as VizNode ID #1699

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Dec 9, 2024

Context

Currently, when transforming a flow into VisualizationNodes, the nodes Ids are randomly generated, causing that whenever there's a change in the structure of the flow, previous Ids change.

Changes

This commit uses the path + scope so the VisualizationNodes IDs are stable between interacting with the flow.

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.92%. Comparing base (001a9b4) to head (90f234f).
Report is 6 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1699      +/-   ##
============================================
+ Coverage     78.62%   78.92%   +0.30%     
  Complexity      365      365              
============================================
  Files           439      461      +22     
  Lines         14234    14509     +275     
  Branches       2769     2774       +5     
============================================
+ Hits          11191    11451     +260     
- Misses         2954     2969      +15     
  Partials         89       89              

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

@lordrip lordrip force-pushed the fix/ensure-viznode-id-2 branch 2 times, most recently from 90f234f to 548d4fa Compare December 13, 2024 14:37
lordrip added a commit to lordrip/kaoto that referenced this pull request Dec 16, 2024
Currently, the component name is being used as the title in the
`CanvasForm`.

This commit uses the corresponding `Title` property if available from
components, eips and kamelets, and the `ID` as a last resort.

fix: KaotoIO#1462
prerequisite of: KaotoIO#1699
lordrip added a commit to lordrip/kaoto that referenced this pull request Dec 16, 2024
Currently, the component name is being used as the title in the
`CanvasForm`.

This commit uses the corresponding `Title` property if available from
components, eips and kamelets, and the `ID` as a last resort.

fix: KaotoIO#1462
prerequisite of: KaotoIO#1699
lordrip added a commit to lordrip/kaoto that referenced this pull request Dec 16, 2024
Currently, the component name is being used as the title in the
`CanvasForm`.

This commit uses the corresponding `Title` property if available from
components, eips and kamelets, and the `ID` as a last resort.

fix: KaotoIO#1462
prerequisite of: KaotoIO#1699
lordrip added a commit to lordrip/kaoto that referenced this pull request Dec 16, 2024
Currently, the component name is being used as the title in the
`CanvasForm`.

This commit uses the corresponding `Title` property if available from
components, eips and kamelets, and the `ID` as a last resort.

fix: KaotoIO#1462
prerequisite of: KaotoIO#1699
lordrip added a commit to lordrip/kaoto that referenced this pull request Dec 16, 2024
Currently, the component name is being used as the title in the
`CanvasForm`.

This commit uses the corresponding `Title` property if available from
components, eips and kamelets, and the `ID` as a last resort.

fix: KaotoIO#1462
prerequisite of: KaotoIO#1699
@lordrip lordrip force-pushed the fix/ensure-viznode-id-2 branch from 548d4fa to 021c488 Compare December 16, 2024 12:54
lordrip added a commit to lordrip/kaoto that referenced this pull request Dec 16, 2024
Currently, the component name is being used as the title in the
`CanvasForm`.

This commit uses the corresponding `Title` property if available from
components, eips and kamelets, and the `ID` as a last resort.

fix: KaotoIO#1462
prerequisite of: KaotoIO#1699
lordrip added a commit that referenced this pull request Dec 16, 2024
Currently, the component name is being used as the title in the
`CanvasForm`.

This commit uses the corresponding `Title` property if available from
components, eips and kamelets, and the `ID` as a last resort.

fix: #1462
prerequisite of: #1699
Currently, when transforming a flow into `VisualizationNodes`, the
nodes `Id`s are randomly generated, causing that whenever there's a
change in the structure of the flow, previous `Id`s change.

This commit uses the `path` + `scope` so the `VisualizationNodes` IDs
are stable between interacting with the flow.
@lordrip lordrip force-pushed the fix/ensure-viznode-id-2 branch from 021c488 to f30edb3 Compare December 17, 2024 08:13
Copy link

sonarcloud bot commented Dec 17, 2024

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