Publish Dataset button displays a dropdown arrow when only one action is available
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 78/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- html, java, javascript
Línea de trabajo
Empieza con src/main/webapp/dataset.xhtml y compara la condición de renderizado del botón Publish Dataset con la plantilla de Dataverse 6.9 enlazada en el issue. Reproduce el caso en el que Publish es la única acción disponible y comprueba que el botón no tiene una flecha de menú desplegable y aun así abre el diálogo de confirmación; después, verifica que la flecha se mantiene cuando hay acciones adicionales disponibles.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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:
- Lenguaje dominante
- Java
- Estrellas
- 1.1k
- Forks
- 571
- Merge medio
- 1 d 18 h
- PR fusionados (30 d)
- 8
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de IQSS/dataverse
-
API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collectionPosiblemente ocupada @vera la tomó hace 3 días. AbiertoType: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
XLSX ingest fails when first worksheet row has no spans attributePosiblemente ocupada @adityaanikam la tomó hace 11 días. AbiertoType: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
IQSS/dataverse#12856 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Return to Author unreachable when a dataset in review has incomplete metadataPosiblemente ocupada @ErykKul la tomó hace 16 días. AbiertoType: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Language controlled vocabulary displays 'Logudorese Sardinian, Croatian' instead of 'Croatian'Posiblemente ocupada @dpavlin la tomó hace 19 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
IQSS/dataverse#12818 · 1 comentario · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Release Size: 30
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
Todos los issues de IQSS/dataverse
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
commons-app/apps-android-commons#7275 ·
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
liberation-data/drivine4j#682 ·
Los mantenedores suelen responder en 1 día
-
Document and enforce pull request review guidelinesPosiblemente ocupada @dashorst la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
`Time.at(t, in: nil)` returns UTC instead of the local time (or the time zone of `t`), unlike CRubyAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
hermes-queue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
chrisalunlloyd2-sudo/mindpalace#349 ·
Los mantenedores suelen responder en 1 día