Skip to content
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

Open
wetneb opened this issue Mar 7, 2024 · 5 comments
Open

Comments

@wetneb
Copy link
Sponsor Member

wetneb commented Mar 7, 2024

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.

@wetneb
Copy link
Sponsor Member Author

wetneb commented Mar 7, 2024

Duplicate of #96

@trnstlntk
Copy link
Contributor

Seems to happen on Wikimedia PAWS too. For some users. Not for me, it works fine when I try

See https://phabricator.wikimedia.org/project/view/1648/

wetneb added a commit to wetneb/OpenRefine that referenced this issue Apr 8, 2024
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.
@wetneb
Copy link
Sponsor Member Author

wetneb commented Apr 8, 2024

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…)
OpenRefine/OpenRefine#6514

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).

wetneb added a commit to OpenRefine/OpenRefine that referenced this issue Apr 9, 2024
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.
wetneb added a commit to OpenRefine/OpenRefine that referenced this issue Apr 10, 2024
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.
@sebastian-berlin-wmse
Copy link
Contributor

Duplicate of #96

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
Copy link
Sponsor Member Author

wetneb commented Sep 9, 2024

Let's close #96 which was about the bug itself, which is mitigated by the change on OpenRefine's side
We can keep #99 (this issue) for adding the additional safeguards in the commons extension itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants