Files
wekan/tests
Lauri Ojansivu a7cd22f94c Import: a .zip that becomes a new board, and a Trello API import, run as the importing user.
POST /api/import/zip?newBoard=1 - All Boards / Import of a WeKan .zip, and
"Import many boards" - answered 500 for every archive that named people:
"Meteor.userId can only be invoked inside a method, publication, or WebApp
endpoint". trackImport() runs the import at once, and only the await of its
promise was wrapped in the importer's method context, so the creator had
already asked Meteor.userId() for the file's people (membersMode=me) and for
rows with no author. The Trello API import job started TrelloCreator with no
context at all. Both now start the import inside the context.

tests/importZipUserContext.test.cjs requires every trackImport() outside a
Meteor method to be started inside withValue or runAsUser, and finds the old
shape nowhere. tests/playwright/specs/gitea-backup-wekan-import.e2e.js
imports a Gitea backup's WeKan .zip as a new board through the route, with
its cards, comments, labels and files.

Thanks to xet7 !
2026-11-22 16:39:48 +02:00
..
…
…