Browse Source

HUE-6563 [editor] Filter out workflow history from task history

Romain Rigaux 8 years ago
parent
commit
923a144
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/models.py

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -977,7 +977,7 @@ class Document2Manager(models.Manager, Document2QueryMixin):
     return self.documents(user, perms='owned', include_history=True, include_trashed=include_trashed).filter(type=doc_type, is_history=True)
 
   def get_tasks_history(self, user):
-    return self.documents(user, perms='owned', include_history=True, include_trashed=False, include_managed=True).filter(is_history=True, is_managed=True).exclude(name='pig-app-hue-script')
+    return self.documents(user, perms='owned', include_history=True, include_trashed=False, include_managed=True).filter(is_history=True, is_managed=True).exclude(name='pig-app-hue-script').exclude(type='oozie-workflow2')
 
   def get_home_directory(self, user):
     try: