-
Notifications
You must be signed in to change notification settings - Fork 161
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
Bugfix in Entropy panel when window resizes #1898
Conversation
The bug arose because window-resizes trigger a complete re-render of the entropy panel's SVG and this didn't correctly handle an edge case where the entropy data was stale (a concept introduced in #1879). For specific steps to reproduce see <#1895 (comment)> Closes #1895
Thanks @jameshadfield! I don't remember every resizing the window, that was definitely not a prerequisite of encountering the bug for me. It seems to me that there might be more cases where stale entropy panel can happen. So I'd be hesitant to consider the bug fix without further testing. How can I best help there? It's of course possible that resizing is just one of the things that trigger an underlying issue that has been fixed now. |
Maybe you can just broaden the PR description to state that resizing was one way that this bug was hit, but in my experience there are others. It seems that this fix here is general, improving null handling - the perf improvements resulted in bars now sometimes being null but this wasn't handled then. As Ivan said ok the issue, typescript might help here! |
Considering the code alone, this is definitely an improvement, so I'm not at all against merging, I'm very much for merging, I'm just hesitant to consider the bug unequivocally fixed by this. It likely is but I'd like to do more testing for an extended period of time in real life (on next.nextstrain.org). So we should probably merge, release, put on next as canary and then let it sit there for a while watching if anyone hits the whiteout. Then after say a week if no one hits it deploy to nextstrain.org |
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.
Approve with request to put this on next.nextstrain.org for a few days for testing for bug tonne fixed
@corneliusroemer it's possible to test PRs on downstream repos. I've added the You can try out the deployed test app at https://nextstrain-s-nextstrain-c6gsn5.herokuapp.com/ to see if you still run into the bug. |
Thanks @joverlee521. It'll be hard to use this as daily driver like next.nextstrain.org for things like Usher so probably won't work in practice (given the bug happened in ways that I can't reproduce exactly). The more I think about it the more confident I am that this is also the line of code that I hit. It's obviously a type error, no null handling. We should just merge this and put on next.nextstrain.org 😄 |
Agreed. I think there's a few things that will act synergistically here:
|
Thanks! I'll test it eagerly as soon as new Auspice is on next.nextstrain.org |
next.nextstrain.org has been updated: nextstrain/nextstrain.org#1069 |
The bug arose because window-resizes trigger a complete re-render of the entropy panel's SVG and this didn't correctly handle an edge case where the entropy data was stale (a concept introduced in #1879).
For specific steps to reproduce see #1895 (comment)
Closes #1895