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

destroy old graph when new model has a new graph id #4882

Merged
merged 1 commit into from Apr 2, 2020

Conversation

christianvogt
Copy link
Contributor

Fixes:
Fixes: https://issues.redhat.com/browse/ODC-3451

Analysis / Root cause:
The topology Visualization never cleaned up the old graph element reference if a new model was set with the graph having a new ID. Since IDs define element object identify in a visualization, a new graph element is created with the new ID. Therefore the old graph is no longer needed however it wasn't properly disposed.

Solution Description:
Check if model contains a new graph ID and if so dispose of the old graph.
Removed the key from within PipelineTemplate which was a temporary fix.
Added test case for this

Screen shots / Gifs for design review:
update-pipeline-viz

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@openshift-ci-robot openshift-ci-robot added component/dev-console Related to dev-console approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Apr 1, 2020
@jeff-phillips-18
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 1, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christianvogt, jeff-phillips-18

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@andrewballantyne
Copy link
Contributor

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 15feee7 into openshift:master Apr 2, 2020
@spadgett spadgett added this to the v4.5 milestone Apr 2, 2020
@christianvogt christianvogt deleted the vis-graph branch August 20, 2020 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/dev-console Related to dev-console lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants