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

   Follow-up to #70583, which added `BaseUser.get_display_name` and used it so 
audit-log rows show a friendly user name instead of the raw login.
   
   Several other user-facing fields still recorded `get_name()` (the raw login):
   
   - `triggering_user_name` on manually triggered Dag runs, backfills, and 
asset materializations — shown in the Dag Runs table and the Run header.
   - The HITL responder name (`responded_by`) — shown in the HITL table and 
response form.
   
   These now use `get_display_name()` too, so what the user sees is consistent 
with the audit log. For auth managers that don't override `get_display_name` 
(Simple, Keycloak) it falls back to `get_name`, so their behavior is unchanged; 
FAB users get their full name.
   
   The edge3 worker maintenance-comment site (`get_name()` embedded in a 
comment string) is intentionally left out and will be a separate follow-up: 
that provider can run against an older core without the `get_display_name` 
interface, so it needs a `hasattr(user, "get_display_name")` compatibility 
guard.
   
   ---
   
   ##### 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