mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -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 !
5.2 KiB
5.2 KiB
Admin Panel / Problems / Boards Report
What it is
Every board on the instance, with its visibility, members, organizations and
teams. Address: /admin/problems/boards. Site administrators only, and over
the whole instance, not only the boards the administrator is a member of. It is
for answering which boards exist, who can see each one, and who is on it
without opening every board.
Read more
- Kanban board and Kanban (development) on Wikipedia - what a board is.
- WeKan: Organizations, Teams, Cards Report, Table page (the shared table this pane uses).
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 Boards Report.
- To find a board by name, type part of its title in the search box and press Enter. The search matches the title, case-insensitively, and starts again from page 1.
- To see only boards of one visibility, choose it in Permission: All, Public, Signed-in users or Private. The list starts again from page 1.
- Use the previous / next buttons to page through the boards.
The pane is read-only.
| Column | Holds |
|---|---|
| Title | the board title; a title longer than 30 characters is cut to 29 and ... |
| Id | the board id, cut the same way |
| Permission | public, instance (shown in the filter as Signed-in users) or private |
| Archived? | Yes or No |
| Members | user names of the active members; a removed member is not listed (#5122) |
| Organizations | the display names of the organizations the board is shared with |
| Teams | the display names of the teams the board is shared with |
How the numbers are calculated
- Rows per page: 10 (
TABLE_PAGE_ROWS_PER_PAGEin models/lib/tablePage.js). - Total and pages: the total is
getBoardsReportCount(search, permission), a count of the same query the page uses; pages =max(1, ceil(total / 10)). The total is counted again only when the search or the filter changes, not on every page; a page past the end after rows were removed is moved back to the last page. - Order: the boards' default sort order (
sort: { sort: 1 }). - Archived boards are included and marked Yes.
How it works in WeKan
The shared table page renders it, fetched one page at a time from the server:
- server/publications/boards.js -
the
boardsReportpublication and thegetBoardsReportCountmethod. Both refuse anybody who is not a site administrator (isAdmin); the publication returns nothing and the method throwsnot-authorized. The query isboardsReportQuery: an escaped, case-insensitive title regex and, unless the filter is All,permission. The page is published manually (fetch,added,ready) rather than as a live cursor, because a sorted and limited live observe hangs on FerretDB's oplog. With the boards it publishes the members' safe user fields (never the current user's, #6919), and the boards' organizations and teams. - client/components/settings/adminProblems.js -
the
report-boardscolumn spec inREPORT_TABLES,memberNames(which skips members withisActive: false), the Permission filter and the paging. - Collections:
boards(title,permission,archived,members,orgs,teams,sort),users,org,team. - Tests: tests/boardsReportFilter.test.cjs
pins the Permission filter,
tests/adminPageRows.test.cjs the
page of ten, and tests/tablePage.test.cjs
the shared table and the
report-boardsmenu entry.
Commits
- Members, organizations and teams sent to the report never include the current user's partial profile
- Add the Permission filter
- Show every board of the instance, not only the admin's own
- Paginate honestly: one page of ten, index-backed
- Publish the page manually so it loads on FerretDB
- Admin Panel Problems page replaces the Reports button
- List only active members (#5122)
- Check board access when listing boards
- Add the Boards Report to Admin Reports