Commit Graph
64 Commits
Author SHA1 Message Date
Lauri Ojansivu 7fef4f4cdc Add administrator pause and resume controls for activity notifications 2026-09-28 15:00:31 +03:00
Lauri Ojansivu 61bca9bb42 Honor persistent activity notification holds during delivery 2026-09-28 14:55:15 +03:00
Lauri Ojansivu 614ece5397 Persist versioned activity notification hold decisions 2026-09-28 14:52:29 +03:00
Lauri Ojansivu 169a19817a Report pending activity notifications and allow guarded manual retry 2026-09-28 14:49:56 +03:00
Lauri Ojansivu 694807fc47 Compact completed notification plans without deleting replay keys
Remove rendered payloads immediately after matching intent completion and in bounded background sweeps. Require valid checksums and dispatch identity, retain pending or damaged plans, and use atomic in-place replacement with readback for uncertain acknowledgements.

Validated with 20 Node/MongoDB cases, three additional Node suites, four Meteor cases and thirteen Chromium delivery and cleanup scenarios. Operator handling and unresolved-payload retention remain open.

Thanks to xet7.
2026-09-28 14:39:16 +03:00
Lauri Ojansivu 34c6c31a48 Resume pending activity notifications with shared reservations
Scan bounded pending-intent batches after startup, advance past failed and busy rows, and coordinate immediate delivery and recovery through renewable per-intent reservations. Resume saved plans or prepare the first plan from an unchanged persisted activity; retain unresolved orphans without recreating activities.

Validated with 14 Node/MongoDB cases, three additional Node suites, four full-app Meteor cases and twelve Chromium scenarios including scheduled local SMTP recovery. Operator controls and payload retention remain open.

Thanks to xet7.
2026-09-28 14:31:47 +03:00
Lauri Ojansivu 4c762f4070 Persist ordinary notification recipients and rendered service payloads
Save a checksummed plan before delivery, bind the original activity and dispatch actor, and reuse tray receipts and email job identities on retry. Recheck current recipient scope and channel preferences without rebuilding saved content.

Validated with ten MongoDB cases, three Node suites, three Meteor cases and ten Chromium notification scenarios. Background replay, ownership and plan retention remain open.

Thanks to xet7.
2026-09-28 14:23:38 +03:00
Lauri Ojansivu 54c3130ce9 Capture activity notification intents before ordinary activity writes
Await private intent persistence before the activity insert, preserve scoped Sync deferral, and retain pending evidence until all recipient subscribers acknowledge local writes. Compact successful intents while preserving dispatch identity; keep webhook delivery independent.

Validated with six MongoDB cases, three Node suites, three full-app Meteor cases and ten Chromium email delivery and private-storage scenarios. Automatic pending-intent recovery remains unfinished.

Thanks to xet7.
2026-09-28 14:15:55 +03:00
Lauri Ojansivu 081c220103 Add write-ahead activity notification intent storage boundary
Confirm immutable intent persistence before inserting an activity, reconcile uncertain acknowledgements, and require exact activity snapshots for recovery. Bind insertion authority to the creating call so orphan retries cannot resurrect deleted activities.

Four real MongoDB fault and concurrency tests pass. This internal primitive is not activated in activity hooks; scheduling, persisted delivery plans and operator lifecycle remain open.

Thanks to xet7.
2026-09-28 14:09:41 +03:00
Lauri Ojansivu 765e2c305d Compact terminal email metadata while retaining replay receipts
Retain detailed metadata for 30 days by default, then replace terminal jobs and commands atomically with minimal permanent identities. Preserve unfinished work, holds, generation fencing and actor-bound command replays. Sweep bounded batches independently and reconcile uncertain writes.

Validated with six Node suites, real MongoDB faults and replay tests, the Meteor startup scheduler, and Chromium Recovery replay and authorization checks.

Thanks to xet7.
2026-09-28 14:06:15 +03:00
Lauri Ojansivu 7efa8ca37f Share notification delivery slots across workers and cancel lost senders 2026-09-28 13:49:39 +03:00
Lauri Ojansivu 9758886cfa Bound SMTP connection phases and idle waits
Apply configurable finite DNS, connection, greeting and idle limits to standard SMTP URLs, TLS overrides and admin providers. Keep Meteor's native standard transport and reapply limits after Sandstorm mail updates.

