-
Notifications
You must be signed in to change notification settings - Fork 4
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
Improve feedback when getting files by ID #51
Comments
@touwwouter |
If you mean an error page different from the one referenced above, i.e. a page that hides the traceback and path and instead simply tells the user the file does not exist and provides a link to WHY_NOT, I like the idea! |
The question is whether similar error messages can occur also when files are retrieved otherwise. If that is not the case, this issue can be closed and solved in #63. |
This issue is a specific instance of the more general issue #63. This can only happen when looking for hssp files and dssp files locally. We'd need a custom exception so we can catch it and redirect to the specialised error page. |
It is not a specific instance of #63 yet, since we don't check if the file exist during form validation and do not display red text there. We can make it one, provided similar errors do not occur after submission. |
It doesn't matter where the validation occurs. My point was, #63 asks for a page to explain all errors, and this issue asks for a better error page for a specific error. In any case, using the form validation for this would be too soon. What the user provides (an id) is actually correct, so it should validate fine. The problem is that the data behind that id (for example, a HSSP file) doesn't exist, and WHY_NOT knows (hopefully) why. The fix is simple: replace the |
Does WHY_NOT have an API? That'd be much nicer than a link. |
Ah, ok 'the error page' refers to the new error page (like the title says ;-)). Then, obviously, you are right. Obviously, using form validation for this is wrong. The fix you propose sounds good. I don't think WHY_NOT has an API. |
What message should I give to the user when the file hasn't been found? Something like:
|
We may be forced to use the validator anyway because celery tasks fail when an exception is raised, and because the initial return value is a job id for which the status can be retrieved. The page itself updates via javascript, so using a validator would in this case be a lot simpler. |
We know the path to hssp and dssp files, so we should provide more user-friendly feedback instead of showing a RunTimeError
We should also provide links to WHY_NOT
FMT_WHY_NOT_SEARCH_URL = "http://www.cmbi.ru.nl/WHY_NOT2/search/pdbid/{}"
The text was updated successfully, but these errors were encountered: