Advanced search page is slow/glitchy
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
What steps does it take to reproduce the issue? The advanced search page is slow to load and becomes unresponsive at times. This appears to be due to loading of the ~8K language entries. (The edit metadata page is slowed by this as well, but not as much due to a different widget (I assume).
A relatively simple work-around is to change the language field https://github.com/IQSS/dataverse/blob/3aea1482dcc2f97741ba79b2f4b93b069b425871/scripts/api/data/metadatablocks/citation.tsv#L40
to have advancedSearchField=false.
It might also not be too hard to switch to using the same widget as for metadata ed
Presumably any more complete fix will wait for the SPA.
-
When does this issue occur?
-
Which page(s) does it occurs on?
https://demo.dataverse.org/dataverse/demo/search -
What happens?
-
To whom does it occur (all users, curators, superusers)?
-
What did you expect to happen?
Which version of Dataverse are you using?
6.4, develop
Any related open or closed issues to this bug report?
#10762
Screenshots:
No matter the issue, screenshots are always welcome.
To add a screenshot, please use one of the following formats and/or methods described here:
Are you thinking about creating a pull request for this issue?
Help is always welcome, is this bug something you or your organization plan to fix?
Not sure. QDR is using the work-around for now. I'd be happy to submit a PR with that change in the citation block if the default should change.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the slowdown at the advanced search page on demo.dataverse.org, then inspect the citation.tsv language field linked in the issue and the related issue #10762. Compare the advanced search behavior with the edit metadata page's widget. Done means the page no longer becomes slow or unresponsive, with the chosen fix documented and verified against the reported workaround.
Written by the indexing model from the issue text.
Assessment
- Domain
- performance, search, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100