[ 
https://issues.apache.org/jira/browse/AIRFLOW-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joy Gao resolved AIRFLOW-2504.
------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request #3438
[https://github.com/apache/incubator-airflow/pull/3438]

> Airflow UI Auditing - log username show extra filter
> ----------------------------------------------------
>
>                 Key: AIRFLOW-2504
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2504
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Junda Yang
>            Assignee: Junda Yang
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> 1. There is a bug in the 
> [action_logging|https://github.com/apache/incubator-airflow/blob/1f0a717b65e0ea7e0127708b084baff0697f0946/airflow/www/utils.py#L249]
>  of old UI. The *username* attribute is always in *current_user* but it is 
> *None*. We should call *current_user.user.username* to get the username. See 
> example usage of 
> [current_user.user.username|https://github.com/apache/incubator-airflow/blob/1f0a717b65e0ea7e0127708b084baff0697f0946/airflow/www/views.py#L1929]
> 2. We also need to add a column filter on *extra* so we can search for 
> request content, like who send what kind of write request from Airflow UI, as 
> the action_logging is [logging all request 
> parameters|https://github.com/apache/incubator-airflow/blob/1f0a717b65e0ea7e0127708b084baff0697f0946/airflow/www/utils.py#L258]
>  in extra field.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to