[
https://issues.apache.org/jira/browse/AIRFLOW-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Junda Yang updated AIRFLOW-2504:
--------------------------------
Priority: Minor (was: Major)
Description:
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.
was:
h1. Exit Criteria:
Have a table in metadata database to log who did what on Airflow UI (i.e. turn
on/off a dag; clear task instance).
Issue Type: Improvement (was: New Feature)
Summary: Airflow UI Auditing - log username show extra filter (was:
Airflow UI Auditing)
> 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
>
> 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)