seunggabi opened a new issue, #77623:
URL: https://github.com/apache/airflow/issues/77623

   ### Description
   
   Let the Dag list search box accept GitHub-style qualifiers, so several 
conditions fit in one query, e.g.:
   
   ```
   tag:etl -tag:deprecated owner:data -test
   ```
   
   | Token | Meaning | Maps to (existing API params) |
   |---|---|---|
   | `tag:a` | has tag `a` (repeat = all, `tag:a,b` = any) | `tags`, 
`tags_match_mode` |
   | `-tag:a` | does not have tag `a` | `exclude_tags` (#77622) |
   | `owner:x` | owner matches `x` | `owners` |
   | `word` / `-word` | Dag name matches / does not match | 
`dag_display_name_(prefix_)pattern` with `-` exclusions (#77622) |
   
   The UI would parse the query and translate it into the existing query 
parameters, so no new API is needed once #77622 lands.
   
   ### Use case/motivation
   
   With many Dags, users combine several conditions all the time ("team X's 
Dags, minus deprecated ones, minus test Dags"). Today this takes several clicks 
through filter pills, and the result cannot be typed or pasted as one string. 
GitHub, Jira and most issue trackers use this syntax, so it is familiar.
   
   ### Open questions
   
   - How should qualifiers in the search box relate to the filter pills? 
Options: (a) on submit, qualifiers turn into pills and only the free text stays 
in the box; (b) the box is the single source of truth and the pills reflect it; 
(c) both exist independently and are AND-ed.
   - Which qualifiers beyond `tag:` / `owner:` are worth supporting 
(`is:paused`, `state:failed`, ...)?
   
   Happy to implement it once there is agreement on the UX.
   
   ### Related issues
   
   #77622 adds the `exclude_tags` parameter and `-term` exclusions this builds 
on.
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to