소스 검색

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

Romain Rigaux 8 년 전
부모
커밋
73e99dc
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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