Commit Graph
61 Commits
Author SHA1 Message Date
Lauri Ojansivu 5e1ed32f58 Sync Jira original and remaining time estimates with conflict review
Map selected aggregate seconds to the board's imported numeric time fields in hours. Preserve zero, missing and explicit null; validate mapping identities and retain unrelated fields through conditional array writes.

Twenty-five focused Node suites and twenty-two Chromium scenarios pass with local MongoDB and Jira fixtures. Live Jira, FerretDB and other browsers remain unverified.

Thanks to xet7 !
2026-09-28 03:49:38 +03:00
Lauri Ojansivu a00c009ba6 Bind scheduled Sync to its authorizing account 2026-09-28 02:30:48 +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 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 ca7863722a Emit custom-field activities after successful card writes
Compare saved custom-field values by identity for array, dotted and assignment updates. Suppress no-op and failed writes, preserve zero and false, and evaluate advanced-filter rules using boardIds-scoped definitions.

Thanks to xet7.
2026-09-28 01:38:20 +03:00
Lauri Ojansivu 79fcd0061e Sync explicitly mapped Jira estimates with local conflict review
Select an existing numeric Jira estimate field in the Sync popup, retain field/unit identity, request the selected Cloud field, and merge numeric estimates with source baselines. Preserve zero, explicit null clearing, unrelated custom fields and their order; reject invalid or changed mappings and stale card writes. Cover source selection, conflicts, remapping, invalid values and full popup flow in Node and Chromium.

Thanks to xet7 !
2026-09-28 01:30:24 +03:00
Lauri Ojansivu 6a4e5e29a8 Expose retained Sync diagnostics in Problems Recovery 2026-09-28 00:34:27 +03:00
Lauri Ojansivu adf646177b Persist private Sync run outcomes and bounded coverage reports 2026-09-28 00:28:58 +03:00
Lauri Ojansivu e0f54fc93b Report discarded source fields in Sync previews without their values 2026-09-28 00:23:46 +03:00
Lauri Ojansivu 80ccf100a7 Preview Sync changes and normalized omissions without applying writes
Reuse the actual merge and write plan, scope full-list previews to unrestricted writers, bound reports and keep omitted values private. Exclude status-only diffs from update counts. Preserve empty and whitespace source text through schema cleaning so repeated runs do not keep changing comparison baselines. Cover preview parity, saved settings, access changes, no-write errors, storage behavior and browser flows.

Thanks to xet7 !
2026-09-28 00:14:46 +03:00
Lauri Ojansivu 0210614a89 Repair malformed Sync credential counters without reviving stale saves
Fence cleanup with opaque revisions and delete only bounded immutable ID snapshots. Settings saves repair invalid or exhausted counters atomically, while active tokens and newer staging remain intact. Cover reset races, overlapping delayed sweeps, bounded backlogs, lost acknowledgements and popup saves.

Thanks to xet7 !
2026-09-28 00:04:04 +03:00
Lauri Ojansivu 210f1b59b7 Retire deleted-list Sync credentials with list lifetime isolation
Generate a fresh credential incarnation for each list insertion, including imports and copies. Match it when selecting credentials and activating settings. Sweep orphan versions by exact identity without reading secrets or deleting a recreated list's new token. Cover recreation races, delayed saves, retryable cleanup and browser flows.

Thanks to xet7 !
2026-09-27 23:59:02 +03:00
Lauri Ojansivu 352dcbea87 Create durable Sync replacements without changing moved or detached cards
Persist conditional replacement decisions before card insertion. Revalidate source previews, restrict replacement to full-list writers and preserve the previous card. Cover stale decisions, database races and lost acknowledgements, moved and detached UI flows, and private collection writes.

Thanks to xet7 !
2026-09-27 23:53:07 +03:00
Lauri Ojansivu ed1615369c Keep Sync parents local when active subtasks block archival
Offer a scoped archive-conflict preview and a parent-only mapping removal. Refetch source absence and revalidate the parent and archive blocker before conditional resolution. Preserve all subtask content and hide subtask identifiers from previews; assigned-only callers retain their write scope.

