mik-laj commented on a change in pull request #7593: [AIRFLOW-6959] Use NULL as 
dag.description default value and change r…
URL: https://github.com/apache/airflow/pull/7593#discussion_r386094127
 
 

 ##########
 File path: airflow/www/templates/airflow/dag.html
 ##########
 @@ -33,7 +33,8 @@ <h3 class="pull-left">
         <span style='color:#AAA;'>SUBDAG: </span> <span> {{ dag.dag_id 
}}</span>
       {% else %}
         <input id="pause_resume" dag_id="{{ dag.dag_id }}" type="checkbox" {{ 
"checked" if not dag.is_paused else "" }} data-toggle="toggle" data-size="mini" 
method="post">
-        <span style='color:#AAA;'>DAG: </span> <span> {{ dag.dag_id }}</span> 
<small class="text-muted"> {{ dag.description }} </small>
+        <span style='color:#AAA;'>DAG: </span> <span> {{ dag.dag_id }}</span>
+        <small class="text-muted"> description: {{ dag.description[0:150] + 
'...' if dag.description and dag.description|length > 150 else dag.description 
}} </small>
 
 Review comment:
   Shouldn't we hide this text if dag.description == None?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to