Publish Dataset button displays a dropdown arrow when only one action is available
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- html, java, javascript
Research direction
Start with src/main/webapp/dataset.xhtml and compare the Publish Dataset button's rendering condition with the Dataverse 6.9 template linked in the issue. Reproduce the case where Publish is the only available action and check that the button has no dropdown arrow while still opening the confirmation dialog; then verify the arrow remains when additional actions are available.
Written by the indexing model from the issue text.
Description
What steps does it take to reproduce the issue?
-
When does this issue occur?
- Open an unpublished draft dataset in Dataverse 6.12.
- Ensure that the user has permission to publish the dataset.
- Locate the Publish Dataset button.
- Observe the dropdown arrow next to the button label.
- Click the button.
-
Which page(s) does it occurs on?
The dataset landing page (dataset.xhtml). -
What happens?
The Publish Dataset button displays a dropdown arrow even when Publish is the only available action.
Clicking the button directly opens the Publish confirmation dialog rather than displaying a dropdown menu.
The rendered HTML includes , but the button does not have the dropdown-toggle class or data-toggle="dropdown" attribute.
Comparing the upstream dataset.xhtml templates reveals a change in the condition controlling the arrow.
Dataverse 6.9:
jsf:rendered="#{(showSubmitForReviewLink or showReturnToAuthorLink) and showPublishLink}"
Dataverse 6.12:jsf:rendered="#{(showSubmitForReviewLink or showReturnToAuthorLink or showPublishLink)}"
In 6.12, the arrow is displayed whenever showPublishLink is true, even if no additional actions are available. -
To whom does it occur (all users, curators, superusers)?
Users with permission to publish a dataset when Publish is the only available action. The issue was observed with an account authorized to publish datasets. -
What did you expect to happen?
The Publish Dataset button should display a dropdown arrow only when multiple actions are available.
When Publish is the only available action, the button should appear without a dropdown arrow and continue opening the Publish confirmation dialog directly.
Which version of Dataverse are you using?
v. 6.12.1 build master-bddc062
Any related open or closed issues to this bug report?
Relevant source files:
Dataverse 6.11 – dataset.xhtml
Dataverse 6.12 – dataset.xhtml
Screenshots:
6.8:
6.12:
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 571
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 11
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from IQSS/dataverse
-
API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collectionPossibly taken @vera claimed this 1 day ago. OpenType: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
XLSX ingest fails when first worksheet row has no spans attributePossibly taken @adityaanikam claimed this 8 days ago. OpenType: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
IQSS/dataverse#12856 · 1 comment ·
Maintainers usually reply within 1 day
-
Return to Author unreachable when a dataset in review has incomplete metadataPossibly taken @ErykKul claimed this 14 days ago. OpenType: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Language controlled vocabulary displays 'Logudorese Sardinian, Croatian' instead of 'Croatian'Possibly taken @dpavlin claimed this 17 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
IQSS/dataverse#12818 · 1 comment · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
-
Release Size: 30
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
NationalSecurityAgency/ghidra#10149 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
yegor256/antlr2ebnf-maven-plugin#155 ·
Maintainers usually reply within 1 day
-
account bug exercise lecture programming user interface
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ls1intum/Artemis#14512 · 1 comment ·
Maintainers usually reply within 1 day
-
kind:bug priority:major
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
swiftlang/swift-java#955 ·
Maintainers usually reply within 1 day