mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
[Bug Report] Problem with Trello import function #291
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Jakinlade on GitHub (Feb 17, 2023).
I seem to be having some difficulty importing trello .json files into planka.
My deployment is through Docker Compose, i have been running Planka for a while and all other functions seem to be working correctly.
When I import nothing happens within the GUI and the log kicks out the following error.
2023-02-17 10:48:23 [E] Sending 500 ("Server Error") response: ,
Invalid new record.,
Details:,
Missing value for required attribute
position. Expected a number, but instead, got: undefinedPrior to posting this, I did try a few things including correctly parsing the .json and double checking my deployment for things such as write errors. Let me know if there is additional information I can share to help diagnose the problem I am having.
@meltyshev commented on GitHub (Feb 18, 2023):
Hi!
Thank you for reporting this. There seems to be a bug somewhere, also we have not tested this feature much. I'd be happy to fix it, but I need to reproduce it somehow.
There are 3 entities with the
posfield in the import file: list, card, checklistItem. Probably, in some case this field is missing, which leads to an error. I would suggest to addconsole.log(trelloCheckItem);above line 70,console.log(trelloCard);above line 103 andconsole.log(trelloList);above line 138 toserver/api/helpers/boards/import-from-trello.jsand see what output comes before the error.Or you can also send the import file here and I will try to look at it myself, but of course removing all private data from it.
@christophenne commented on GitHub (Feb 19, 2023):
Hi,
it seems that the import is broken completely, independently of the import file. I just tested it locally too with the sample file I used to develop with: sample-board-export.json.
Possible hint for debugging/fixing: I remember some time ago there was a breaking API change, I fixed it in the trello2planka client:
bc83740e19. I didn't check whether it affected the integrated planka import too, but maybe that is related. Other than that, I haven't really had the time to check the latest planka changes, so it might also be something different that breaks the import.@matatentacle commented on GitHub (Feb 20, 2023):
Hey @meltyshev,
I work with @Jakinlade and we are both big fans of Planka, so thanks for the all the hard work. Here are the log files. I will also send you the Trello file later today.
debug: Detected Sails environment is "production", but NODE_ENV is
undefined.,debug: Automatically setting the NODE_ENV environment variable to "production".,
debug: ,
debug: Detected Sails environment is "production", but NODE_ENV is
undefined.,debug: Automatically setting the NODE_ENV environment variable to "production".,
debug: ,
debug: Detected Sails environment is "production", but NODE_ENV is
undefined.,debug: Automatically setting the NODE_ENV environment variable to "production".,
debug: ,
2023-02-20 06:47:24 [E] Sending 500 ("Server Error") response: ,
Invalid new record.,
Details:,
Missing value for required attribute
position. Expected a number, but instead, got: undefined@meltyshev commented on GitHub (Feb 20, 2023):
Sorry, my bad 🙈 I added labels reordering and they now have a required position field. I'll try to do a quick fix now.
@matatentacle commented on GitHub (Feb 22, 2023):
Thanks for the Fix @meltyshev massivly appriciated.
@Jakinlade commented on GitHub (Feb 22, 2023):
Yes this has really helped us out! Thanks again @meltyshev !