Caldav only supports 1000 Tasks per project #2302

Closed
opened 2024-04-25 11:28:43 +00:00 by ce72 · 2 comments
Contributor

Description

I am a happy user of Vikunja and recently must have created my 1000th task (most of them are 'done' of course).
Since then any new tasks don't appear in tasks.org which I sync via Caldav.

A quick check with curl seems to indicate that the reason might be on the Vikunja side:
curl -X GET -u user:password https://task.server.io/dav/projects/1 |grep SUMMARY |wc -l always yields 1000.

I guess the reason might be that the query limits to 1000 tasks per project: https://kolaente.dev/vikunja/vikunja/src/branch/main/pkg/routes/caldav/listStorageProvider.go#L639

Do you think this value can be increased (or unlimited)? Maybe per configuration?
I do not really want to remove my done tasks from the database.

Vikunja Version

0.23.0

Browser and version

tasks.org, curl

Can you reproduce the bug on the Vikunja demo site?

Please select

Screenshots

No response

### Description I am a happy user of Vikunja and recently must have created my 1000th task (most of them are 'done' of course). Since then any new tasks don't appear in tasks.org which I sync via Caldav. A quick check with curl seems to indicate that the reason might be on the Vikunja side: `curl -X GET -u user:password https://task.server.io/dav/projects/1 |grep SUMMARY |wc -l` always yields `1000`. I guess the reason might be that the query limits to 1000 tasks per project: https://kolaente.dev/vikunja/vikunja/src/branch/main/pkg/routes/caldav/listStorageProvider.go#L639 Do you think this value can be increased (or unlimited)? Maybe per configuration? I do not really want to remove my done tasks from the database. ### Vikunja Version 0.23.0 ### Browser and version tasks.org, curl ### Can you reproduce the bug on the Vikunja demo site? Please select ### Screenshots _No response_
ce72 added the
kind/bug
label 2024-04-25 11:28:43 +00:00
ce72 changed title from Caldav only supports 1000 Tasks to Caldav only supports 1000 Tasks per project 2024-04-25 11:35:01 +00:00
Owner

I don't know why it was restricted to 1000 tasks in the first place. Changed it to unlimited in 741370b613. Please check with the next unstable build if that fixes your problem.

I don't know why it was restricted to 1000 tasks in the first place. Changed it to unlimited in https://kolaente.dev/vikunja/vikunja/commit/741370b61339e146e07508d267d7cfa6383f5156. Please check with the next unstable build if that fixes your problem.
Author
Contributor

This is fine now. While looking at the code, I can also see that the number of projects are limited to 50. (For me that's enough, but other workflows might be possible).
https://kolaente.dev/vikunja/vikunja/src/branch/main/pkg/routes/caldav/listStorageProvider.go#L102

This is fine now. While looking at the code, I can also see that the number of projects are limited to 50. (For me that's enough, but other workflows might be possible). https://kolaente.dev/vikunja/vikunja/src/branch/main/pkg/routes/caldav/listStorageProvider.go#L102
Sign in to join this conversation.
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#2302
No description provided.