IQSS / IQSS/dataverse

Advanced search page is slow/glitchy

Open
#11,223 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

GDCC: QDR Type: Bug
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.

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.