Xiaodong DENG created AIRFLOW-2872: -------------------------------------- Summary: Minor bugs in "Ad Hoc Query" view, and refinement Key: AIRFLOW-2872 URL: https://issues.apache.org/jira/browse/AIRFLOW-2872 Project: Apache Airflow Issue Type: Improvement Components: ui Reporter: Xiaodong DENG Assignee: Xiaodong DENG
# The ".csv" button in *Ad Hoc Query* view is responding with a plain text file, rather than a CSV file (even though users can manually change the extension). # Argument 'has_data' passed to the template is not used by the template 'airflow/query.html'. # Sometimes get errors 'UnboundLocalError: local variable 'df' referenced before assignment' # 'result = df.to_html()' should only be invoked when user doesn NOT choose '.csv'. Otherwise it's a waste of resource to invoke 'df.to_html()' since the result it returns will not be used if user askes for CSV downloading instead of a html page. -- This message was sent by Atlassian JIRA (v7.6.3#76005)