[oozie] Clicking on workflow with several decision nodes hangs Hue (Bugfix, fix Actions tab, rerun, incorrect 'Drop your actions here' message)
@@ -262,11 +262,16 @@ class Workflow(Job):
adj_list = _create_graph_adjaceny_list(node_list)
node_hierarchy = ['start']
- data = {'layout': [{}], 'workflow': {}}
- data['workflow']['nodes'] = []
try:
_get_hierarchy_from_adj_list(adj_list, adj_list['start']['ok_to'], node_hierarchy)
+ except WorkflowDepthReached:
+ LOG.warn("The Workflow: %s with id: %s, has reached the maximum allowed depth for Graph display " % (oozie_workflow.appName, oozie_workflow.id))
+ # Hide graph same as when total nodes > 30
+ return {}
+
+ data = {'layout': [{}], 'workflow': {}}
+ data['workflow']['nodes'] = []
_update_adj_list(adj_list)
nodes_uuid_set = set()
@@ -278,8 +283,6 @@ class Workflow(Job):
nodes_uuid_set = set()
_dig_nodes(node_hierarchy, adj_list, user, wf_nodes, nodes_uuid_set)
data['workflow']['nodes'] = wf_nodes
- except WorkflowDepthReached:
- LOG.warn("The Workflow: %s with id: %s, has reached the maximum allowed depth for Graph display " % (oozie_workflow.appName, oozie_workflow.id))
data['workflow']['id'] = '123'
data['workflow']['properties'] = cls.get_workflow_properties_for_user(user, workflow=None)
