Kaynağa Gözat

HUE-1902 [oozie] Update coordinator dataset action is broken

ko.clean was removing the data attribute.
Romain Rigaux 12 yıl önce
ebeveyn
işleme
03b05eb

+ 1 - 1
apps/oozie/src/oozie/templates/editor/edit_coordinator.mako

@@ -542,7 +542,6 @@ ${ layout.menubar(section='coordinators') }
 
       $(".editDataset").click(function () {
         var el = $(this);
-        $("#edit-dataset-body").data("url", el.data("url"));
         $.ajax({
           url:el.data("url"),
           beforeSend:function (xhr) {
@@ -553,6 +552,7 @@ ${ layout.menubar(section='coordinators') }
             $("#edit-dataset-body").html(response['data']);
             decorateDateTime();
             ko.cleanNode($('#edit-dataset-body')[0]);
+            $("#edit-dataset-body").data("url", el.data("url"));
             ko.applyBindings(window.viewModel, $('#edit-dataset-body')[0]);
             routie("editDataset");
           }

+ 4 - 4
apps/spark/src/spark/conf.py

@@ -50,9 +50,9 @@ def get_spark_status(user):
 def config_validator(user):
   res = []
 
-  status = get_spark_status(user)
-
-  if status != 'OK':
-    res.append((NICE_NAME, _("The app won't work without a running Job Server")))
+#  status = get_spark_status(user)
+#
+#  if status != 'OK':
+#    res.append((NICE_NAME, _("The app won't work without a running Job Server")))
 
   return res