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

Adding 'labels != <anything>' filter filters out all issues without a label set #285

Open
bayger opened this issue Jul 9, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@bayger
Copy link

bayger commented Jul 9, 2024

Description

If you try to add any filter to NOT show issues with a particular label it also filters out all issues that have no label set. Expected behavior would be to show also issues without any label set and only filter out issues with specified label in the filter.

How to reproduce on the demo site:

  • go to Inbox project
  • edit List view and add '&& labels != Personal' to the filter
  • all issues without label set will disappear

Vikunja Version

0.24

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Yes

Screenshots

No response

@kolaente
Copy link
Member

Does it work if you check the checkbox below the filter input which says 'include tasks which don't have a value set'?

@bayger
Copy link
Author

bayger commented Jul 10, 2024

Does it work if you check the checkbox below the filter input which says 'include tasks which don't have a value set'?

I don't have such checkbox available. Is it something new? My version is 0.24.0.
image

@kolaente
Copy link
Member

Ah, I thought you were using the filter in the view. I think to solve this properly, we'll need to implement null filtering as requested here and get rid of the checkbox: https://community.vikunja.io/t/filtering-search-for-null/2572/3

@bayger
Copy link
Author

bayger commented Jul 10, 2024

Now I wonder if we could simply return TRUE for the inequality operator applied to an empty/null entity? Or would it screw up something elsewhere? Not sure about the expected behavior there though.

@kolaente
Copy link
Member

It's not as simple as that, because the query is translated to a sql query under the hood.

@kolaente kolaente added bug Something isn't working enhancement New feature or request labels Sep 13, 2024
@horusofoz
Copy link

Would the proposed null filter also allow for filtering tasks where startDate is not set?

@nosbig
Copy link

nosbig commented Jan 10, 2025

I would love to have null filtering/searching as well, as I'd like to build a filter to find all tasks with no labels so that I can work a backlog queue and assign labels for any tasks missing my desired label structure.

@kolaente kolaente marked this as a duplicate of #393 Jan 17, 2025
@kolaente kolaente removed the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants