|
|
@@ -580,9 +580,21 @@ from desktop.views import _ko
|
|
|
</script>
|
|
|
|
|
|
<script type="text/html" id="ask-for-invalidate-content">
|
|
|
- <label class="checkbox" style="margin-bottom: 2px;"><input type="checkbox" data-bind="checked: invalidateOnRefresh" /> ${ _('Invalidate metadata') }</label>
|
|
|
- <div style="display: inline-block; margin-left: 20px; font-style: italic">${ _('This is a resource- and time-intensive operation that will rebuild the entire metadata store index.') }</div>
|
|
|
- <div style="width: 100%; display: inline-block; margin-top: 5px;"><button class="pull-right btn btn-primary" data-bind="css: { 'btn-primary': !invalidateOnRefresh(), 'btn-danger': invalidateOnRefresh }, click: function () { huePubSub.publish('close.popover'); triggerRefresh(); }, clickBubble: false">${ _('Refresh') }</button></div>
|
|
|
+ <label class="radio" style="margin-bottom: 2px;">
|
|
|
+ <input type="radio" name="refreshImpala" value="cache" data-bind="checked: invalidateOnRefresh" />
|
|
|
+ ${ _('Clear cache') }
|
|
|
+ </label>
|
|
|
+ <label class="radio" style="margin-bottom: 2px;">
|
|
|
+ <input type="radio" name="refreshImpala" value="invalidate" data-bind="checked: invalidateOnRefresh" />
|
|
|
+ ${ _('Perform incremental metadata update') }
|
|
|
+ </label>
|
|
|
+ <div style="display: inline-block; margin-left: 20px; font-style: italic; color: #999;">${ _('This will sync missing tables in Hive.') }</div>
|
|
|
+ <label class="radio" style="margin-bottom: 2px;">
|
|
|
+ <input type="radio" name="refreshImpala" value="invalidateAndFlush" data-bind="checked: invalidateOnRefresh" />
|
|
|
+ ${ _('Invalidate all metadata and rebuild index') }
|
|
|
+ </label>
|
|
|
+ <div style="display: inline-block; margin-left: 20px; font-style: italic; color: #999;">${ _('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 () { huePubSub.publish('close.popover'); triggerRefresh(); }, clickBubble: false">${ _('Refresh') }</button></div>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/html" id="assist-db-header-actions">
|