Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit check for buckets seems broken #355

Open
Ma27 opened this issue Nov 13, 2024 · 8 comments
Open

Limit check for buckets seems broken #355

Ma27 opened this issue Nov 13, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@Ma27
Copy link
Contributor

Ma27 commented Nov 13, 2024

Description

I observed it multiple times that even though the amount of cards was well below the limit.
After checking the task_buckets table, I found 201 entries with bucket_id 95 even though said bucket only has 58 entries currently.

After examining the list, I realized that there are also tasks that were

  • closed (even though the saved_filter has done = false)
  • archived projects (my expectation is that these are ignored by filters)
  • stuff that used to have the label that is required to belong to the filter

and probably more.

AFAIU the reason I get the correct amount of cards is because the filter is evaluated each time. If this code would also rely on said table, I'd probably get all 201 entries.

To me this pretty much looks like several write operations don't have an update event for task_buckets.
Also, it would be pretty neat if a migration could clean this table up when the bug gets fixed.

Vikunja Version

0.24.4

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Please select

Screenshots

No response

@kolaente kolaente added the bug Something isn't working label Nov 15, 2024
@kolaente
Copy link
Member

Does this happen only with filters?

@Ma27
Copy link
Contributor Author

Ma27 commented Nov 15, 2024

I only observed it with filters so far, yes.

@kolaente
Copy link
Member

kolaente commented Nov 22, 2024

Does this happen only with bucket filters? I was unable to reproduce this with a saved filter and a manual kanban board.

@Ma27
Copy link
Contributor Author

Ma27 commented Nov 22, 2024

OK I'll do another reproduction attempt on a fresh installation here soon.

@kolaente
Copy link
Member

A fresh account from https://try.vikunja.io/demo-account-create/ might work as well.

@kolaente
Copy link
Member

Were you able to reproduce this?

@Ma27
Copy link
Contributor Author

Ma27 commented Dec 19, 2024

Please give me a few more days, too much other stuff to focus on Vikunja unfortunately :/

@kolaente
Copy link
Member

No worries! Happy to look into this again when you get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants