fix(migration): Trello checklists #2140
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#2140
Loading…
Reference in New Issue
No description provided.
Delete Branch "cr-insane/vikunja:fix-trello-checklist"
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?
Importing checklists from trello didnt work with the markdown. Changed it to the corresponding HTML Tags
Importing checklists from trello didnt work with the markdown. Changed it to the corresponding HTML Tagsto fix(api): Trello checklistsfix(api): Trello checkliststo fix(migration): Trello checklistsThanks for the PR!
Please take a look at the failing ci pipeline and fix the failing test assertions.
Hi cr-insane!
Thank you for creating a PR!
I've deployed the frontend changes of this PR on a preview environment under this URL: https://2140-fix-trello-checklist--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/.
This preview does not contain any changes made to the api, only the frontend.
Have a nice day!
After taking another look at this I am realizing, that the issue probably isn't in the import itself rather than in parsing the markdown tags in the frontend. I have no idea how to fix this in the frontend, sorry.
I think what you're doing is on the right track. What makes you think it's a frontend issue?
0f1347a016
to7cdb4d7508
My thinking was, that the issue is in parsing the description with markup tags. While the markup tags work, when using the built in editor, they don't work. But I thought about it again and I think you are right :D
Sorry, atm I only have time for that stuff late and night, so my brain might be a bit foggy
I had some more errors in the test. It was easier, when I figured out how to run the tests locally.
But now I cant see anymore differences and I would appreciate a little headsup.
@ -232,3 +232,3 @@
// Checklists (as markdown in description)
for _, checklist := range card.Checklists {
task.Description += "\n\n## " + checklist.Name + "\n"
task.Description += "\n\n<h1> " + checklist.Name + "</h1>\n\n<ul data-type='taskList'>"
Please make this an
h2
, as it was before.@ -238,2 +237,3 @@
task.Description += "\n"
if item.State == "complete" {
task.Description += "[x]"
task.Description += "<li data-checked='true' data-type='taskItem'><label><input type='checkbox' checked='checked'><span></span></label><div><p>"
Does this work if you use
"
instead of'
?unfortunately not :/
e5d46d51ea
to0e74b584e8
25be8a5eef
to0e74b584e8
Thanks again! I've fixed the little things, should be good now.