mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. 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