Open arlin opened 6 years ago
@LunaSare what should I display in portal? Can you provide an understandable message so I will put it in the portal?
{"message": "Error: 'results'"}
This is what I got from DateLife scaling service for Brian's sample tree in #335 .
For the first error, something like "There is not enough information to scale this tree with DateLife" Let me check what's generating the second error...
@LunaSare
I'm sorry @ducvan0212, it took my a long time to debug this one. But we found the source of error. It should be working now.
Answering your original question, the most common case in which we're not gonna be able to obtain a chronogram with median or sdm is: "There is not enough time information in databases to get a summary chronogram for this set of taxa." However, this is a long message and there could be other types of errors. So I think the best option will be to put a more general and short message, to simply indicate that these trees are not available, such as "Unavailable", or simply gray out those options any time DateLife throws an error.
What do you think @bomeara?
Anyway, I made the message display as a tooltip. You can check it out from dev server.
See #335 for examples of lists that give large trees of about 500 tips. In both cases we get an error from DateLife below.
Detect this error and provide an informative error message to the user.