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

Filters are very unstable #366

Open
bramvdzee opened this issue Nov 28, 2024 · 7 comments
Open

Filters are very unstable #366

bramvdzee opened this issue Nov 28, 2024 · 7 comments

Comments

@bramvdzee
Copy link

bramvdzee commented Nov 28, 2024

Description

There's a few things I've noticed with filters, both on the API and in the UI.

  1. Chaining more than one filter completely breaks the filter. At least when using due dates. This is true in the API, direct filters and saved filters.
  2. The cursor in the saved filters textbox often misaligns when typing. I find that this most often happens when it's trying to compensate for certain words (due_date being replaced with dueDate).
  3. Saved Filters are assigned negative identifiers
  4. Saved Filters are not queryable through the API (maybe because the ID is negative).

Are filters in active development right now? At the moment, it's not usable at all.

Vikunja Version

0.24.5

Browser and version

Safari MacOS & iOS

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

image image image
@bramvdzee bramvdzee changed the title Filter's are very unstable Filters are very unstable Nov 28, 2024
@kolaente
Copy link
Member

Chaining more than one filter completely breaks the filter. At least when using due dates. This is true in the API, direct filters and saved filters.

Can you provide the exact filter queries which don't work? And how you're executing them?

The cursor in the saved filters textbox often misaligns when typing. I find that this most often happens when it's trying to compensate for certain words (due_date being replaced with dueDate).

That's definitely a bug.

Saved Filters are assigned negative identifiers

This is by design.

Saved Filters are not queryable through the API (maybe because the ID is negative).

They are queriable through the API, otherwise the Frontend wouldn't be able to show tasks from filters. How are you querying them?

@bramvdzee
Copy link
Author

bramvdzee commented Nov 28, 2024

image

This the filter I'm trying to use in the UI for unfinished tasks, with a due date of the coming minute.
This is the API endpoint I'm trying to use: /api/v1/tasks/all?filter=done=false&&due_date>=now (also tried URL encoded).

Scratch that part about the Saved Filters. I saw that I didn't grant permission on my API key. Though I would've expected a different message than this:
{ "message": "missing, malformed, expired or otherwise invalid token provided" }

Edit: the API key permission message is more clear than I thought. It's getting late lol

@kolaente
Copy link
Member

kolaente commented Dec 4, 2024

Did you get an error message when passing the filter? Or does it just not contain the tasks you were expecting?

@bramvdzee
Copy link
Author

There’s no errors. It displays all tasks witout a due date with those filters, but I noticed that sometimes when I do +2h it does include the ones with a due date. Perhaps it’s a timezone issue?

@kolaente
Copy link
Member

kolaente commented Dec 5, 2024

Did you configure your time zone?

@bramvdzee
Copy link
Author

I did, it’s on Europe/Amsterdam. Both the docker container and the profile.

@kolaente
Copy link
Member

kolaente commented Dec 9, 2024

Does it change if you use the next two minutes? This might be related to the one minute window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants