Open seveibar opened 4 years ago
Let's just not use array returns:
// BAD
const [loadingInterface, interface] = useInterface(udtRef)
// GOOD
const {loadingInterface, interface} = useInterface(udtRef)
I think useSampleSummary
should be another method that returns a clone of samples with less information, such that grid views can be populated, e.g.
const {loadingSampleSummary, sampleSummary} = useSampleSummary()
// returns: [
// { color: "#ff0000", hasAnnotation: false },
// ...
// ]
Using udtRef
everywhere (which btw, since the refactoring should be datasetRef) is unnecessary since there is
only ever one dataset loaded. So just nix it and have it provided by context or whatever.
const { loadingDataset, dataset, datasetLoadingProgress } = useFullDataset()
// loads ALL samples into dataset, this would be used before downloading
Acknowledgements
Motivation
Overview
P1: Support URL Protocols requiring authentication
Support datasets with S3 URIs and attempt to authenticate and get a usable https/http URL.
P2: Support Custom Loading Mechanism with new UDT Reference File Style
P3: Support Asynchronous Retrieval of UDT Data