Ten Sync Node suites and thirteen Chromium scenarios pass, including both permission scopes, returning source items, unchanged subtasks and existing Sync behavior. Local release audit passes with advisory warnings. Add English source labels only. Creation collisions after moved or detached cards remain pending.

Thanks to xet7 !
2026-09-27 23:44:40 +03:00
Lauri Ojansivu 4b05d4c517 Convert duplicate Sync mappings into local cards
Show extra mappings alongside the consistently retained card. Fingerprint the visible group, reject changed previews, and remove only an extra card’s Sync identity and baseline. Protect the same first mapping independently of database cursor order; preserve card content and assignment checks.

Ten Sync Node suites and eleven Chromium scenarios pass, including stale groups, retained-mapping protection, content preservation and successful reconciliation after repair. The local release audit passes with advisory warnings. Add English source labels only.

Thanks to xet7 !
2026-09-27 23:39:25 +03:00
Lauri Ojansivu 4aa67fedca Scope manual Sync conflict review to assigned cards
Assigned-only writers review and resolve their own existing cards without triggering whole-list reconciliation or changing shared Sync status. Keep assignment in the conditional resolution write and recheck access after fetching. New shared conflict summaries omit card identifiers and values.

Ten Sync Node suites and ten Chromium scenarios pass, including hidden-card preservation, assignment revocation, scoped writes, source switching and credential recovery. The local release audit passes with advisory warnings. English source label only; no translation fill.

Thanks to xet7 !
2026-09-27 23:33:42 +03:00
Lauri Ojansivu df376f7888 Resolve Sync field conflicts from the list popup
Show local and source values for title, description and spent-time conflicts. Refetch and fingerprint the comparison before accepting a field choice, preserve unrelated fields and conditionally reject changed cards. Keeping local values advances their source baseline; no upstream writes occur.

Require unrestricted board write access and recheck it after fetching. Ten Sync Node suites, field-specific regression checks, catalog ordering and nine Chromium scenarios pass. Duplicate identity, archive/move conflicts, assigned-only resolution and transactional reconciliation remain pending. Add English source labels only.

Thanks to xet7 !
2026-09-27 23:28:26 +03:00
Lauri Ojansivu b3c53c3ae6 Retire abandoned Sync credential versions with generation fencing
An hourly streaming sweep advances a server-owned generation before deleting unselected older versions. Settings activation checks its captured generation, so a delayed save cannot select a retired credential. Preserve active and newly staged versions, isolate per-list failures and keep secrets out of cleanup logs.

Eleven Node suites pass, including real MongoDB concurrent saves and sweeps, late inserts, uncertain writes and restart retries. Eight Chromium Sync scenarios pass across the initial run and focused corrected-test rerun. Upgrade all writers together; missing-list and malformed-generation records remain for review.

Thanks to xet7 !
2026-09-27 23:21:36 +03:00
Lauri Ojansivu 8a3a1d1b34 Retain Scrum import checkpoints until plan cleanup completes
Normal imports enter the recoverable cleaning phase before deleting private plan rows. Propagate cleanup failures and keep the destination guarded until deletion is acknowledged, so offline recovery can finish partial cleanup.

Three Node suites and two Chromium native-import/board-copy scenarios pass. MongoDB tests inject interruptions at every cleanup boundary and resume through the maintenance implementation.

Thanks to xet7 !
2026-09-27 23:15:08 +03:00
Lauri Ojansivu bde8c3010f Rollback interrupted Scrum imports during offline maintenance
Validate complete plans before undoing stored writes in reverse order. Restore only original Scrum metadata and conditionally remove exact imported planning records. Persist reverse progress and cleanup, retain recovery claims on failure, and safely discard incomplete preparation without destination writes.

MongoDB integration tests cover every planned collection, write gaps, changed targets, cleanup interruption, corrupted cursors and the CLI. FerretDB remains unverified.

Thanks to xet7 !
2026-09-27 23:12:28 +03:00
Lauri Ojansivu 3b2bb23356 Resume stored Scrum import plans through explicit offline maintenance
Validate every target before writing, preserve stable IDs and conditional updates, and retain non-expiring recovery claims on failure. Resume complete staging and interrupted cleanup; reject partial plans and changed targets. Online recovery and other board-import stages remain unfinished.
2026-09-27 23:02:47 +03:00
Lauri Ojansivu 81876bfa39 Activate Sync settings and immutable credentials in one list update
Stage a private credential version and select it with settings using a conditional revision update. Preserve the previous or new pair across interrupted saves and lost acknowledgements. Prevent stale saves and delayed cleanup from replacing newer credentials, including after a clear.

Thanks to xet7.
2026-09-27 22:08:45 +03:00
Lauri Ojansivu 4d8ce77544 Coordinate Sync runs and settings saves with renewable list reservations
Share a private database reservation across scheduled Sync, manual Sync and configuration methods. Renew during fetches, verify ownership before writes, reclaim expired reservations and preserve replacement owners during cleanup. Document the remaining in-flight write fencing and multi-document recovery requirements.

Thanks to xet7.
2026-09-27 22:03:34 +03:00
Lauri Ojansivu 38e8716e59 Prevent duplicate Sync card creation across concurrent runs
Use a stable database ID for new list/source/issue mappings. Stop on creation conflicts without replacing moved cards or claiming successful reconciliation. Cover concurrent database writers, browser clients, moved-card recovery and unrelated database failures.

Thanks to xet7.
2026-09-27 21:57:42 +03:00
Lauri Ojansivu 75a312809d Scope list Sync mappings and credentials to their source project
Preserve previous-source cards across project switches, require matching credentials before fetching, and bind identifiable legacy mappings before replacing or clearing settings. Reject unknown legacy sources and stale fetched configurations.

Verify with nine focused Node suites, nine Chromium scenarios and the local release audit. Concurrent jobs and configuration writes remain nontransactional.

Thanks to xet7 !
2026-09-27 21:32:16 +03:00
Lauri Ojansivu a76c97461d Map explicit Jira numeric estimates to existing Scrum custom fields
Add field ID and unit controls to Jira import, validate before writes, and preserve mapping through Jira/native exports and board copies. Keep new fields hidden and reuse existing labels and permissions.

Thanks to xet7 !
2026-09-27 20:53:56 +03:00
Lauri Ojansivu 9d60f7bf0d Treat Jira status names and issue keys as dictionary data
Prevent inherited object properties from becoming list IDs or dependency targets. Reproduce the old import failure and verify literal names, Scrum categories, rendered cards and valid dependency links.

Thanks to xet7 !
2026-09-27 20:44:54 +03:00
Lauri Ojansivu 59a13f40d6 Preserve Jira issue types and workflow categories in Scrum transfers
Map explicit Jira category keys to existing hidden list metadata, validate before import writes, and honor Scrum selection in both directions. Verify Jira and native round trips and unchanged time tracking.

Thanks to xet7 !
2026-09-27 20:41:08 +03:00
Lauri Ojansivu 21504d556c Select card creation and archival in list Sync settings
Keep existing defaults and independent field selection. Verify operation combinations, popup persistence, invalid values and nonmember denial.

Thanks to xet7 !
2026-09-27 19:46:29 +03:00
Lauri Ojansivu 4aa61c6d56 Add opt-in Jira spent-time synchronization
Reuse numeric Jira time conversion and preserve local time edits with source baselines and conditional writes. Cover settings, zero values, excluded fields and invalid time.

Thanks to xet7 !
2026-09-27 19:42:58 +03:00
Lauri Ojansivu 31c9b1d6d3 Select synchronized text fields in the list Sync popup
Add Title and Description switches with existing behavior as the default. Validate selections through the existing write-authorized method and exclude unselected fields from merge and baseline updates. Verify persistence, unsupported values and new-card defaults.

