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

Disallow move and link to child object #5620

Closed
2 of 7 tasks
akhenry opened this issue Aug 5, 2022 · 2 comments · Fixed by #5635
Closed
2 of 7 tasks

Disallow move and link to child object #5620

akhenry opened this issue Aug 5, 2022 · 2 comments · Fixed by #5635
Labels
performance impacts or improves performance severity:medium type:bug
Milestone

Comments

@akhenry
Copy link
Contributor

akhenry commented Aug 5, 2022

Summary

Currently the move and link actions allow an object to be moved or linked to a child of itself. This creates a circular reference. A circular link is actually recoverable, but a circular move is not and will cause the UI to freeze. In any case, neither should be allowed.

Expected vs Current Behavior

User should not be able to select a child folder as a target location for a move or link action.

Steps to Reproduce

  1. Create a folder called Parent Folder
  2. Create a folder called Child Folder as a child of the Parent Folder
  3. Create a folder called Grandchild Folder as a child of the Child Folder
  4. Context click on the Parent Folder and select "move"
  5. Select Grandchild Folder as the new location
  6. Observe that the UI hangs

Environment

  • Open MCT Version: 2.0.7
  • Deployment Type: all

Impact Check List

  • Data loss or misrepresented data?
  • Regression? Did this used to work or has it always been broken?
  • Is there a workaround available?
  • Does this impact a critical component?
  • Is this just a visual bug with no functional impact?
  • Does this block the execution of e2e tests?
  • Does this have an impact on Performance?

Additional Information

@scottbell
Copy link
Contributor

scottbell commented Aug 9, 2022

I think with the latest fix for infinite loops, the UI is no longer freezing, but the folder does disappear when creating the cyclic reference (as the folder is no longer reachable from the root tree object):

Screen.Recording.2022-08-09.at.1.06.51.PM.mov

I'll next try to prevent move/link actions from selecting descendants as targets.

@scottbell scottbell linked a pull request Aug 9, 2022 that will close this issue
15 tasks
@unlikelyzero unlikelyzero added the performance impacts or improves performance label Aug 10, 2022
@jvigliotta
Copy link
Contributor

Verified Fixed - Testathon 8/22

I'm unable to select a descendent for either move or link. Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance impacts or improves performance severity:medium type:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants