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 !
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 !
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.
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 !
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 !