Skip to content

Filtering by label with an AND condition does not work as expected #17720

@datenspast

Description

@datenspast

Describe the issue

I guess this is a bug and it worked in previous versions, but I`m not 100 % sure.

We have several strings which are tagged with several labels.
For example one source string is labled with "ABC" and "XYZ".

If I search for "label:ABC", the search works.
If I search for "label:XYZ", the search works.
If I search for "label:ABC OR label:XYZ", the search works as expected.
If I search for "label:ABC AND label:XYZ", no results are shown, although there are strings which have both labels.

On the other hand searching for something like "changed:>='7 days ago' AND changed:<='2 days ago'" works as expected.

Thanks for your help!

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

  1. Add two labels to one string.
  2. Try to search for this with the query "label:ABC AND label:XYZ".

Expected behavior

I would expect to see all strings which match the condition, e.g. which have both labels.

Screenshots

No response

Exception traceback

How do you run Weblate?

Docker container

Weblate versions

[Weblate 5.15]

Weblate deploy checks

Additional context

No response

Metadata

Metadata

Assignees

Labels

Waiting for: ImplementationAdded to a milestone, will be resolved according to the milestone timeline.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions