-
Notifications
You must be signed in to change notification settings - Fork 17
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
Improve simplified process tree #1174
Improve simplified process tree #1174
Conversation
@mikibonacci @superstar54 please test for duplicate nodes. I added a test, but not sure how reliable it is. |
Hi @edan-bainglass , thanks for the work. The test seems not reliable. I think the test needs to mock the |
I'll give it a try. I'm more concerned in the meantime not being able to resolve the compatibility issue with v2.3 |
a2955ad
to
c5eb8ff
Compare
@superstar54 @mikibonacci test improved and indeed shows that the flag is necessary and effective. |
39c6263
to
b5f0f09
Compare
b5f0f09
to
fdb971f
Compare
# With the flag in place, the monitor thread bails from adding | ||
# branches when the parent branch is presently doing so, leading | ||
# to only the adding of the single intended branch | ||
assert len(self.tree.trunk.branches) == 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code starts the threading first, then click in main. Thus, it can not guarantee that the main will run first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The monitor thread cannot add new branches to collapsed branches. Only after the main branch expands a parent branch and begins adding sub-branches does the monitor thread attempt to add sub-branches.
This was the root of the problem. Duplications happened when a monitor event happened shortly (and while) the user was expanding a parent node.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR does the following:
Future plan