-
Notifications
You must be signed in to change notification settings - Fork 53
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
PUBLIC-1009 add better error handling when a staging area directory... #1604
Conversation
This means a user can now navigate back to a directory that does exist. |
Detailed notes on changes.
|
Code changes look great. |
Another issue was raised when uncovering a (current, in CI) bug listing any newly-added files. Easy to replicate, just upload a file, the import table will immediately show an error message. Since the error goes away if the file is removed (e.g. via globus), it is reasonable to assume it is in the server code which processes the file listing. The Narrative issue is that it shows an error message when the error is first triggered which is not displayed after the narrative is reloaded and the import tab revisited. I noticed, too, that the "500 Internal Server Error" error message displayed is not styled with red error colors (background or lettering). Also, if there is an error fetching the entries for a directory, it is debatable that the table, or at least the table paraphernalia ("Showing ...", previous/next buttons, search) controls should be displayed since they imply that there is something to be displayed or searched over, when in the case of a directory listing throwing an error, there is nothing to be done there (and if it is at the top level directory, nothing the user can do at all!) |
Yup, agreed.
Also agreed. That control is actually rendered by embedding it in the datatables call. I was avoiding removing that and fighting against the datatables rendering pipeline. But we can probably just fork how that render logic gets run. I was just trying to avoid the extra refactor. :) But you're right. It's worth the effort.
Good idea. It should be possible to parse the errors into something better than just a giant 500 Internal Server Error, which is just big and imposing. |
Should be some better error messaging here now, in line with our conversation. |
...doesn't exist.
Previously, it was a big red box that was only removable by refreshing the page.
Now, it should look something like this: