Преглед изворни кода

HUE-8944 [impala] Hide INVALIDATE METADATA refresh option

Workaround from now on to hide it. Could be smarter by reading from
the impalad flag but option is not recommended from now on.
Romain пре 6 година
родитељ
комит
d1894df599

+ 0 - 7
desktop/core/src/desktop/js/ko/components/assist/ko.assistDbPanel.js

@@ -333,13 +333,6 @@ const TEMPLATE =
       ${I18n('Perform incremental metadata update.')}
     </label>
     <div class="assist-invalidate-description">${I18n('This will sync missing tables.')}</div>
-    <label class="radio">
-      <input type="radio" name="refreshImpala" value="invalidateAndFlush" data-bind="checked: invalidateOnRefresh"  />
-      ${I18n('Invalidate all metadata and rebuild index.')}
-    </label>
-    <div class="assist-invalidate-description">${I18n(
-      'WARNING: This can be both resource and time-intensive.'
-    )}</div>
     <div style="width: 100%; display: inline-block; margin-top: 5px;"><button class="pull-right btn btn-primary" data-bind="css: { 'btn-primary': invalidateOnRefresh() !== 'invalidateAndFlush', 'btn-danger': invalidateOnRefresh() === 'invalidateAndFlush' }, click: function (data, event) { huePubSub.publish('close.popover'); triggerRefresh(data, event); }, clickBubble: false">${I18n(
       'Refresh'
     )}</button></div>

+ 0 - 1
desktop/core/src/desktop/templates/global_js_constants.mako

@@ -462,7 +462,6 @@
     'view': '${ _('view') }',
     'Views': '${ _('Views') }',
     'virtual': '${ _('virtual') }',
-    'WARNING: This can be both resource and time-intensive.': '${ _('WARNING: This can be both resource and time-intensive.') }',
     'Welcome Tour': '${ _('Welcome Tour') }',
     'With grant option': '${ _('With grant option') }',
     'With grant': '${ _('With grant') }',