-
Notifications
You must be signed in to change notification settings - Fork 0
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
Return nicer error message when all ranked abundance ranking values are 0 #22
Comments
Update. The error is different now. The user sees that the compute fails, and the rserve log reveals that it's the We could add a check on if all median=0 somewhere above, even before the ranking occurs, and then return the message and display that for the user. |
So each compute can return a The question becomes, where does this information go in the viz?? We'd ideally keep it brief, but it's possible it could get longer.... Maybe an element only appears when there is a message? Some little warning thing like "hey the compute sent you a message, please read!" |
i agree we need a nicer error, but idk if the R package is the place to generate it? Typically, data gets streamed from R when a compute succeeds. I dont think in this case we want to return a 200. so this might have to be the job of the compute plugin somehow. we should talk to @ryanrdoherty and @Foxcapades about it, maybe @dmfalke as well. (side note: we should double check there isnt a duplicate issue somewhere, i feel like i saw this somewhere else as well edit: i remember it bc i made the dup lol VEuPathDB/EdaNewIssues#441) |
@d-callan why wouldn't we want to return a 200? Nothing failed, just no data will come back |
Bc the request didn't succeed? |
I feel like if this is a possibility for a particular compute, then that compute plugin should produce a JSON stats file that contains something like:
The visualizations that depend on that compute can hit the stats endpoint up front, check the status, and return whatever response is appropriate to the client (400? 422?) along with the compute message or a custom message. |
Found when qa-ing the beta site. HMP WGS, ranked abundance box, ranking method median, data Normalized number of ...
The abundances are so low in this collection that i think all of the medians = 0. We need to return a nicer error message to pass to the client, and include a suggestion of what to do (rank by max, for example)
Edit
This will also require
The text was updated successfully, but these errors were encountered: