Import a full Trello board
Brought to you by:
wekan
Originally created by: xavierpriour
This is step 2 of [#113]
We import a full Trello board (with its title, color, labels, lists, cards, and comments), including all archived items (lists and cards).
Limitations (may be fixed in future PRs, depending on actual needs):
PS: also did the following "technical stuff"
Originally posted by: mquandalle
At a first glance the code (and its commit history) looks very good, I’m super happy to review that and get it merged in core, thank you :-)
Originally posted by: mquandalle
On a side note do you think something like https://github.com/gaearon/normalizr would be useful (for instance to import all the members at once)?
Originally posted by: xavierpriour
Hey, I did not know about normalizr, thanks for pointing it out.
(...looking into it...)
Trello json is actually already normalized: lists, labels, members, cards are all listed at root level then only referenced by ID. I only have to build an id index, which is pretty straightforward, so I think normalizr would be overkill. But it's a good one for future imports that would not be presented as well...
Originally posted by: mquandalle
Ok, makes sense.
Originally posted by: xavierpriour
Updates the comments to be clearer, handles "team" permission (mapping to Wekan "private"), and a big refactor to share most code with card import.
Originally posted by: mquandalle
I have a bug when importing old boards (in my case 2013). From my investigations the cause seems to be that Trello didn’t have a
createListaction back at the time — which raise an error because thecreatedAtdate of the list is thenundefined.Ticket changed by: mquandalle
Originally posted by: mquandalle
I fixed this issue by providing a default date.
This is now merged in
devel. Thank you very much once again!