Publish Dataset button displays a dropdown arrow when only one action is available

Abierto Apto para principiantes
#12,837 2 comentarios 2 reacciones 0 asignados Ver en GitHub

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
Área
frontend, web-dev

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

Type: Bug

What steps does it take to reproduce the issue?

  • When does this issue occur?

    1. Open an unpublished draft dataset in Dataverse 6.12.
    2. Ensure that the user has permission to publish the dataset.
    3. Locate the Publish Dataset button.
    4. Observe the dropdown arrow next to the button label.
    5. 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.9 – dataset.xhtml

Dataverse 6.11 – dataset.xhtml

Dataverse 6.12 – dataset.xhtml

Screenshots:

6.8:

Image

6.12:

Image
Lenguaje dominante
Java
Estrellas
1.1k
Forks
571
Merge medio
1 d 18 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de IQSS/dataverse

Todos los issues de IQSS/dataverse

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.