Hello Team, Is there a way to populate “Documentat...
# troubleshoot
g
Hello Team, Is there a way to populate “Documentation” information for Airflow DAG at the task level? Similar to the description field Airflow DAGs is used to fill up documentation at the pipeline level. We use DataHub Airflow lineage plugin for Airflow Datahub integration Datahub version 0.9.5 Airflow v2.3.4
✅ 1
g
As per
DataHub Airflow lineage plugin
, it is not setting any description field
Airflow task support doc, doc_md and other field to set the documentation, I believe we do need a enhancement in plugin to capture the detail from any of these properties
g
Thanks for confirming @gentle-hamburger-31302 👍
w
Was this feature available @gentle-hamburger-31302? Ingesting the docs_md from airflow as documentation? I submitted a request for this regardless - https://feature-requests.datahubproject.io/p/support-airflow-documentations-as-datahub-documentation
g
@green-football-43791 Could you please address this ?
w
Following up on this ☝️
Updating this request. It looks like datahub pulls in the docs at the pipeline level and not at the task level. Shouldnt this be the case for all tasks in an airflow pipeline?
q
Looks like it works for me at the task level?
Copy code
task2 = BashOperator(
    task_id="run_data_task2",
    doc_md="""
    This is what the second data task does.""",
    dag=dag,
    bash_command="echo 'hello world 2'",)
Would be great if you could render markdown in Datahub (like you can for other fields), but doesn’t seem like that’s possible now. Tried to write some markdown for the first query, and it didn’t work.
Copy code
doc_md="""
        This is what the first data task does. You can insert a [link](<https://www.youtube.com/watch?v=dQw4w9WgXcQ>).
        
        ## You can add a section
        you can have content in the subsection
        
        ### you can add a subsection
        
        - that subsection can have bullet points
        - wow a second bullet point!
        """
plus1 1
w
Agreed, can this feature be added. Have datahub render the doc_md as markdown in the UI?