Upcoming cards widget returns no items through the dashboard API
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
DeckWidgetUpcoming::getItems() と OverviewService::findUpcomingCards() をたどり、グループ化された結果がどのようにダッシュボードウィジェットのフィルターに届くかを確認します。まずこれらのメソッドを見つけ、今後のカードまたはダッシュボードウィジェット項目に関する既存のテストを確認してください。ダッシュボード API が、期待されるウィジェット応答で期限到来カードを返すようになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Describe the bug
The dashboard API always returns an empty list for the "Upcoming cards" widget, whatever cards are due.
DeckWidgetUpcoming::getItems() expects a flat list of cards, but OverviewService::findUpcomingCards() returns them grouped by nodue, overdue, today, tomorrow, nextSevenDays and later. The filter then checks isset($card['duedate']) on each group, which is never true, so everything is dropped.
As a check, I flattened the groups in getItems() with array_merge(...array_values(...)) on the same test instance, and both cards showed up. main has the same code as 1.19.3.
To Reproduce
- Create a board with a list and two cards, due in 1 day and in 3 days.
GET /ocs/v2.php/apps/deck/api/v1.0/overview/upcomingwith the headerOCS-APIRequest: truereturns both, undertomorrowandnextSevenDays.GET /ocs/v2.php/apps/dashboard/api/v1/widget-items?widgets[]=deckwith the same header returns{"deck":[]}.
Expected behavior
Step 3 returns the two cards.
Screenshots
n/a
Client details:
n/a, the requests above are plain curl
Server details
Operating system: Debian (Docker image nextcloud:35.0.3-apache)
Web server: Apache
Database: SQLite
PHP version: 8.5.13
Nextcloud version: 35.0.3
Where did you install Nextcloud from: the Docker image, new install
Signing status: not checked, new install
List of activated apps: the default apps and Deck 1.19.3
Nextcloud configuration: the image's defaults
Are you using an external user-backend, if yes which one: no
Logs
Nextcloud log (data/nextcloud.log)
Not captured, the request answers 200.
Browser log
n/a
Validated and reproduced on that live instance. I first saw it on Deck 1.18.6 with Nextcloud 34.
Assisted by ClaudeCode:claude-opus-5-5
- 主要言語
- JavaScript
- スター
- 1.4k
- フォーク
- 380
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 72
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextcloud/deck のほかの issue
-
2 small URL Bugsオープン1. to develop bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
nextcloud/deck#8834 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Updating a card without `done` clears its done state対応中かも @whoalin1 が 5 日前に担当しました。 オープン0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
Updating a card on an incoming federated board without `done` returns 500対応中かも @AlirezaAghaee1996 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Deck treats unset files_sharing server-to-server keys as disabled対応中かも @whoalin1 が 5 日前に担当しました。 オープン0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
vecture-be/belgium-data-desk#181 ·
メンテナーはふだん 1 日以内に返信
-
enhancement frontend reconciliation UX
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
humlab-sead/sead_shape_shifter#882 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
erkamyaman/rust-anything#1381 ·
メンテナーはふだん 1 日以内に返信
-
a11y accessibility area: i18n area: pages area: sites bug i18n priority: P2 seo tech: javascript tests
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
flisk-sh/chat#833 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信