Publish Dataset button displays a dropdown arrow when only one action is available
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- html, java, javascript
調査の方向性
src/main/webapp/dataset.xhtmlから始め、ボタン Publish Dataset のレンダリング条件を、issue にリンクされた Dataverse 6.9 のテンプレートと比較してください。Publish だけが利用可能なアクションであるケースを再現し、ボタンにドロップダウン矢印がない一方で確認ダイアログが開くことを確認してください。その後、追加のアクションが利用可能な場合も矢印が表示されたままであることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
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:
- 主要言語
- Java
- スター
- 1.1k
- フォーク
- 571
- 平均マージ
- 1日 18時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
IQSS/dataverse のほかの issue
-
API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collection対応中かも @vera が 3 日前に担当しました。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
XLSX ingest fails when first worksheet row has no spans attribute対応中かも @adityaanikam が 11 日前に担当しました。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
IQSS/dataverse#12856 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Return to Author unreachable when a dataset in review has incomplete metadata対応中かも @ErykKul が 16 日前に担当しました。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Language controlled vocabulary displays 'Logudorese Sardinian, Croatian' instead of 'Croatian'対応中かも @dpavlin が 20 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
IQSS/dataverse#12818 · コメント 1 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Release Size: 30
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
commons-app/apps-android-commons#7275 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
liberation-data/drivine4j#682 ·
メンテナーはふだん 1 日以内に返信
-
Document and enforce pull request review guidelines対応中かも @dashorst が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
`Time.at(t, in: nil)` returns UTC instead of the local time (or the time zone of `t`), unlike CRubyオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
hermes-queue
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
chrisalunlloyd2-sudo/mindpalace#349 ·
メンテナーはふだん 1 日以内に返信