Upcoming cards widget returns no items through the dashboard API
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Trace DeckWidgetUpcoming::getItems() and OverviewService::findUpcomingCards() to confirm how the grouped results reach the dashboard widget filter. Start by locating those methods and checking the existing tests for upcoming cards or dashboard widget items. Done when the dashboard API returns the due cards under the expected widget response.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 380
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 72
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/deck
-
2 small URL BugsOpen1. to develop bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nextcloud/deck#8834 · 1 comment ·
Maintainers usually reply within 1 day
-
Updating a card without `done` clears its done statePossibly taken @whoalin1 claimed this 5 days ago. Open0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Updating a card on an incoming federated board without `done` returns 500Possibly taken @AlirezaAghaee1996 claimed this 5 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Deck treats unset files_sharing server-to-server keys as disabledPossibly taken @whoalin1 claimed this 5 days ago. Open0. Needs triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vecture-be/belgium-data-desk#181 ·
Maintainers usually reply within 1 day
-
enhancement frontend reconciliation UX
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
humlab-sead/sead_shape_shifter#882 ·
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
erkamyaman/rust-anything#1381 ·
Maintainers usually reply within 1 day
-
a11y accessibility area: i18n area: pages area: sites bug i18n priority: P2 seo tech: javascript tests
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
flisk-sh/chat#833 · 1 comment ·
Maintainers usually reply within 1 day