Eleven focused Node suites and fifteen Chromium scenarios pass. Real SMTP tests prove greeting and idle timeouts close connections, preserve queued payloads and allow later delivery. Absolute delivery deadlines remain pending.

Thanks to xet7 !
2026-09-28 03:39:45 +03:00
Lauri Ojansivu 15368a1570 Process independent email recipients with bounded concurrency
Select due recipients rather than a message-limited prefix. Share overlapping scans and process four recipients concurrently while preserving recipient leases. Verify pool limits, query recovery, large-backlog fairness and actual slow SMTP delivery.

Nine focused Node suites and fourteen Chromium scenarios pass; the strengthened scheduling-order browser case also passes. Startup-only harness was not rerun.

Thanks to xet7 !
2026-09-28 03:29:50 +03:00
Lauri Ojansivu 0457e0dfd4 Bound email retries and expose stopped delivery recovery
Persist attempt reservations before sending, classify permanent SMTP failures, add bounded jitter and retain failed messages for administrator retry or cancellation.

Verify fourteen focused Node suites and fourteen Chromium scenarios with local MongoDB and SMTP. The separate stopped-app startup harness was not rerun.

Thanks to xet7 !
2026-09-28 03:25:40 +03:00
Lauri Ojansivu 20b47995b2 Add administrator recovery controls for queued notification email
Summarize recipients without mail payloads, paginate with bounded memory, and coordinate pause/resume/cancel with sender reservations. Persist holds, cancellation cutoffs and idempotent request receipts so replay cannot undo newer actions or cancel later messages.

Verify current administrator access, interrupted commands, lost write acknowledgements, stable cancellation and private collection boundaries with MongoDB and Chromium tests. Keep translations limited to English source labels.

Thanks to xet7 !
2026-09-28 03:15:09 +03:00
Lauri Ojansivu d828411bf6 Persist notification email jobs and resume delivery after restart
Replace process-only digest timers with a private event/recipient outbox, renewable recipient reservations, persisted retry backoff and verified SMTP acceptance. Migrate legacy buffers without discarding unqueued text, retain small replay receipts, and recheck membership before delivery.

Verify MongoDB concurrency and interrupted writes, actual application startup recovery, and ten Chromium scenarios using local SMTP. Document at-least-once delivery and remaining recovery controls.

Thanks to xet7 !
2026-09-28 03:02:16 +03:00
Lauri Ojansivu 4063b423c9 Acknowledge notification email buffers only after SMTP acceptance
Await buffer persistence, serialize per-user digest timers, and remove only delivered lines. Retain failed sends and newer reply targets. Cover SMTP rejection recovery through Chromium and local SMTP capture, plus concurrent sends and database read failures.

Thanks to xet7 !
2026-09-28 02:50:31 +03:00
Lauri Ojansivu 2c91935352 Persist and validate Sync effect plans with their card units 2026-09-28 02:39:56 +03:00
Lauri Ojansivu f5e2dd0f59 Persist retryable Sync field History batches and redo snapshots 2026-09-28 02:36:02 +03:00
Lauri Ojansivu 7bf5c63d0a Require separate effect completion for durable Sync card steps 2026-09-28 02:18:15 +03:00
Lauri Ojansivu d3667f50be Verify successful Scrum restoration inserts before acknowledgement 2026-09-28 02:15:43 +03:00
Lauri Ojansivu 617ba292f9 Retain Sync completion proofs across stable request retries
Require caller-persisted intent IDs and private immutable completion records before cleanup. Resume known completions without rebuilding or reapplying cards, reject conflicting scopes and pending intents, and preserve newer operations.

Thanks to xet7.
2026-09-28 02:09:52 +03:00
Lauri Ojansivu 0c9aa707d8 Verify durable Sync cleanup before acknowledging completion
Read back plan and marker deletion, retain incomplete cleanup, resolve lost delete acknowledgements only from confirmed absence, and protect successor operations and uncertain outcomes.

Thanks to xet7.
2026-09-28 02:03:25 +03:00
Lauri Ojansivu 0d2dd1d36e Prepare conditional field patches for durable Sync steps
Compare before/after field unions without replacing unrelated metadata. Share literal snapshot predicates with production Sync, isolate result verification from driver mutation, and reject array shapes that cannot survive BSON storage.

Thanks to xet7.
2026-09-28 01:59:40 +03:00
Lauri Ojansivu 281d7f574b Preserve mapped estimate snapshots in durable Sync plans
Validate typed custom-field arrays, canonical estimate mapping identities and source baselines. Permit only the mapped field to change, retain local fields exactly, and verify persisted update/clear/create recovery and conflict retention against MongoDB.

