- Meteor-Files 3's addFile is async - addFile(path, opts, proceedAfterUpload)
returning the file - and takes no callback. addAttachmentFromStream passed
one as its third argument, which was never called, so every streamed
attachment waited forever: a WeKan or Trello .zip import, a board clone, a
REST raw upload and a storage move stopped at their first file. It now
awaits the promise, as copyFile does; tests/importAttachmentStream checks
that no code hands addFile a callback.
- TrelloCreator rebuilt each attachment from a fixed list of fields that
left out the zip entry the .zip route had matched it to, so every
attachment fell back to downloading its Trello URL, which needs Trello's
own login, and none arrived. The entry and size are kept now
(tests/zipBombBleed); a board that fails in a .zip import is also logged.
- A file record without versions made the file route throw "reading
'original'" and answer 500; it is a missing file, answered 404.
Thanks to xet7 !
Every import page now asks once what the people named in the file become
(models/lib/importMembersMode.js): existing users chosen in the map-members
step, placeholder users that keep the original username and name and cannot
log in, to be mapped to real users later, or all the person importing. All
five creators read the same mapping. The generalized importer, which used to
drop people nobody mapped, now makes placeholders for them, as Trello and
WeKan imports do, and offers its people for mapping by reading the file with
the same parser (importBoard with previewPeople, which creates nothing).
Import many boards offers placeholders or the importer. The REST import, the
WeKan .zip route and the Trello route take the mode too.
A WeKan .zip imported as a new board no longer puts its attachment files
inline in memory within a 512 MB budget: the full-board importer streams each
from the archive into storage, as the import into an existing board does.
Both, and the Trello importer when given a stream, go through one helper
(server/lib/importAttachmentStream.js) that holds every imported attachment
to the Admin Panel's upload limit and to none when none is set, skipping a
file whose stated size is over it and stopping one that grows past it.
The import page instructions name Jira's current search (GET
/rest/api/3/search/jql with fields=*all, paged by nextPageToken), Todoist's
Manage data > Export as CSV and Planner's Export as Excel.
Thanks to xet7 !