Upcoming cards widget returns no items through the dashboard API
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 72/100
Direção de pesquisa
Siga DeckWidgetUpcoming::getItems() e OverviewService::findUpcomingCards() para confirmar como os resultados agrupados chegam ao filtro do widget do painel. Comece localizando esses métodos e verificando os testes existentes para cartões futuros ou itens do widget do painel. A tarefa estará concluída quando a API do painel retornar os cartões vencidos na resposta esperada do widget.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- JavaScript
- Estrelas
- 1.4k
- Forks
- 380
- Merge médio
- 1d 17h
- PRs com merge (30d)
- 72
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de nextcloud/deck
-
2 small URL BugsAberta1. to develop bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
nextcloud/deck#8834 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Updating a card without `done` clears its done stateTalvez já em andamento @whoalin1 assumiu há 5 dias. Aberta0. Needs triage bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
Mantenedores costumam responder em até 1 dia
-
Updating a card on an incoming federated board without `done` returns 500Talvez já em andamento @AlirezaAghaee1996 assumiu há 5 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
Deck treats unset files_sharing server-to-server keys as disabledTalvez já em andamento @whoalin1 assumiu há 5 dias. Aberta0. Needs triage bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
Todas as issues de nextcloud/deck
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
vecture-be/belgium-data-desk#181 ·
Mantenedores costumam responder em até 1 dia
-
enhancement frontend reconciliation UX
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
humlab-sead/sead_shape_shifter#882 ·
Mantenedores costumam responder em até 1 dia
-
good first issue help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
erkamyaman/rust-anything#1381 ·
Mantenedores costumam responder em até 1 dia
-
a11y accessibility area: i18n area: pages area: sites bug i18n priority: P2 seo tech: javascript tests
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
flisk-sh/chat#833 · 1 comentário ·
Mantenedores costumam responder em até 1 dia