pierrejeambrun opened a new pull request, #70583: URL: https://github.com/apache/airflow/pull/70583
Follow-up to #68833. That PR exposed `owner_display_name` in the audit log, but the action-logging decorator stored `user.get_name()` in **both** `owner` and `owner_display_name`, so the new column always matched the existing owner column — no visible benefit. This adds a `get_display_name()` to the auth manager user model so the two can differ: - `BaseUser.get_display_name()` is **not** abstract and defaults to `get_name()`, so auth managers written before this method existed keep working unchanged. - The FAB user returns its full name (`get_full_name()`). - `action_logging` now records `get_display_name()` in `owner_display_name` while `owner` keeps the raw identifier (`get_name()`), so the audit log can show a friendlier name where the auth manager provides one (and falls back to `owner` everywhere else). The simple auth manager only knows a username, so it intentionally has no override and uses the inherited fallback. --- ##### 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]
