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

Preserve graph options when clicking d3 nodes #2139

Merged
merged 1 commit into from
May 31, 2017
Merged

Conversation

daveFNbuck
Copy link
Contributor

Description

Just replace the taskId in the current url when clicking a d3 node rather than building a whole new options hash.

Motivation and Context

When clicking a d3 node, the new url was built up with a static set of options, clearing out things like hide done and invert. This means the graph would flip or gain lots of nodes when you click a link. In order to better preserve the options, we now simply change the taskId rather than building the full link.

Have you tested this? If so, how?

Ran locally and tried clicking links in a d3 graph to make sure things work as expected.

When clicking a d3 node, the new url was built up with a static set of
options, clearing out things like hide done and invert. This means the
graph would flip or gain lots of nodes when you click a link. In order
to better preserve the options, we now simply change the taskId in the
current URL.
@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
Copy link
Contributor

Great! :)

@Tarrasch Tarrasch merged commit d5c193b into spotify:master May 31, 2017
@daveFNbuck daveFNbuck deleted the d3_hash branch May 31, 2017 16:26
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