Thanks to xet7 !
2026-09-27 19:37:47 +03:00
Lauri Ojansivu 18c6609169 Guard Sync archives against moved cards and independent subtasks
Archive only planned source-matched cards with conditional text and location checks. Reject runs with active subtasks outside the archive plan rather than cascading through locally created work.

Thanks to xet7 !
2026-09-27 19:34:48 +03:00
Lauri Ojansivu 85b5f28bcd Keep copied cards independent from external Sync identities
Strip source IDs and text baselines from card/subtask copies. Reject existing duplicate local mappings before reconciliation rather than selecting an arbitrary card. Verify source preservation, actual copy bodies and board duplication.

Thanks to xet7 !
2026-09-27 19:32:48 +03:00
Lauri Ojansivu b254b7d3af Preserve local text edits during list synchronization
Track accepted source text, merge upstream-only edits, retain local-only edits and stop conflicting runs before card writes. Guard updates against concurrent text or location changes and display structured failures correctly in Sync now.

Thanks to xet7 !
2026-09-27 19:30:01 +03:00
Lauri Ojansivu 6efec562eb Reject missing and duplicate source identities before list sync
Validate normalized tasks before reading or mutating cards. Missing IDs, duplicate IDs and malformed text cannot silently disappear from the source set or overwrite another task. Retain ordinary empty-source and unchanged-card behavior.

Thanks to xet7 !
2026-09-27 19:24:16 +03:00
Lauri Ojansivu 7977c68a38 Use enhanced Jira Cloud search for list synchronization
Route standard Atlassian Cloud tenants to v3 search with explicit parser fields and complete token pagination. Reject missing or repeating tokens while retaining offset pagination for self-hosted Jira.

Thanks to xet7 !
2026-09-27 19:22:27 +03:00
Lauri Ojansivu 11b80633c9 Collect all advertised issue pages before list sync reconciliation
Follow Jira offsets and provider next-page headers, validate advertised totals, and abort incomplete, looping or failed fetches instead of returning partial issue sets. Bound page/item counts and keep pagination on the configured origin without redirects.

Thanks to xet7 !
2026-09-27 19:20:44 +03:00
Lauri Ojansivu fe3d55ba70 Reject malformed list sync responses before reconciling cards
Reuse import source validation and handle parser failures through the existing error path. Invalid responses cannot masquerade as an empty source and archive cards. Verify actual sync function behavior and error display.

Thanks to xet7 !
2026-09-27 19:17:24 +03:00
Lauri Ojansivu 1ebc4e3b84 Honor Jira time sections in the import selector
Remove nested and flat fallback estimates when Custom Fields is excluded and spent time when Dates is excluded. Verify both actual import-page selections and preserve the existing full-transfer round-trip.

Thanks to xet7 !
2026-09-27 19:14:24 +03:00
Lauri Ojansivu 14a4d62fb9 Verify Jira estimate mappings across native import and board copies
Exercise native export/import and whole-board duplication with new field IDs, renamed estimate markers, remapped Scrum settings and subsequent Jira exports. Document the verified preservation boundaries.

Thanks to xet7 !
2026-09-27 19:12:23 +03:00
Lauri Ojansivu c72b9a4a06 Round-trip Jira time tracking through external export
Mark imported numeric estimate fields independently of their names, convert hours back to seconds, and honor Dates and Custom Fields export selections. Verify renaming, omissions, invalid and ambiguous values, and actual Jira re-import.

Thanks to xet7 !
2026-09-27 19:08:35 +03:00
Lauri Ojansivu ef5c7d00c7 Preserve Jira time tracking through existing WeKan fields
Import numeric seconds as spent hours and hidden numeric original/remaining estimate fields. Preserve zero values, reject invalid durations before creating the board, and allow the estimate field to be selected for Scrum. Verify native export retention and existing Jira import compatibility.

