Displaying first_name+last_name or email in "Audit Log" on DAG details page#68833
Open
VladaZakharova wants to merge 1 commit into
Open
Displaying first_name+last_name or email in "Audit Log" on DAG details page#68833VladaZakharova wants to merge 1 commit into
VladaZakharova wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In Breeze / community Airflow, there are several types of auth managers that have different sets of fields, which actually leads to different data stored to DB about the user.
The default auth manager is usually SimpleAuthManager. It only knows simple login data like:
For example:
username: admin
role: admin
password: admin
So in default Breeze, the new column will look the same as old one:
User: admin.
User Display Name: admin.
The other one that can be also used is FAB manager. Available fields are:
The common solution will be for different auth managers like this:
Example:
first_name = Jane.
last_name = Smith.
email = jane@example.com.
username = jane.
User = jane.
User Display Name = Jane Smith.
Or:
first_name = empty.
last_name = empty.
email = jane@example.com.
username = jane.
User = jane.
User Display Name = jane@example.com.
This change will make the Audit log more informative for users.

Example how it will look like:
The change is implemented as a new Column in Audit Logs tab, which can be also hidden in side menu by user, if preferred to not be shown.
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.