WeblateOrg / WeblateOrg/weblate

Search for a string in 'flags'

Open
#10,204 9 comments 1 reaction 1 assignee Claimed by @amCap1712 View on GitHub
enhancement Waiting for: Implementation
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the problem

I set some flags to check if the text fits the text box:
So I do a 'Bulk edit' with "note:Button" in the search field and I fill 'Translation flags to add' with "max-size:110:2,font-family:NotoSans,font-size:22".
That's really great! Now I can search for "check:max-size" and I see all the texts that need to be shortened :-)
So far this works fine!

**Now, to clean older "max-size" settings I would like to search for flags with "max-size" or even search for flags with "font-family" not equals to "NotoSans".**

**I expected the search string "flags:searchstring" to do what I want but it results in "Invalid search query!" (Error in parameter q: Could not parse query string: Unsupported field: flags)**

### Describe the solution you'd like

Using the search string **"flags:searchstring" should result in all strings that have "searchstring" in the "Flags" field!**

### Describe alternatives you've considered

So far, to make sure my flags-settings are all correct (no old ones) I search for "has:flags", remember a few flags I see, then I do a 'Bulk edit' with "has:flags" and 'Translation flags to remove' with some of the flags I have seen.
I repeat until "has:flags" returns no strings anymore. Now that all flags are cleared, I have to add the flags that I want with a series of Bulk edits.
This is my work-around how to get rid of old flags :-(

### Screenshots

_No response_

### Additional context

Note that "flags:searchstring" would close the gap and be consistent with the other queries:

**What I want >> What I enter**
Find strings with Suggestions >> has:suggestion
Find strings with Comments >> has:comment
Find strings with Explanations >> has:explanation
Find strings with Flags >> **has:flags - This works fine!**
Search for a string in Suggestions >> suggestion:"a string"
Search for a string in Comments >> comment:"a string"
Search for a string in Explanation >> explanation:"a string"
Search for a string in Flags >> **flags:"a string" - This does not work!**

___
Also note that a Support Ticket [Ticket#208540] did not help:

From: Michal Čihař via Weblate Care
Sent: Freitag, 13. Oktober 2023 11:23
To: Baeumle Bernhard MTANA
Subject: Re: EXTERNAL - Weblate 4.14 - how to search for flags? [Ticket#208540]

Hello Baeumle,

This is currently not supported, you are welcome to file a feature request at https://github.com/WeblateOrg/weblate/issues/new?template=feature_request.yml

Best regards,
Michal Čihař

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.