Thanks to xet7 !
2026-09-27 19:05:36 +03:00
Lauri Ojansivu a01e8478c3 Add a list-sync job that keeps a list up to date from Jira (and GitHub/GitLab/Gitea).
A WeKan list can be marked with a syncSource (type/url/projectKey) and a
server-only credential (models/listSyncCredentials.js, never published).
server/listSync.js registers a quave:synced-cron job, reusing the SAME
scheduling infrastructure the checklist-auto-reset job uses, that fetches
each synced list's current items and reconciles them against WeKan
(models/lib/listSyncReconcile.js, pure/unit-tested): new items create
cards, changed items update them, and items that disappeared upstream are
ARCHIVED rather than deleted, so old entries stay in the list's history.

Fetching (server/lib/listSyncFetch.js) and parsing reuse the existing
one-time-import parsers in models/lib/externalParsers.js (parseJira is
new there; parseGithub/parseGitlab/parseGitea gained externalId) instead
of a second implementation. Jira works end to end; GitHub/GitLab/Gitea
share the same job and reconcile logic via their existing parsers.

Thanks to xet7 !
2026-09-10 21:41:20 +03:00
Lauri Ojansivu 237b4f3f88 Add Markdown import/export and give GitHub-style import loss reporting
The GitHub/Gitea/Forgejo issue importer (models/lib/externalParsers.js)
mapped only a title, description, one assignee and a due date, silently
dropping everything else. It now also carries a second-and-later assignee,
a milestone title, a non-"completed" state reason and embedded comments
(as tags/description, since the shared Kanboard shape has no field for
them), and returns an `unsupported` list of what it genuinely could not
place - the `{ normalized, warnings, unsupported }` contract from
docs/Features/ImportExport/Format-Coverage.md, flattened onto the existing
board/columns/swimlanes/tasks shape so the KanboardCreator call site in
models/import.js is unaffected.

Markdown is a new import/export format: the "## List name" / "- [ ]"/"- [x]"
task-list convention several markdown-kanban tools use (Obsidian Kanban and
similar) - a plain bulleted list with no checkboxes still imports as open
cards. models/lib/markdownKanbanFormat.js holds the pure formatter (no
Meteor import of its own, so it and the parser are unit-testable without a
server); models/lib/externalParsers.js's parseMarkdownKanban is the import
side. Wired into the import source list and the export menu; the export
route serves plain text/markdown rather than JSON, since the whole point is
a file readable/editable directly or opened by another markdown-kanban tool.

Thanks to xet7.
2026-09-08 17:49:24 +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 828fc2d718 Revert Legacy HTML4 browser interface and parity changes
Remove the progressive HTML4/Legacy Omi middleware, cookieless sessions, page controllers, assets, parity refactors, design documents and associated tests. Restore the standard Meteor interface and operations from before the HTML4 work began.

Preserve intervening translations, backup screenshots, session upgrades, cryptographic test identifiers, local image storage, document previews and lazy browser loading. Extract the GIF utilities still required by image features into imageGif.

Validate the Node suites and add standard-interface and GIF regressions. Two existing failures remain in docsLinksResolve and ruleDetailsLocalization; browser regressions are registered but require a running server.

Thanks to xet7 !
2026-09-07 17:03:59 +03:00
Lauri Ojansivu 034d3b9208 Add Legacy HTML4 WeKan ZIP imports
Read whole-board and scoped archives through one bounded path-safe service, stream attachment bytes through the standard Default Storage hook, and preserve stable attachment ids in ZIP exports. Add the signed HTML4 ZIP upload, fix Meteor-Files 3 Promise handling, and verify valid and traversing archives in a cookieless browser.
2026-09-06 20:11:20 +03:00
Lauri Ojansivu f06794343e Design shared import export sanitization 2026-09-05 23:51:02 +03:00
Lauri Ojansivu 5154939a41 Design complete restart-safe import and export 2026-09-05 23:51:02 +03:00