ci / test-guard (pull_request) Successful in 3s
ci / go (pull_request) Successful in 3m26s
ci / package (pull_request) Successful in 2m18s
ci / install-test (debian:12) (pull_request) Successful in 1m12s
ci / install-test (debian:13) (pull_request) Successful in 1m28s
ci / smb (pull_request) Successful in 1m35s
ci / e2e (pull_request) Successful in 3m3s
The change journal and the config backups grew forever: every entry holds the full content of the changed files, and every change left a backup copy. The history also holds personal data (who changed what, user names), which the GDPR's storage limitation says not to keep longer than needed. Retention, owner's decision 2026-11-30: - Entries older than 365 days go, and of the rest at most the newest 1,000 stay (whichever is reached first). Both values are app settings: System page, PUT /api/v1/settings/app (history_days 7–3650, history_entries 50–100000) or settings.json; out-of-range values in the file fall back to the defaults, never to "keep forever". - Applied at start, once a day, and right away when the setting changes. The journal is rewritten atomically (temp file + rename), so a crash leaves the old or the new file; unreadable lines, already ignored, are dropped. - Backups older than the oldest kept entry go; the newest 10 per file always stay. Backup names now carry a UTC timestamp, so writing and reading them agree in every time zone. - What a trim removed is itself an audit entry; the setting change too. - The Changes page says how long the history is kept and how far back it goes (GET /api/v1/changes → kept). Privacy: docs/privacy.md lists what personal data Sharestead keeps, where, for how long and how to delete it (incl. when someone leaves), and that it sends nothing anywhere. N-17 in the requirements; README links to it. 03-solution-design: retention row added; the user/group undo row now says audit only (F-HIS-8 was dropped). Tests: retention rules (changes, 98%), journal and backup trimming on real files incl. undo after a trim and unrelated files kept (configstore), settings defaults and fallback, API (defaults, trim on change, bounds, history entries); e2e on CT 151 (desktop + phone), axe unchanged. Checked on CT 151: history_entries 50 trimmed 286 → 51 entries and 43 → 26 backups, journal still 0600. Coverage minimums raised (total 77, server 85, auth 95). Test changed because: web/e2e/fixtures/base.json is a recorded API answer that fixtures_test.go checks against the API description; GET /api/v1/settings/app and GET /api/v1/changes now have the required fields history_days/history_entries and kept. Only those fields were added (two existing lines got a trailing comma); no expectation changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
581 B
Plaintext
16 lines
581 B
Plaintext
# Minimum test coverage in %, checked by scripts/coverage-check.sh in CI.
|
|
# Raise a number when coverage went up (CI prints the new value); never lower it
|
|
# without a reason in the commit message.
|
|
total 77.0
|
|
internal/server 85.0
|
|
internal/auth 95.0
|
|
internal/domain/share 89.0
|
|
internal/rootfs 83.0
|
|
internal/adapters/osfs 81.0
|
|
internal/format/smbconf 77.0
|
|
internal/format/exports 97.0
|
|
internal/app/accounts 78.0
|
|
internal/domain/acl 98.0
|
|
internal/app/subfolders 92.0
|
|
internal/adapters/aclfs 85.0
|