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

Reload button should reload graph in grid configuration if that was what state it was in + other reload issues #600

Closed
mihirsamdarshi opened this issue May 14, 2018 · 5 comments

Comments

@mihirsamdarshi
Copy link
Collaborator

Manipulating graph manually during grid layout should change force graph layout button back to grid layout button

@kdahlquist kdahlquist changed the title Manipulating graph manually during grid layout should change force graph layout button back to grid layout button Reload button should reload graph in grid configuration if that was what state it was in May 17, 2018
@kdahlquist
Copy link
Collaborator

I altered the name for this issue a little based on discussion with @mihirsamdarshi and @johnllopez616. Currently the File > reload menu item reloads the current graph in the force graph layout, regardless of whether force graph or grid is selected.

We want to alter the meaning of this option so that if you click reload when the graph is in force graph, it reloads as force graph. If you click reload when the graph is in grid layout, it reloads it as a grid.

Changing this would mean that the original title for this issue is moot.

The value of this is that if a user has the graph in a grid layout and starts moving nodes around and then wants to get it back into the grid, there is no way to do this now without first going through the force graph layout (or re-opening the file).

@kdahlquist kdahlquist changed the title Reload button should reload graph in grid configuration if that was what state it was in Reload button should reload graph in grid configuration if that was what state it was in + other reload issues May 18, 2018
@kdahlquist
Copy link
Collaborator

As I review the Client Side Testing Document, I have found some other issues that have to do with this one and reloading the graph as force graph layout when it is unwanted. Each of these actions triggers a reload, which is interpreted as a reload to force graph, even when the graph is in a grid layout:

  • Changing the edge weight normalization factor (from sidebar or dropdown menu)
  • Resetting the edge weight normalization factor (from sidebar or dropdown menu)
  • Changing the gray edge threshold (from slider or dropdown menu)
  • Showing gray edges as dashed or reverting to solid lines (from sidebar or dropdown menu)

@dondi
Copy link
Owner

dondi commented May 18, 2018

This is a great example of an issue that would be easier to resolve when we have a unified model -> view -> controller cycle. Having all of these settings in a single grnState would allow the unified updateApp function to take all of them into consideration when determining how (or whether) to reload a graph.

@kdahlquist
Copy link
Collaborator

Yes, also, the Client Side Testing Document is also giving us a record of desired behaviors. I'll note that Enable/Disable node coloring occurs without triggering a reload; you can click and just see the colors appear/disappear.

@kdahlquist
Copy link
Collaborator

kdahlquist commented Feb 26, 2019

  • Reload button should reload graph in grid configuration if that was what state it was in
  • Changing the edge weight normalization factor (from sidebar or dropdown menu) with a grid layout should not trigger a reload to force graph
  • Resetting the edge weight normalization factor (from sidebar or dropdown menu) with a grid layout should not trigger a reload to force graph
  • Changing the gray edge threshold (from slider or dropdown menu) with a grid layout should not trigger a reload to force graph
  • Showing gray edges as dashed or reverting to solid lines (from sidebar or dropdown menu) with a grid layout should not trigger a reload to force graph
  • Manipulating graph manually during grid layout should change force graph layout button back to grid layout button

Since most of this is fixed in beta 3.1.12, I'm going to close this one and open an issue for the last item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants