-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix state restoration when going backward #1314 #1319
Conversation
Restoring the state of the selected values in the sidebar expected there to be values in targetResources. If this is a backwards navigation, there are no targetResources, and so restoring state from by starting from startValue and sprinkling in stuff from targetResources will fail. Need to sprinkle in stuff from value(), hence value() needs to be a real obj, not a resource id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The step itself seems to be working well as described. But the step does not save the collection consistently. At some point, it stops working, although the step is showing the user selection correctly.
@jacobtylerwalls Is this issue a part of another ticket? (in that case this can be merged)
Hey @njkim I'm not certain, but I'm happy to look into it. Do you have a set of steps that reproduces the issue for you? Feel free to take a short video if that's easier. |
@jacobtylerwalls It looks I am seeing is similar to this issue #1232 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as described.
The remaining issue will be addressed in a separate ticket, #1232
Closes #1314
self.value()
is shaped like an array of resources rather than of resource ids.This is because for state restoration to work when going backward, we can't rely on all the needed items for the selected sidebar existing in the search results--the user hasn't done a search in this case! What was happening was that the selected resources weren't appearing in the sidebar.
Testing instructions:
Test adding and deleting physical things to projects, including navigating backward. Check sidebar/UI agrees with reality. Check highlighting.