Menu

#362 Import a full Trello board

closed
nobody
None
2015-10-20
2015-10-19
Anonymous
No

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):

  • card members are removed
  • Trello activity history ('card created on xxx') is lost
  • attachments are not transferred

PS: also did the following "technical stuff"

  • moved all import code (including card import) into its own UI component
  • in activities.jade, sorted event display code in alphabetical order to be easier to know where to add new events

Discussion

  • Anonymous

    Anonymous - 2015-10-19

    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 :-)

     
  • Anonymous

    Anonymous - 2015-10-19

    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)?

     
  • Anonymous

    Anonymous - 2015-10-19

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

     
  • Anonymous

    Anonymous - 2015-10-19

    Originally posted by: mquandalle

    Ok, makes sense.

     
  • Anonymous

    Anonymous - 2015-10-19

    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.

     
  • Anonymous

    Anonymous - 2015-10-20

    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 createList action back at the time — which raise an error because the createdAt date of the list is then undefined.

     
  • Anonymous

    Anonymous - 2015-10-20

    Ticket changed by: mquandalle

    • status: open --> closed
     
  • Anonymous

    Anonymous - 2015-10-20

    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!

     

Log in to post a comment.