Эх сурвалжийг харах

HUE-2283 [oozie] Timed out workflows from coordinator should not be linked yet

Romain Rigaux 11 жил өмнө
parent
commit
fdf270f

+ 5 - 1
apps/oozie/src/oozie/templates/dashboard/list_oozie_coordinator.mako

@@ -188,7 +188,7 @@ ${ layout.menubar(section='coordinators', dashboard=True) }
       <script id="calendarTemplate" type="text/html">
         <tr>
           <td>
-            <a data-bind="attr: {href: url}" data-row-selector="true">
+            <a data-bind="attr: {href: url != '' ? url : 'javascript:void(0)', title: url ? '' : '${ _('Workflow not available or instantiated yet') }' }, css: { disabled: url == '' }" data-row-selector="true">
               <span data-bind="text: title, attr: {'class': statusClass, 'id': 'date-' + $index()}"></span>
             </a>
           </td>
@@ -388,6 +388,10 @@ ${ layout.menubar(section='coordinators', dashboard=True) }
   #slaTable {
     margin-top: 20px;
   }
+
+  .disabled {
+    cursor: default;
+  }
 </style>
 
 <script>

+ 4 - 1
apps/oozie/src/oozie/views/dashboard.py

@@ -246,7 +246,10 @@ def list_oozie_coordinator(request, job_id):
 
   oozie_bundle = None
   if request.GET.get('bundle_job_id'):
-    oozie_bundle = check_job_access_permission(request, request.GET.get('bundle_job_id'))
+    try:
+      oozie_bundle = check_job_access_permission(request, request.GET.get('bundle_job_id'))
+    except:
+      pass
 
   show_all_actions =request.GET.get('show_all_actions') == 'true'