Fuseki UI broken for "edit" tab when number of graphs is large
Version
4.10.0
What happened?
Reported on mailing list: https://lists.apache.org/thread/zdtjtl3qlypl7d713z7bd1117kfjq149
The Fuseki UI is broken when we work on a large number of graphs and open the "edit" tab, see
You can reproduce it with
for i in {1..100..1}; do echo "<http://example.org/s> <http://example.org/p> <http://example.org/o> <http://example.org/g$i> ." >> /tmp/data.nq; done
$JENA_HOME/bin/tdb2.tdbloader --loc /tmp/tdb2/debug /tmp/data.nq
$FUSEKI_HOME/fuseki-server --loc /tmp/tdb2/debug --port 3333 /ds
Relevant output and stacktrace
No response
Are you interested in making a pull request?
No
Ah, yo umean because of how the pagination component is being rendered, @LorenzBuehmann ? Should be easy to fix if that's the problem.
Yes, I mean there are page numbers missing for sure when having hundreds of graph - note, I do not use the "edit" tab at all in Fuseki. I just reported the issue. Not sure if that is the real problem of the mailing list thread - but they user said "was working before" - not that I know which version this statement refers to
I also don't use that page, unless when I want to test some quick changes in small graphs.
Will fix that pagination as that is definitely broken. Once that's fixed I will look at the ASF lists archive and reply to that thread. Thanks @LorenzBuehmann !
Synced code, updated IDE's (phew, that took a while), and reproduced with the example from issue description (thanks!).
Still need to write tests, but here's a preview.
And while navigating through the rest of the UI, I noticed when clicking on the Dataset size count button, in the information about the dataset, it also created a really long list of graphs and count of triples per graph.
I will see whether we need/can add a scrollable area, or pagination here too (probably the latter, less surprise to users, more uniform...).
Added the same table to the info view now:
Now just missing the unit/e2e tests, to be completed next spare time window :crossed_swords: :muscle: