fetch tasks for caldav lists #641
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#641
Loading…
Reference in New Issue
No description provided.
Delete Branch "freaktechnik/api:caldav-tasks"
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?
Description
This is just the part that fixed the issue with caldav returning empty responses due to lists not having tasks anymore.
Somehow the vscode go plugin insists on re-organizing the imports, too. I'm not familiar enough with go and its ecosystem to understand what's going on there.
Checklist
make do-the-swag
)There seems to be an issue with the build server, I hope to fix that soon.
Looks great so far, thanks!
Could you add a test?
@ -399,0 +409,4 @@
return
}
tasks, ok := iface.([]*models.Task)
if ok {
By design, this should always be true, if it isn't something is wrong with the implementation. Could you add a
panic
in that case? (In anelse
) That way it would be catched in the tests if it fails.Done.
That's fine - it is a best-practice to do this which I've yet to add a linter for in the pipeline (I plan on doing this while reorganizing the tooling and such).