mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
API, Boards Report, Broken Cards, CPU usage, Cards Report, Data health, Database problems and Disk usage get What it is, Read more, How to use it, How the numbers are calculated, How it works in WeKan and Commits, checked against the code. Corrections: the API table has the Location columns; the Boards Report filter says Signed-in users; Broken Cards says the Summary count leaves out unknown card types; the CPU tuning table lists the FerretDB watch, statistics and maintenance variables; the nightly Data health hours run to 06:00 and custom fields on no board have no repair; the database probe's thresholds are listed; Disk usage uses fs.statfsSync. The two design notes, Design and Durable operations, keep their text and get their commits. Thanks to xet7 !
3.9 KiB
3.9 KiB
Admin Panel / Problems / Cards Report
What it is
Every card on the instance, with where it is and who is on it. Address:
/admin/problems/cards. Site administrators only, over every board, whether or
not the administrator is a member. It answers where is this card, and who
are its members and assignees without opening the boards one by one.
Read more
- Kanban board on Wikipedia - the board, lists and cards this report lists.
- WeKan: Broken Cards - the cards that are missing a board, swimlane or list; Boards Report; Table page.
How to use it
- Open your member menu (your avatar at the top right) and click Admin Panel.
- Click the Problems tab at the top.
- In the left menu, under Reports, click Cards Report.
- To find a card, type part of its title in the search box and press Enter (case-insensitive). The list starts again from page 1.
- Use the previous / next buttons to page through the cards.
The pane is read-only.
| Column | Holds |
|---|---|
| Card Title | the title; longer than 30 characters is cut to 29 and ... |
| Board, Swimlane, List | the titles of each, cut the same way |
| Members | user names of the card's members |
| Assignees | user names of the card's assignees |
How the numbers are calculated
- Rows per page: 10 (
TABLE_PAGE_ROWS_PER_PAGE). - Total:
getCardsReportCount(search)counts every card whose title matches (all cards when the search is empty), archived cards included; pages =max(1, ceil(total / 10)). The total is counted once when the pane opens or the search changes, not on every page. - Order: by board, then newest first (
{ boardId: 1, createdAt: -1 }), the existing index ofcards, so one page is a bounded index scan instead of a sort of every card in memory.
How it works in WeKan
- server/publications/cards.js -
the
cardsReportpublication and thegetCardsReportCountmethod, both admin-only. Only the six fields the table draws are sent (title,boardId,listId,swimlaneId,members,assignees), not whole card documents, with the titles of their boards, lists and swimlanes and the members' safe user fields (never the current user's, #6919). The page is published manually (no live cursor, which hangs on FerretDB's oplog) and named withpublishReportPage. - client/components/settings/adminProblems.js -
the
report-cardscolumn spec inREPORT_TABLES, drawn by the shared table page. - Tests: tests/adminPageRows.test.cjs, tests/paginationIndexes.test.cjs (the index-backed sort) and tests/tablePage.test.cjs.
Commits
- Tests for the card reports
- Members sent to the report never include the current user's partial profile
- Paginate honestly: one page of ten, index-backed
- Faster loading and previous / next paging
- Publish the page manually so it loads on FerretDB
- Load one page fast through an index-backed sort
- Fix the Cards Report not working
- Add the Cards report