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

Tree rank cannot be deleted in some cases after changing a rank's rankId #5364

Open
sharadsw opened this issue Nov 1, 2024 · 0 comments
Open
Labels
1 - Bug Incorrect behavior of the product 2 - Trees Issues that are related to the tree system and related functionalities.

Comments

@sharadsw
Copy link
Contributor

sharadsw commented Nov 1, 2024

Potentially related to #5025, found in #5345

Describe the bug

From @combs-a

Did find a strange behavior with removing in that if you change the rank of a TreeDefItem, then you can no longer remove it from the tree, but not sure how to recreate it--I tested the same steps on the Taxon tree and tried to recreate it on the Tectonic Unit tree, but it worked as expected both times (still was able to delete the rank).

It says that it cannot be deleted because it's referenced by another tree rank, but it doesn't actually redirect to the tree rank when I click on it--it goes to the tree definition form.

image

Link to the tree with the undeleteable rank: https://chadrontest2migration5345-issue-5333.test.specifysystems.org/specify/tree/tectonicunit/?conformation=%7E-

Steps to reproduce

  1. Change rankId of a tree rank smaller than its parent's rankId
  2. The page will refresh
  3. Try to delete the rank you just modified
  4. Delete blocker says rank is referenced by another tree and cannot be deleted

Expected behavior
Rank should get deleted

@sharadsw sharadsw added the 1 - Bug Incorrect behavior of the product label Nov 1, 2024
@sharadsw sharadsw changed the title Tree rank cannot be deleted in some cases Tree rank cannot be deleted in some cases after changing a rank's rankId Nov 1, 2024
@sharadsw sharadsw added the 2 - Trees Issues that are related to the tree system and related functionalities. label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product 2 - Trees Issues that are related to the tree system and related functionalities.
Projects
None yet
Development

No branches or pull requests

1 participant