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

DYN-4449 Undo in group casues weird visual artifacts #15067

Conversation

ivaylo-matov
Copy link
Contributor

@ivaylo-matov ivaylo-matov commented Mar 28, 2024

Purpose

Undo in group causes weird visual artifacts. On undo connectors will be visible even though the group that they are in is collapsed. I added a method that that is executed on Redrawn and evaluates whether both nodes associated with connector are collapsed, if so, collapses the connector itself.

DYN-4449-Fix

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
  • This PR contains no files larger than 50 MB

Release Notes

Connectors are only recorded in the Undo stack when they are connected. Consequently, if a group is collapsed and then moved, performing an Undo operation will not restore the connector to its state at the time the move was recorded. The new method evaluates whether both nodes associated with a connector are collapsed, if so, collapses the connector itself.

Reviewers

@dnenov
@reddyashish

FYIs

@Amoursol

connectors in groups remain collapsed on undo
@ivaylo-matov
Copy link
Contributor Author

Will check the fail tomorrow morning....

second PR attempt
Copy link

github-actions bot commented Mar 29, 2024

UI Smoke Tests

Test: success. 2 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests - net8.0

@ivaylo-matov
Copy link
Contributor Author

All looks okay now

@QilongTang QilongTang marked this pull request as ready for review March 29, 2024 15:04
/// Consequently, if a group is collapsed and then moved, performing an Undo operation will not restore
/// the connector to its state at the time the move was recorded.
/// </summary>
private void SetCollapsedByNodeViewModel()
Copy link
Member

Choose a reason for hiding this comment

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

it seems like you could write a unit test for the Redraw method that makes sure IsCollapsed is true when it should be.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay

Copy link
Contributor Author

Choose a reason for hiding this comment

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

please see the test included. hope that's okay.

@QilongTang QilongTang added this to the 3.1 milestone Apr 3, 2024
@QilongTang QilongTang changed the title DYN-4449 fixed DYN-4449 Undo in group casues weird visual artifacts Apr 3, 2024
@QilongTang QilongTang merged commit ee93174 into DynamoDS:master Apr 3, 2024
22 checks passed
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.

3 participants