Overview showing tasks with due dates far in the future rather than near #52

Closed
opened 2025-11-01 20:45:33 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @Break-Off on GitHub (May 24, 2022).

Description of the issue

When there are more than 50 tasks with defined due dates in the future, Vikunja will only show the ones that are farther in the future, instead of prioritizing those nearer or overdue.

Steps to reproduce

  1. Create a task with an overdue date
  2. Create a task with a near due date (e.g. tomorrow)
  3. Create 50 tasks with a far due date (e.g. by the end of the year)
  4. Both the overdue and the near due date task will be displaced in the overview, showing only the ones farther in the future.

Expected behavior

Vikunja should prioritize showing those tasks that are either overdue or in the near future, while hiding those that are far in the future.

Originally created by @Break-Off on GitHub (May 24, 2022). ### Description of the issue When there are more than 50 tasks with defined due dates in the future, Vikunja will only show the ones that are farther in the future, instead of prioritizing those nearer or overdue. ### Steps to reproduce 1. Create a task with an overdue date 2. Create a task with a near due date (e.g. tomorrow) 3. Create 50 tasks with a far due date (e.g. by the end of the year) 4. Both the overdue and the near due date task will be displaced in the overview, showing only the ones farther in the future. ### Expected behavior Vikunja should prioritize showing those tasks that are either overdue or in the near future, while hiding those that are far in the future.
GiteaMirror added the bug label 2025-11-01 20:45:33 -05:00
Author
Owner

@kolaente commented on GitHub (May 27, 2022):

I was able to reproduce this in a test. Looks like it is a combination of bugs in the frontend and api.

What database are you using?

@kolaente commented on GitHub (May 27, 2022): I was able to reproduce this in a test. Looks like it is a combination of bugs in the frontend and api. What database are you using?
Author
Owner

@Break-Off commented on GitHub (May 27, 2022):

Thanks for looking into the issue. I am using MariaDB, LinuxServer flavor.

@Break-Off commented on GitHub (May 27, 2022): Thanks for looking into the issue. I am using [MariaDB, LinuxServer flavor](https://docs.linuxserver.io/images/docker-mariadb).
Author
Owner

@kolaente commented on GitHub (May 28, 2022):

I've put up two PRs which should fix this:

https://kolaente.dev/vikunja/api/pulls/1177

https://kolaente.dev/vikunja/frontend/pulls/1997

I'll ping again once there's a way to test these (right now it's a bit complicated).

@kolaente commented on GitHub (May 28, 2022): I've put up two PRs which should fix this: https://kolaente.dev/vikunja/api/pulls/1177 https://kolaente.dev/vikunja/frontend/pulls/1997 I'll ping again once there's a way to test these (right now it's a bit complicated).
Author
Owner

@kolaente commented on GitHub (May 31, 2022):

There's a test deployment from the frontend pr now: https://1997-fix-due-soon-first--vikunja-frontend-preview.netlify.app/

Could you check if it works as intended on that test instance?

@kolaente commented on GitHub (May 31, 2022): There's a test deployment from the frontend pr now: https://1997-fix-due-soon-first--vikunja-frontend-preview.netlify.app/ Could you check if it works as intended on that test instance?
Author
Owner

@Break-Off commented on GitHub (May 31, 2022):

Yes, it works! Thank you for your promptness!

@Break-Off commented on GitHub (May 31, 2022): Yes, it works! Thank you for your promptness!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#52