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

Serialize statuses array for URL hash #2165

Merged
merged 1 commit into from
Jun 28, 2017
Merged

Conversation

daveFNbuck
Copy link
Contributor

@daveFNbuck daveFNbuck commented Jun 27, 2017

Description

When updating the status hash during tab switching, use JSON to stringify the status array so it works properly.

Motivation and Context

When switching tabs away from Task List and back with statuses selected, the url hash ends up with something like statuses=FAILED rather than statuses=%5B%22FAILED%22%5D, which is the json-serialized array. This causes a json parsing error when trying to deserialize the expected json.

Have you tested this? If so, how?

Switched back and forth between tabs with statuses selected. Before the change, this would always break the visualiser. After the change, it works as expected.

Not serializing the statuses array leads to a JSON parsing error when
we try to deserialize it.
@mention-bot
Copy link

@daveFNbuck, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nmb10, @riga and @patricksmith to be potential reviewers.

@Tarrasch Tarrasch merged commit 51374ec into spotify:master Jun 28, 2017
@Tarrasch
Copy link
Contributor

Thanks! :)

@daveFNbuck daveFNbuck deleted the status_hash_fix branch June 28, 2017 17:17
This was referenced Jun 29, 2022
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.

3 participants