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(topology): merge topology elements on update (backport #1560) #1561

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Feb 5, 2025

Welcome to Cryostat! 👋

Before contributing, make sure you have:

  • Read the contributing guidelines
  • Linked a relevant issue which this PR resolves
  • Linked any other relevant issues, PR's, or documentation, if any
  • Resolved all conflicts, if any
  • Rebased your branch PR on top of the latest upstream main branch
  • Attached at least one of the following labels to the PR: [chore, ci, docs, feat, fix, test]
  • Signed all commits using a GPG signature

To recreate commits with GPG signature git fetch upstream && git rebase --force --gpg-sign upstream/main


Fixes: #122

Description of the change:

This change switches the boolean in visualization.fromModel() in TopologyGraphView from false to true, in-order to "merge" the topology elements on update instead of removing and rebuilding them.

Motivation for the change:

What seems to be the issue is that when the boolean is false the visualization clears out all the old elements before re-creating them. This results in the error because it ends up setting the controller to undefined, but during the process of destroying the colalayout there is a check for that controller.

With merge set to true the old elements are cleaned up after the new elements are created, and we don't run into this issue where the controller doesn't exist.

Before:
errors

After:
no errors


This is an automatic backport of pull request #1560 done by [Mergify](https://mergify.com).

* fix(topology): merge topology elements on update

* initial model

---------

Co-authored-by: Thuan Vo <[email protected]>
(cherry picked from commit ffa214f)
@mergify mergify bot assigned aptmac Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

Hi @mergify[bot]! Add at least one of the required labels to this PR

Required labels are : chore,ci,cleanup,docs,feat,fix,perf,refactor,style,test

@andrewazores andrewazores merged commit 3e8e766 into cryostat-v4.0 Feb 5, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants