mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 01:49:41 -05:00
A board export is a complete copy, archive included, so a board moved to another WeKan brought years of archived cards, lists and swimlanes that then had to be emptied by hand. The export popup now has "JSON (without archived items)", ?archived=false at /api/boards/:boardId/export and at exportZip. It leaves out the archived cards, lists and swimlanes, the cards on an archived list or swimlane (a card restored while its list stayed archived would otherwise arrive pointing at a list the new board does not have), and what hangs off those cards: comments and checklists, which are read by the exported card ids, and attachments, which are read by the board and so get their own filter - the reporter's patch left an archived card's files, bytes and all, in both export paths and in the .zip. The rules are pure, in models/lib/exportArchivedFilter.js. An ordinary export is unchanged: still a complete backup. Board activities are not filtered: they are history, and the import tolerates a missing card id. "without archived items" in all 244 languages. Low confidence: ace, ak, ay, bi, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, fo, gn, gv, haw, iu, kl, ks, kw, lg, lld, nah, nap, nd, nso, om, pap, qu, rn, rup, sah, sc, se, sm, ss, tig, tlh, tpi, ts, ve, ve-CC, ve-PP, vo, wa, wa-RR, wal, wo, yi, zgh. Tests: tests/exportExcludeArchived.test.cjs (the selectors against sample cards, lists and attachments, the negative that an ordinary export keeps everything, and that no whole-board attachment read is left unfiltered), and tests/playwright/specs/export-without-archive-6946.e2e.js (the export through the API with and without the archive, and the popup entry). Thanks to Raymond-Voogt and xet7 ! Fixes #6946.