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

オープン 初心者向け
#12,837 コメント 2 件 リアクション 2 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
html, java, javascript
領域
frontend, web-dev

調査の方向性

src/main/webapp/dataset.xhtmlから始め、ボタン Publish Dataset のレンダリング条件を、issue にリンクされた Dataverse 6.9 のテンプレートと比較してください。Publish だけが利用可能なアクションであるケースを再現し、ボタンにドロップダウン矢印がない一方で確認ダイアログが開くことを確認してください。その後、追加のアクションが利用可能な場合も矢印が表示されたままであることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
1.1k
フォーク
571
平均マージ
1日 18時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

IQSS/dataverse のほかの issue

IQSS/dataverse の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。