Selaa lähdekoodia

HUE-4192 [editor] Document2 matching query does not exist when saving

Romain Rigaux 9 vuotta sitten
vanhempi
commit
79ada348b1

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -1043,7 +1043,7 @@ class Document2(models.Model):
     ordering = ["-last_modified", "name"]
 
   def __str__(self):
-    res = '%s - %s - %s' % (force_unicode(self.name), self.owner, self.uuid)
+    res = '%s - %s - %s - %s' % (force_unicode(self.name), self.owner, self.type, self.uuid)
     return force_unicode(res)
 
   @property

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1199,7 +1199,7 @@
       return $.grep(self.dependents(), function(doc) { return doc.type() == 'oozie-coordinator2' && doc.is_managed() == true ;})
     });
     if (self.dependentsCoordinator().length > 0 && ! self.coordinatorUuid()) {
-      self.coordinatorUuid(self.dependentsCoordinator()[0]);
+      self.coordinatorUuid(self.dependentsCoordinator()[0].uuid());
     }
     self.history = ko.observableArray(vm.selectedNotebook() ? vm.selectedNotebook().history() : []);
     self.historyFilter = ko.observable('');