fetch tasks for caldav lists #641

Merged
konrad merged 6 commits from freaktechnik/api:caldav-tasks into master 2020-10-18 10:40:51 +00:00
Contributor

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

  • I added or improved tests
  • I added or improved docs for my feature
    • Swagger (including make do-the-swag)
    • Error codes
    • New config options
# 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 * [ ] I added or improved tests * [ ] I added or improved docs for my feature * [ ] Swagger (including `make do-the-swag`) * [ ] Error codes * [ ] New config options
freaktechnik added 1 commit 2020-08-23 21:29:28 +00:00
continuous-integration/drone/pr Build is passing Details
464e539897
fetch tasks for caldav lists
Owner

There seems to be an issue with the build server, I hope to fix that soon.

There seems to be an issue with the build server, I hope to fix that soon.
konrad requested changes 2020-08-24 19:55:56 +00:00
konrad left a comment
Owner

Looks great so far, thanks!

Could you add a test?

Looks great so far, thanks! Could you add a test?
@ -399,0 +409,4 @@
return
}
tasks, ok := iface.([]*models.Task)
if ok {
Owner

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 an else) That way it would be catched in the tests if it fails.

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 an `else`) That way it would be catched in the tests if it fails.
Owner

Done.

Done.
konrad marked this conversation as resolved
Owner

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.

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

> 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. 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).
konrad added 1 commit 2020-09-27 18:32:16 +00:00
continuous-integration/drone/pr Build is passing Details
359519f74c
Merge branch 'master' into caldav-tasks
konrad added 1 commit 2020-10-03 19:47:43 +00:00
continuous-integration/drone/pr Build is passing Details
caba72d276
Merge branch 'master' into caldav-tasks
konrad added 1 commit 2020-10-17 20:04:00 +00:00
continuous-integration/drone/pr Build is passing Details
3abb3b471d
Merge branch 'master' into caldav-tasks
konrad added 1 commit 2020-10-17 20:08:55 +00:00
konrad added 1 commit 2020-10-18 10:10:17 +00:00
continuous-integration/drone/pr Build is passing Details
8bcce59973
Fix shadowed error
konrad merged commit 1555081939 into master 2020-10-18 10:40:51 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#641
No description provided.