Closed eboileau closed 9 months ago
Re async
, check how axios does it e.g.
// Want to use async/await? Add the `async` keyword to your outer function/method.
async function getUser() {
try {
const response = await axios.get('/user?ID=12345');
console.log(response);
} catch (error) {
console.error(error);
}
}
For the upload, we opted for a quick solution: ad hoc importer for BED6/11/12, read in file for each query, return as records (see also #47 ).
In the longer-term, we need something more robust: add another DB with modified models for Data
and Dataset
, customize importer with Data
and Dataset
models as arguments, try/except load EUF, BED6/11 (allow/fill missing columns), clear /tmp files after DB transaction, etc (same logic would probably apply for uploads for logged-in users).
Long-term/other moved to separate existing/issues.
Aims/objectives.
A base Compare view is implemented. This issue tracks more todos, questions, etc. as we're integrating server-side into the app.
A clear and concise description of todo items.
Compare View tasks
Functionality
doesn't seem like the best way to handle this. There are too many options, I don't know what is best, besides I haven't managed to make all of them work e.g. async (in combination with
Suspense
, which is currently still an experimental feature), async components, etc. Maybe something like<child-component @vnodeMounted="doSomething" />
would work? There are many resources, but none is definitely useful... check also Better support for top-level await in . This might be the best solution: useAsyncState from VueUse.watch
correctly, and there is surely a way to do that smartly...v-model
? Note that props are immutable, and that's really what we have here. How to handle emits from Step I and II without boilerplate?chrom
field.Bug/Questions
.bed,.bedrmod
, but nevertheless it is recognized in sever-side asapplication/vnd.realvnc.bed
. Does this matter?Styling
Skeleton not really working, maybe this is only compatible with loading state (lazy) ??? - leave out for now.