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

HUE-1944 [oozie] Generic action is broken

The generic action can now be added without a js error.
Romain Rigaux 11 жил өмнө
parent
commit
bbeeb68682

+ 1 - 1
apps/oozie/src/oozie/models.py

@@ -1208,7 +1208,7 @@ class SubWorkflow(Action):
 
 
 class Generic(Action):
-  PARAM_FIELDS = ('xml', 'credentials')
+  PARAM_FIELDS = ('xml', 'credentials', 'sla', 'credentials')
   node_type = 'generic'
 
   xml = models.TextField(default='', verbose_name=_t('XML of the custom action'),

+ 3 - 1
apps/oozie/static/js/workflow.models.js

@@ -681,7 +681,9 @@ $.extend(GenericModel.prototype, {
   node_type: 'generic',
   workflow: 0,
   xml: '',
-  child_links: []
+  child_links: [],
+  data: getDefaultData(),
+  initialize: initializeNodeData
 });
 
 function nodeModelChooser(node_type) {