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

   <!--
   Thank you for contributing! Please make sure that your PR targets the `main` 
branch.
   -->
   
   Closes: #43068
   
   ### Description
   Queries selecting single primary models directly without collection 
`joinedload` do not produce duplicate model instances. Calling `.unique()` on 
such scalar queries adds redundant set-deduplication overhead and can be safely 
removed.
   
   This PR cleans up unneeded `.unique()` calls in:
   - 
`providers/fab/src/airflow/providers/fab/auth_manager/security_manager/override.py`
 (`find_role`, `get_all_roles`)
   - 
`providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/services/roles.py`
 (`get_roles`)
   - 
`providers/fab/src/airflow/providers/fab/auth_manager/api_fastapi/services/users.py`
 (`get_users`)
   
   Signed-off-by: Sundeep <[email protected]>


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