فهرست منبع

HUE-4152 [oozie] Managed document property blocks access to workflows of coordinators

One day we might switch to using True, False and None in case we want to retrieve
only the managed ones, but this does not seem useful now and we use this convention
for the other search attributes.
Romain Rigaux 9 سال پیش
والد
کامیت
e7afa07
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      desktop/core/src/desktop/models.py

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

@@ -859,7 +859,8 @@ class Document2QueryMixin(object):
     if not include_history:
       docs = docs.exclude(is_history=True)
 
-    docs = docs.filter(is_managed=include_managed)
+    if not include_managed:
+      docs = docs.exclude(is_managed=True)
 
     if not include_trashed:
       # Since the Trash folder can have multiple directory levels, we need to check full path and exclude those IDs