Thanks to xet7.
2026-09-28 01:53:16 +03:00
Lauri Ojansivu 0d582c9c0a Verify Scrum undo finalization before removing recovery checkpoints
Check source integrity, conditional write results and persisted undo state. Preserve undo timestamps across retries and delete only the matching operation checkpoint. Test failed writes, damaged final state, replacement checkpoints and recovery in Node and Chromium.

Thanks to xet7 !
2026-09-28 01:07:15 +03:00
Lauri Ojansivu 484bad1d97 Acknowledge exact Scrum restoration History events on retry
Use deterministic event IDs and verify immutable contents and integrity before clearing recovery evidence. Accept exact legacy rows and lost insert acknowledgements; retain checkpoints on failed or conflicting records. Cover replay, concurrency, failed writes and damaged recovery rows in Node and Chromium.

Thanks to xet7 !
2026-09-28 01:03:10 +03:00
Lauri Ojansivu 96dba34609 Emit card activities and History only after matched writes 2026-09-28 00:53:59 +03:00
Lauri Ojansivu 487fd59882 Add persisted Sync plan checkpoints and preserve null write preconditions 2026-09-28 00:43:00 +03:00
Lauri Ojansivu 6a4e5e29a8 Expose retained Sync diagnostics in Problems Recovery 2026-09-28 00:34:27 +03:00
Lauri Ojansivu 953d8f7c13 Organize feature guides by menu and document backup alternatives
Add September feature instructions, preserve guide forwarding links, and document backup coverage with descriptive screenshots from #6683.

Thanks to markusst1982 and xet7 !
2026-09-23 18:34:37 +03:00
Lauri Ojansivu 19f740f509 Stabilize WeKan regression checks and macOS release jobs 2026-09-22 19:31:34 +03:00
Lauri Ojansivu ab11bad210 Harden Meteor 3.6 passwordless account requests 2026-09-22 19:16:55 +03:00
Lauri Ojansivu 23ed8d927f Show Meteor instrumentation in Admin Panel Problems 2026-09-22 19:07:14 +03:00
Lauri Ojansivu e8d9bf9f11 Pair IPv4 and IPv6 addresses with their locations 2026-09-22 18:47:39 +03:00
Lauri Ojansivu a990e7f202 Provide full MIME detection across server platforms
Share native file and bundled libmagic detection across uploads, extension correction and administrator file checks. Include the portable WASM database in runtime dependencies, stage native file for Snap and Linux setup, and verify release assets before smoke boot.

Cover portable detection with native file absent, missing dependencies/assets, isolated release layout and HTML diagnostics in Chromium, Firefox and WebKit.

Thanks to xet7 !
2026-09-20 21:06:30 +03:00
Lauri Ojansivu 1f5cb0d134 Add read-only file status checks to Admin Panel Problems
Add shared controls above Files, Filesystem integrity and Recovery for content/type checks, storage inventory and history correlation, with progress, cancellation and a downloadable bounded summary.

Report incomplete upload metadata separately from missing binaries. Compare filesystem and GridFS references, sizes, MIME/extension aliases, hashes and baseline evidence; correlate undo/activity history with candidate renamed or moved files. Preserve files and records, enforce administrator access and scan limits, and explicitly report unknown or unverified coverage.

Verify five focused Node suites and two browser scenarios in Chromium, Firefox and WebKit. Rerun header-first content detection in all three browsers. Document storage and verification limits.

Thanks to xet7.
2026-09-20 19:35:16 +03:00
Lauri Ojansivu bbcd98d9d8 Add REST API for attachment soft delete and restore, Admin Panel Problems, OAuth login provider and passwordless settings, card field order and pausing a rule.
Every feature of the recent releases that had a UI but no endpoint, on the
same server-side code the UI uses:

- DELETE /api/boards/:boardId/attachments/:attachmentId soft-deletes,
  POST .../attachments/:attachmentId/restore restores, and
  GET /api/boards/:boardId/attachments/deleted lists what is restorable -
  all through the attachments.softDelete / attachments.restore methods the
  card and the card history use, run as the request's user. No hard delete.
- GET /api/admin/problems (the Problems status overview plus the new-problem
  count per stream), GET /api/admin/problems/:stream (one page, with
  limit/skip/search) and POST /api/admin/problems/:stream/acknowledge,
  through the admin-only eventLog* methods the Admin Panel pages call.
