-
Notifications
You must be signed in to change notification settings - Fork 162
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
Sidecars don't work when changing dataset via the sidebar (under certain conditions) #1855
Comments
I can reproduce locally by changing the dataset via one of the dropdowns that is not the last one, e.g. changing from http://localhost:4000/flu/seasonal/h1n1pdm/ha/12y to na via sidebar triggers the warning. |
This bug is only observed when using the Auspice server (i.e. not within nextstrain.org). Steps to reproduce:
|
Notes from a briefly looking into this (have to jump to other things now): In the above example, we use an incomplete URL to fetch the tip frequencies:
(note the missing "2y" from the path). The auspice server redirects to There seem to be two potential solutions: have the server redirect and respect the The server behaves the same way for root-sequence & measurements URLs, so these should also be tested. |
Nextstrain org redirect flow:
Auspice (localhost) is:
|
When changing between two datasets via the sidebar dropdown UI, each with a tip frequencies sidecar, we saw someone get a warning banner indicating a failure to normalise frequencies and the sidebar option is not available. The relevant code for the sidebar is:
auspice/src/components/controls/frequency-normalization.js
Lines 22 to 32 in de94b72
and
checkIfNormalizableFromRawData
seems to always returntrue
(!)auspice/src/util/processFrequencies.js
Lines 62 to 63 in de94b72
implying a race condition around
this.props.frequencies.loaded && this.props.tree.loaded
.Reloading the page works as expected.
I don't have any reproducible datasets (have asked for them), and note that changing https://nextstrain.org/seasonal-flu/h3n2/ha/3y to 2y (via sidebar) works as expected. Perhaps it's dataset specific (hard to understand after skimming the relevant code) or using an old version of auspice (normalisation checking was removed in 7b9495b in 2001)
The text was updated successfully, but these errors were encountered: