Pārlūkot izejas kodu

HUE-5067 [oozie] Graph display of single executed action shows the full workflow

If config param single_action_submission is set we now use the XML to
display the graph.
krish 9 gadi atpakaļ
vecāks
revīzija
57748b1

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

@@ -338,7 +338,7 @@ def list_oozie_workflow(request, job_id):
         new_workflow = get_workflow()(document=doc)
         workflow_data = new_workflow.get_data()
 
-      if not workflow_data.get('layout'):
+      if not workflow_data.get('layout') or oozie_workflow.conf_dict.get('submit_single_action'):
         try:
           workflow_data = Workflow.gen_workflow_data_from_xml(request.user, oozie_workflow)
         except Exception, e:

+ 2 - 0
apps/oozie/src/oozie/views/editor2.py

@@ -399,6 +399,8 @@ def _submit_workflow_helper(request, workflow, submit_action):
       mapping = dict([(param['name'], param['value']) for param in params_form.cleaned_data])
       mapping['dryrun'] = request.POST.get('dryrun_checkbox') == 'on'
       mapping['email_checkbox'] = request.POST.get('email_checkbox') == 'on'
+      if '/submit_single_action/' in submit_action:
+        mapping['submit_single_action'] = True
 
       try:
         job_id = _submit_workflow(request.user, request.fs, request.jt, workflow, mapping)