Fix same node columns with different parents#25
Open
thisduck wants to merge 4 commits intoSamSaffron:masterfrom
Open
Fix same node columns with different parents#25thisduck wants to merge 4 commits intoSamSaffron:masterfrom
thisduck wants to merge 4 commits intoSamSaffron:masterfrom
Conversation
In the previous case, 4 is rendered as a child of 1. Except that 4 has a width of 2 and 1 has a width of 1. The child shouldn't be wider than the parent. The correct case is that there should be two nodes for 4 of width 1 each. The first node is a child of 1 and the second one is a child of 5.
but the parents are shared.
…de_with_different_parents
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.
Hey @SamSaffron,
Opening a different pull request for this issue. I'll be merging it into #24 soon.
The case is when a node is wider than it's parent. This happens when both method1 and method2 call method3. If method1 is 3 samples and method2 is 2 samples, method3 appears as a node with 5 samples.
method3 should appear as two nodes, first with 3 samples and as a child of method1. And then with 2 samples and as a child of method2.
This PR fixes that scenario. I modified the tests and added a new one to cover a slightly different case.
I had originally fixed this in the javascript as part of #24, but for very large datasets (over 50MB) the javascript crashes because it has to modify the processed data. It's much faster to do on the ruby side. Creating a PR off of master to isolate the issue.