-
Notifications
You must be signed in to change notification settings - Fork 166
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
Narratives cannot display frequencies #1283
Comments
I've looked into this and the 🐛 arrived when we allowed multiple different datasets per narrative. When a narrative arrives, we call the function Any solution should unify the dataset-fetching code into a single function (either async fn or async generator), which both narratives and non-narratives use. Additionally, the cache structure, currently simply |
These changes were motivated by [#1283](#1283) which arose as we used different code paths for loading a dataset viz and a narrative. Here we represent each dataset by a `Dataset` object. This is used for stand alone datasets, each dataset in a tangletree, and each dataset in a narrative. Each dataset instance describes the various API endpoints of datafiles for each dataset, manages fetching of these datafiles and, where appropriate, can dispatch data to update redux state. This has been tested on various single datasets, tangle-trees, and narratives in this repo. Notably, this commit breaks narratives with multiple datasets; this will be fixed in a subsequent commit to reflect Eli's work in PR #1312.
Fixed in c190057 |
Narratives cannot display frequencies panels in Auspice 2.33.0. I believe this used to work in a previous version, but have not bisected to confirm. A test narrative showing this has been created on the bug-narratives-frequencies branch -- please base any fix on that branch!
How to reproduce
Steps to reproduce the current behavior:
get fetch
git checkout bug-narratives-frequencies
npm run get-data
auspice develop --narrativeDir narratives
Additional context
The frequencies sidecar JSON is not fetched when the narrative is loaded. When loading http://localhost:4000/ncov/global?d=tree,frequencies, the dataset the narrative is attempting to display and which correctly displays the frequencies when viewed by itself, the following
getDataset
requests are made:However when loading the narrative, only the first of these is made. Auspice should be making all 3 requests in narratives mode.
P.S. I highly suspect that narratives won't be able to colour by non-varying bases, as the
root-sequence
JSON is not fetched either! I haven't created a narrative to test this, but will do at some point.The text was updated successfully, but these errors were encountered: