-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make sure thumbnails can never block the rendering of the whole grid #99
Comments
Duplicate of #96 |
Seems to happen on Wikimedia PAWS too. For some users. Not for me, it works fine when I try |
This will let the next cell renderers attempt to render the cell instead of aborting the rendering of the entire grid. For OpenRefine/CommonsExtension#99.
This issue would still be worth solving in the Commons extension but to mitigate the problem, I am proposing a change in OpenRefine to avoid the problem from blocking the rendering of the whole grid (which I should have thought about when I introduced the extension point…) Hopefully we can include this in 3.8, meaning that people would be able to use the existing Commons extension with 3.8 and it wouldn't crash like that (instead, certain cells wouldn't be rendered as thumbnails but OpenRefine would still remain usable). |
This will let the next cell renderers attempt to render the cell instead of aborting the rendering of the entire grid. For OpenRefine/CommonsExtension#99.
This will let the next cell renderers attempt to render the cell instead of aborting the rendering of the entire grid. For OpenRefine/CommonsExtension#99.
Shouldn't either issue be closed in that case? Not sure which one since this one is referenced in other places, but the other has more discussion. |
@wetneb Carried out below test and also reviewed the thumbnail rendering code and it is handling failures. Let me know if there is a different test case for this issue.
|
Apparently, one of the errors that can happen is this:
(see this comment). This is one of the failures the current code doesn't handle itself. So it would be worth checking if the reconciliation service is well defined before accessing its |
In some circumstances the code that renders thumbnails into cells can fail and that will abort the rendering of the entire grid.
See this forum post for instance: https://forum.openrefine.org/t/openrefine-3-7-9-released/1259/9?u=antonin_d
We should make sure that any exception thrown in our cell renderer is caught appropriately and a fallback is used, so that the rest of the grid is still rendered.
This safety mechanism should also be implemented on OpenRefine's side of the extension point.
The text was updated successfully, but these errors were encountered: