Hi all,

I'm in need of being able to manipulate the code view for many of my DAGs which 
are generated by a single Python script that reads config files. My DAG 
creation script is getting increasingly less useful to the end users so I would 
like to instead present the config file that was used to generate the DAG.

I took a look at the relevant code vide code in Airflow:  
https://github.com/apache/airflow/blob/3e2a02751cf890b780bc26b40c7cee7f1f4e0bd9/airflow/www/views.py#L433

It seems it would be a relatively easy change to add an extra option on the 
DAG, e.g. "dag.code_display_file" and maybe also a Lexer option, then detect if 
this option has been set for the DAG in the above location and display the 
specified file instead.

I don't have any experience contributing to open source projects of this size, 
would this be a welcome pull request? I'd rather not waste anyone's time if it 
isn't.

Thanks,
Damian

=============================================================================== 
Please access the attached hyperlink for an important electronic communications 
disclaimer: 
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html 
=============================================================================== 

Reply via email to