IQSS / IQSS/dataverse

Dataset's "Description" metadata isn't always truncated and link to truncate text disappears after clicking Tree view

Open
#8,628 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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?

  • When does this issue occur?

    • After saving a dataset that has both:
      • Text in the citation metatablock's Description field that's long enough that the page truncates the text and shows the "Read full Description [+]" link and
      • Files in a directory structure, which causes the page to display the "Change View" buttons in the Files tab
    • When toggling between the "Table" view and the "Tree" view of files in a dataset that also has text in the citation metatablock's Description field that's long enough that the page truncates the text and shows the "Read full Description [+]" link
  • Which page(s) does it occurs on?

    • The dataset page, when viewing a draft or published dataset version
  • What happens?

    • The Description metadata is shown in an uncollapsed state, even when the text was collapsed before the file view was changed (to the "Table" view or to the "Tree" view). In some cases, the link to collapse the text doesn't appear.
  • To whom does it occur (all users, curators, superusers)?

    • All users
  • What did you expect to happen?

    • After the dataset version is saved, the Description metadata is shown in a collapsed state, similar to how the Description metadata is shown in a collapsed state after people save datasets that do not have files in a directory structure
    • When users switch between the "Table" view and the "Tree" view, the collapse/uncollapse state of the Description metadata isn't changed, similar to how the collapse/uncollapse state of the Description metadata isn't changed when people click on the "Metadata", "Terms", and "Versions" tabs.

Which version of Dataverse are you using?
v6.2 and earlier versions

Any related open or closed issues to this bug report?
None I could find

Screenshots:

Screenshot showing some parts of the dataset page I mentioned:

Screen Shot 2022-04-20 at 1 28 35 PM

We can experience the bug by looking at the dataset at https://doi.org/10.7910/DVN/RMAGSH. The Description text is collapsed/truncated. But when you click on the Tree view, the Description text is no longer truncated and the link to truncate the Description text isn't on the page.

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 on the dataset page for a draft or published version, using the reproduction steps to create a long Description and directory-structured files. Toggle between Table and Tree views and compare the Description's collapsed state and truncation link with the Metadata, Terms, and Versions tabs. Done means saving and changing file views preserve the expected collapsed or expanded state for all users.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.