Commit Graph
3 Commits
Author SHA1 Message Date
Lauri Ojansivu 89af889874 Docs: Admin Panel / Problems, API to Durable operations: what each feature is, how to use it, how its numbers are calculated, how it works, and its commits.
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 !
2026-11-22 18:00:06 +02:00
Lauri Ojansivu 9dc3fc3f31 Data health: custom fields whose boards were all deleted get their own check.
customfield-dead-board counted every custom field that names a deleted
board, but its Repair only removes dead boards from a field that is also on
a live board; a field whose boards were ALL deleted was skipped on purpose,
since removing them would leave it on no board. So those fields stayed in
the count with a Repair button that could never change it: one instance
showed 510 and "Repaired: 0" after every click.

- New check customfield-boards-deleted: fields whose boards no longer exist
  (through boardIds or the legacy boardId). No existing board shows them.
  Repair deletes the definitions after the confirming second click, like
  the other repairs that delete data. A value a card on a live board still
  holds is left alone and stays listed under card-dead-field-values.
- customfield-dead-board counts only fields that still have a live board,
  so its count goes to zero when its Repair has run.

docs/Features/Admin-Panel/Problems/Data-Health.md lists the new check.
Test: tests/dataHealth6818.test.cjs.

Thanks to Raymond-Voogt and xet7 !

Fixes #6829.
2026-10-28 13:50:49 +02:00
Lauri Ojansivu d9cf523f9e Admin Panel / Problems: Data health, a nightly scan of broken references, with repairs.
The scan counts what points at nothing: cards on a missing or another board's
list or swimlane, ghost and duplicate board members, boards with no active
admin, custom field values and boards that no longer exist, checklist items
without a checklist, and subtasks or linked cards whose card is gone. It runs
nightly when the CPU is low, claimed so that only one pod scans or repairs.

A repair that only moves data reuses the upgrade steps; one that deletes asks
twice, and the server refuses it without that confirmation. Every repair edits
with $pull or a guarded update, so a concurrent edit is not overwritten, and a
member dedupe keeps the admin entry. Legacy scalar boardId and string boardIds
of custom fields are understood.

Translations done with low confidence: ay, csb, lld, kok, wa-RR, ve-CC, bi, tpi.

Thanks to Raymond-Voogt and xet7 !

Fixes #6818.
2026-10-27 17:08:15 +02:00