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

Cache is not cleared when switching to different Taxon Trees #5276

Closed
pashiav opened this issue Sep 16, 2024 · 0 comments · Fixed by #5282
Closed

Cache is not cleared when switching to different Taxon Trees #5276

pashiav opened this issue Sep 16, 2024 · 0 comments · Fixed by #5282
Assignees
Labels
1 - Bug Incorrect behavior of the product 2 - Trees Issues that are related to the tree system and related functionalities.
Milestone

Comments

@pashiav
Copy link
Contributor

pashiav commented Sep 16, 2024

Describe the bug
Switching from one Taxon tree to another, then using any button functionality in the top right corner, will display/interact with the selected node from the previous tree, and not the current tree's nodes.

To Reproduce

  1. Go to a Taxon Tree with multiple trees (https://kufish212-edge.test.specifysystems.org/specify/tree/taxon/)
  2. Select any node
  3. Use the drop down menu to switch from the current tree to another tree
  4. Click on the Pencil or Magnifying Glass buttons on the top right
  5. See that the forms are for the previous tree's node, not the current tree.

Expected behavior
Buttons used to interact with nodes in Trees should only interact with the current tree's nodes. Cache should be cleared when switching to a different tree.

Evidence
See that test's root node is Life -> Taxonomy's root node is Fish, but when you click Edit after switching to Taxonomy, it shows test's root node Life in the form. It should show Fish or the buttons should be Read-only.

Screen.Recording.2024-09-16.at.2.22.36.PM.mov
@pashiav pashiav added 1 - Bug Incorrect behavior of the product 2 - Trees Issues that are related to the tree system and related functionalities. labels Sep 16, 2024
@pashiav pashiav changed the title Cached is not cleared when switching to different Taxon Trees Cache is not cleared when switching to different Taxon Trees Sep 16, 2024
@CarolineDenis CarolineDenis added this to the 7.9.8 milestone Sep 16, 2024
@sharadsw sharadsw self-assigned this Sep 20, 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

Successfully merging a pull request may close this issue.

3 participants