{"id":5310,"date":"2017-09-24T15:28:11","date_gmt":"2017-09-24T12:28:11","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5310"},"modified":"2017-09-24T18:11:23","modified_gmt":"2017-09-24T15:11:23","slug":"import-from-trello-fails-if-the-exported-board-has-a-no-color-label","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2017\/09\/24\/import-from-trello-fails-if-the-exported-board-has-a-no-color-label\/","title":{"rendered":"Import from Trello fails if the exported board has a &#8221;No color&#8221; label"},"content":{"rendered":"<p><strong>Impacted version<\/strong>: 0.39<\/p>\n<p><strong>Server Setup Information<\/strong>:<\/p>\n<ul>\n<li>Operating System: Ubuntu 16.04<\/li>\n<li>Deployment Method: snap<\/li>\n<\/ul>\n<p><code>snap info wekan<\/code> reports snap-id as <code>jtpboSYvTCEyHoutkkRo1SI9ioSMOUb3<\/code> (tracking: stable). I&#8217;m not sure how to find out Node and MongoDB versions from the snap, but if the snap ID isn&#8217;t enough, just show me how to get those version numbers and I&#8217;ll add them.<\/p>\n<ul>\n<li>ROOT_URL environment variable (Is there a subfolder?): <a href=\"http:\/\/localhost:5000\/\">http:\/\/localhost:5000<\/a> (inside a VM)<\/li>\n<\/ul>\n<p><strong>Steps to reproduce<\/strong>:<\/p>\n<ol>\n<li>Create a board in Trello.<\/li>\n<li>Create a list in the board.<\/li>\n<li>Create a card in the list.<\/li>\n<li>Create a new label in the card. Name it, then select &#8221;No color&#8221;.<\/li>\n<li>Export the board as JSON.<\/li>\n<li>In Wekan, initiate a Trello import.<\/li>\n<li>Map the user.<\/li>\n<\/ol>\n<p><strong>What I expect to happen<\/strong>:<br \/>\nFor the board to be imported in Wekan.<\/p>\n<p><strong>What happens<\/strong>:<br \/>\nThe importer reports a &#8217;400&#8217;. <code>journalctl -u snap.wekan.wekan.service<\/code> reports<\/p>\n<pre><code>Exception while invoking method 'importBoard' Error: Color is required\r\n    at getErrorObject (packages\/aldeed_collection2-core.js:480:15)\r\n    at [object Object].doValidate (packages\/aldeed_collection2-core.js:462:13)\r\n    at [object Object].Mongo.Collection.(anonymous function) [as insert] (packages\/aldee\r\n    at packages\/matb33_collection-hooks.js:127:46\r\n    at [object Object]._.extend.withValue (packages\/meteor.js:1122:17)\r\n    at Object.directOp (packages\/matb33_collection-hooks.js:47:27)\r\n    at Object.self.direct.(anonymous function) [as insert] (packages\/matb33_collection-h\r\n    at TrelloCreator.createBoardAndLabels (models\/trelloCreator.js:195:35)\r\n    at TrelloCreator.create (models\/trelloCreator.js:605:26)\r\n    at [object Object].Meteor.methods.importBoard (models\/import.js:27:20)\r\n    at packages\/check.js:130:16\r\n    at [object Object]._.extend.withValue (packages\/meteor.js:1122:17)\r\n    at Object.exports.Match._failIfArgumentsAreNotAllChecked (packages\/check.js:129:41)\r\n    at maybeAuditArgumentChecks (packages\/ddp-server\/livedata_server.js:1734:18)\r\n    at packages\/ddp-server\/livedata_server.js:719:19\r\n    at [object Object]._.extend.withValue (packages\/meteor.js:1122:17)\r\nSanitized and reported to the client as: Color is required [400]\r\n<\/code><\/pre>\n<p>I&#8217;m attaching the <a href=\"https:\/\/github.com\/wekan\/wekan\/files\/1327300\/null-color-pretty.json.txt\">failing JSON<\/a> (with email sanitized).<\/p>\n<p>I haven&#8217;t looked into what philosophical meaning Trello assigns to uncolored labels; in practice, they appear as grey in the web UI, and as nulls in the exported JSON.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The importer reports a &#8217;400&#8217;. journalctl -u snap.wekan.wekan.service reports &#8221;Exception while invoking method &#8217;importBoard&#8217; Error: Color is required&#8221;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14041,14042],"class_list":["post-5310","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-trello","tag-wekan","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5310","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5310"}],"version-history":[{"count":6,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5310\/revisions"}],"predecessor-version":[{"id":5317,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5310\/revisions\/5317"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5310"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}