You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/04 20:51:35 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #15191: Bugfix: Task docs are not shown in the Task Instance Detail View

kaxil commented on a change in pull request #15191:
URL: https://github.com/apache/airflow/pull/15191#discussion_r606852448



##########
File path: airflow/www/views.py
##########
@@ -1247,7 +1247,7 @@ def task(self):
         # Color coding the special attributes that are code
         special_attrs_rendered = {}
         for attr_name in wwwutils.get_attr_renderer():
-            if hasattr(task, attr_name):
+            if getattr(task, attr_name, None) is not None:

Review comment:
       This is to not show attributes that are `None` -- that pollutes the TaskInstance screen.




-- 
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:
users@infra.apache.org