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

Fix state restoration when going backward #1314 #1319

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

jacobtylerwalls
Copy link
Member

@jacobtylerwalls jacobtylerwalls commented Sep 19, 2023

Closes #1314

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.

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.
@jacobtylerwalls jacobtylerwalls marked this pull request as ready for review September 20, 2023 19:01
Copy link
Contributor

@njkim njkim left a 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)

@jacobtylerwalls jacobtylerwalls linked an issue Sep 21, 2023 that may be closed by this pull request
@jacobtylerwalls
Copy link
Member Author

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.

@njkim
Copy link
Contributor

njkim commented Sep 21, 2023

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
So I am going to take look at #1232 and merge this one.

Copy link
Contributor

@njkim njkim left a 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

@njkim njkim merged commit e7489df into dev/1.1.x Sep 21, 2023
1 check passed
@jacobtylerwalls jacobtylerwalls deleted the 1314-start-value-missing branch September 21, 2023 16:31
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.

Update Collection Workflow back from summary error
2 participants