Repository navigation
fix(studio): weigh the whole graph before laying it out - #1094
Merged
Merged
Conversation
The Studio graph screen asked before drawing a graph past its size limit, but it weighed only the part the filters show. The layout places every node and routes every edge of the graph, the hidden ones too, and the vocabulary terms are hidden at first. A graph with few nodes shown and a great many edges to vocabulary terms was laid out without asking, holding the tab and its memory for the whole graph. The screen now weighs the whole graph against the limit, so past it nothing is laid out until the user picks Draw anyway. That choice holds for the graph it was made for alone: another graph, read later on the same screen, is weighed again. The prompt names the whole graph's counts, and no longer offers the filters, which do not make the layout smaller. docs/studio.md says so. Refs: GHSA-7ghc-46r3-29gg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The Studio graph screen asked before drawing a graph past its size limit, but it weighed only the part the filters show. The layout places every node and routes every edge, hidden ones too, and vocabulary terms are hidden at first. A graph with few nodes shown and a great many edges to vocabulary terms was laid out without asking, holding the tab and its memory for the whole graph.
docs/studio.mdsays so.Refs: GHSA-7ghc-46r3-29gg