shahar1 opened a new pull request, #69372:
URL: https://github.com/apache/airflow/pull/69372

   `GET /api/v2/dags?owners=<x>` filtered with a substring `LIKE` against 
`DagModel.owners`, which stores a comma-joined list of owners. So `owners=air` 
also returned Dags owned by `airflow`, and `owners=team_a` returned 
`team_a_legacy` / `team_a_archive`.
   
   This switches the filter to match whole comma-separated entries: the stored 
list is normalised and comma-wrapped so a requested owner only matches a Dag 
that actually lists that owner (including owners in the middle/end of a 
multi-owner list). User-supplied `%`/`_` are still escaped as before.
   
   A previous attempt (#66775) addressed the same report but was closed after 
CI failures; this PR revives the fix with the escaping preserved, multi-owner 
coverage, and a newsfragment.
   
   closes: #42790
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
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