Skip to content

[DYN-3981] Clicking on the output port of a group crashes dynamo#12008

Merged
QilongTang merged 1 commit intoDynamoDS:UIRefreshGroupImprovementsfrom
SHKnudsen:DYN-3981-Clicking-on-the-output-port-of-a-group-crashes-dynamo
Sep 7, 2021
Merged

[DYN-3981] Clicking on the output port of a group crashes dynamo#12008
QilongTang merged 1 commit intoDynamoDS:UIRefreshGroupImprovementsfrom
SHKnudsen:DYN-3981-Clicking-on-the-output-port-of-a-group-crashes-dynamo

Conversation

@SHKnudsen
Copy link
Contributor

Purpose

This PR handles DYN-3981.

The issue here was that the creating a ProxyPortModel will no currently work as the proxyModel won't be a part of the nodeModels port collections and therefore it wont be able to return a valid port index, which is what was causing the crash.

The solution, for now, was to remove the ProxyPortModel creation and simply pass the PortModel to the ProxyPortViewModel instead.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Reviewers

@QilongTang

@SHKnudsen SHKnudsen force-pushed the DYN-3981-Clicking-on-the-output-port-of-a-group-crashes-dynamo branch from f1ea79b to 4a4d14f Compare September 2, 2021 15:41
@SHKnudsen SHKnudsen force-pushed the DYN-3981-Clicking-on-the-output-port-of-a-group-crashes-dynamo branch from 4a4d14f to ee743f0 Compare September 3, 2021 15:49
@QilongTang
Copy link
Contributor

@QilongTang QilongTang merged commit 10512ab into DynamoDS:UIRefreshGroupImprovements Sep 7, 2021
QilongTang added a commit that referenced this pull request Sep 8, 2021
* Group improvements to the graph view (#11912)

* initial commit

* wip

* clean up

* remove leftovers

* UndoRedo behaviour + grouped groups cut out + general fixes

* update images

* fix CopyPaste + few minor bugs

* minor clean ups

* Group improvements unit tests (#29)

* WIP

* view model tests

* initial commit

* wip

* clean up

* remove leftovers

* UndoRedo behaviour + grouped groups cut out + general fixes

* update images

* fix CopyPaste + few minor bugs

* minor clean ups

* Update SerializationTests.cs

* Update SerializationTests.cs

* comment updates

* comment updates

* fix GetOutputPorts errors

* fix serialization

* Update WorkspaceModel.cs

* remove grid style (not needed anymore)

* Remove BelongsToGroup property from ModelBase

* Update AnnotationViewModel.cs

* fix setting the graph to have unsaved changes on graph open

* disable drag and drop on collapsed groups

* fix spelling mistake

* Node redesign timeouts (#11986)

* Code Cleanup

* Call Dispose() on ConnectorAnchorViewModel

* unsub collection change

* formatting
fix broken path to pin icon

* revert schema change

* revert schema change in serialization as well

* actually dispose annotationviewmodels

Co-authored-by: Aaron (Qilong) <[email protected]>
Co-authored-by: michael kirschner <[email protected]>

* [DYN-3975] Fix non clickable textboxes (#12007)

* Fix non clickable textboxes

* use nameof

* Update AnnotationViewTests.cs

* Change output port background (#12017)

* SelectAll after node has been dragged into group (#12010)

* Remove ProxyPortModel creation (#12008)

* Update AnnotationView.xaml (#12022)

* code clean up

Co-authored-by: Sylvester Knudsen <[email protected]>
Co-authored-by: Michael Kirschner <[email protected]>
Co-authored-by: michael kirschner <[email protected]>
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.

2 participants