- GET /api/admin/oauth-providers, PUT /api/admin/oauth-providers/:providerKey
  and PUT /api/admin/passwordless, through saveOauthProviderSettings,
  savePasswordlessSettings and getOauthProviderConfigSources. A provider's
  secret is reported only as { source, hasValue }, never its value.
- GET/PUT /api/boards/:boardId/cardFieldOrder, normalised with the same
  applyCardFieldOrder() the card renders with.
- PUT /api/boards/:boardId/rules/:ruleId accepts `enabled` to pause and
  resume a rule, and GET reports it.

The OpenAPI generator is fixed on the way: server/models/boards.js has had a
bare `catch {` since v11.67, the esprima parser cannot read that, and a parse
failure was silently skipped - so public/api/wekan.yml has shipped WITHOUT
the whole Boards API since then. It now downlevels `catch {` and
`for await (`, warns when a file cannot be parsed, and no longer emits an
empty sub-schema for a primitive array-element marker such as
`wipLimitGroups.$.listIds.$`, which made the spec unparseable YAML.
public/api/wekan.yml and wekan.html are regenerated with the release
workflow's own commands: 156 operations, up from 122.

tests/restApiNewFeatureRoutes.test.cjs pins every new route to its method,
path, @operation block and authentication check, that the OAuth endpoints
never mention a secret outside the input whitelist, the generator's two
fixes, that the generated and the committed spec carry the Boards API and the
new operations, and - as the negative sweep - that no route in models/ or
server/models/ lacks an authentication check.

Thanks to xet7 !
2026-09-11 21:18:35 +03:00
Lauri Ojansivu 1218cd281f Add test-menu.sh and checked-in example inputs for docs/Features
test-menu.sh mirrors the docs/Features menu structure and runs the actual
WeKan code for each feature: a dedicated runner for Login (a real REST
username/password round trip) and ImportExport/PDF (create a board, export
it, check the PDF header), and a generic fallback that matches a feature
against this repo's own automated tests by filename. Every feature run
writes output.txt/result.txt/run.log under .tools/test-menu/<timestamp>/,
mirroring the docs/Features path, and never leaves an empty or missing
result.

The example INPUT for a feature is checked into the repository next to its
documentation instead: docs/Features/<path>/example-input.txt, hand-written
for Login and ImportExport/PDF and extracted from the feature's own .md
elsewhere. test-menu.sh only reads these; it never writes into docs/Features.

An earlier version of the matcher also grep'd test file CONTENTS for a
keyword once the filename search failed, which pulled in noise (a word like
"webhook" mentioned in passing in a dozen unrelated tests); it is
filename-only now.

Thanks to xet7.
2026-09-08 17:49:24 +03:00
Lauri Ojansivu b7edc0917b Fix recovery documentation indexes 2026-09-05 23:51:02 +03:00
Lauri Ojansivu 175eea9810 Design restart-safe durable operations 2026-09-05 23:51:02 +03:00
Lauri Ojansivu 6d5bcb4fc1 Extend verified recovery integrity design 2026-09-05 23:51:02 +03:00
Lauri Ojansivu 3980dd9fc3 Design verified recovery and low-load maintenance 2026-09-05 23:51:02 +03:00
Lauri Ojansivu 90158d5012 Audit security coverage and recovery failures 2026-09-05 23:51:02 +03:00
Lauri Ojansivu 75ae547995 Document Recovery guidance in Delete settings. 2026-08-18 00:12:33 +03:00
Lauri Ojansivu a02d03a133 Document the Recovery audit description. 2026-08-18 00:01:53 +03:00
Lauri Ojansivu bfeb839591 Document Recovery outcome filtering. 2026-08-17 23:58:25 +03:00
Lauri Ojansivu 9b08008db3 Document complete permanent-delete attempt audits. 2026-08-17 23:55:38 +03:00
Lauri Ojansivu 4c556d2ba5 Document permanent-delete Recovery audits. 2026-08-17 23:43:53 +03:00
Lauri Ojansivu 4ab3161b4f Add permanent delete to Admin Panel Problems.
The Delete pane sits above Notifications and exposes the existing, default-off enablePermanentDelete gate for Global Admins. It has its own URL, documentation, and regression coverage for menu order, rendering and the setting handler.

Thanks to xet7 !
2026-08-17 21:11:35 +03:00