Explorar o código

HUE-7549 [metastore] Drop table does not refresh the page

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
73e99dc
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      desktop/core/src/desktop/templates/ko_components.mako

+ 4 - 1
desktop/core/src/desktop/templates/ko_components.mako

@@ -420,7 +420,10 @@ from desktop.views import _ko
                   if (notebook.onSuccessUrl() && notebook.onSuccessUrl() !== 'assist.db.refresh') { // TODO: Similar if in in FB directory, also refresh FB dir
                     huePubSub.publish('open.link', notebook.onSuccessUrl());
                   }
-                  if (notebook.onSuccessUrl()) {
+
+                  if (notebook.onSuccessUrl() == 'assist.db.refresh') {
+                    huePubSub.publish('assist.db.refresh', {sourceTypes: [snippet.type()]});
+                  } else if (notebook.onSuccessUrl()) {
                     huePubSub.publish(notebook.pubSubUrl());
                   }
                 } else { // Perform last DROP statement execute