Browse Source

HUE-8267 [oozie] Disable time filtering in the backend for schedules and bundles

Romain Rigaux 7 years ago
parent
commit
9b0abb6ac8

+ 3 - 0
apps/jobbrowser/src/jobbrowser/apis/bundle_api.py

@@ -44,6 +44,9 @@ class BundleApi(Api):
     oozie_api = get_oozie(self.user)
 
     kwargs = {'cnt': OOZIE_JOBS_COUNT.get(), 'filters': []}
+
+    filters.pop('time')
+
     _filter_oozie_jobs(self.user, filters, kwargs)
 
     jobs = oozie_api.get_bundles(**kwargs)

+ 2 - 0
apps/jobbrowser/src/jobbrowser/apis/schedule_api.py

@@ -43,6 +43,8 @@ class ScheduleApi(Api):
     oozie_api = get_oozie(self.user)
     kwargs = {'cnt': hasattr(OOZIE_JOBS_COUNT, 'get') and OOZIE_JOBS_COUNT.get(), 'filters': []}
 
+    filters.pop('time')
+
     _filter_oozie_jobs(self.user, filters, kwargs)
 
     jobs = oozie_api.get_coordinators(**kwargs)