|
@@ -19,7 +19,7 @@
|
|
|
|
|
|
|
|
from desktop import conf
|
|
from desktop import conf
|
|
|
from desktop.auth.backend import is_admin;
|
|
from desktop.auth.backend import is_admin;
|
|
|
- from desktop.conf import APP_SWITCHER_ALTUS_BASE_URL, APP_SWITCHER_MOW_BASE_URL, DISPLAY_APP_SWITCHER, IS_K8S_ONLY, IS_MULTICLUSTER_ONLY, USE_NEW_SIDE_PANELS, VCS
|
|
|
|
|
|
|
+ from desktop.conf import APP_SWITCHER_ALTUS_BASE_URL, APP_SWITCHER_MOW_BASE_URL, DISPLAY_APP_SWITCHER, IS_K8S_ONLY, IS_MULTICLUSTER_ONLY, USE_DEFAULT_CONFIGURATION, USE_NEW_SIDE_PANELS, VCS
|
|
|
from desktop.models import hue_version, _get_apps, get_cluster_config
|
|
from desktop.models import hue_version, _get_apps, get_cluster_config
|
|
|
|
|
|
|
|
from beeswax.conf import LIST_PARTITIONS_LIMIT
|
|
from beeswax.conf import LIST_PARTITIONS_LIMIT
|
|
@@ -66,7 +66,6 @@
|
|
|
window.KNOX_BASE_PATH = window._KNOX_BASE_PATH.indexOf('KNOX_BASE_PATH_KNOX') < 0 ? window._KNOX_BASE_PATH_KNOX : '';
|
|
window.KNOX_BASE_PATH = window._KNOX_BASE_PATH.indexOf('KNOX_BASE_PATH_KNOX') < 0 ? window._KNOX_BASE_PATH_KNOX : '';
|
|
|
window.KNOX_BASE_URL = window._KNOX_BASE_URL.indexOf('KNOX_BASE_URL') < 0 ? window._KNOX_BASE_URL : '';
|
|
window.KNOX_BASE_URL = window._KNOX_BASE_URL.indexOf('KNOX_BASE_URL') < 0 ? window._KNOX_BASE_URL : '';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
window.HAS_GIT = ${ len(VCS.keys()) } > 0;
|
|
window.HAS_GIT = ${ len(VCS.keys()) } > 0;
|
|
|
window.HAS_MULTI_CLUSTER = '${ get_cluster_config(user)['has_computes'] }' === 'True';
|
|
window.HAS_MULTI_CLUSTER = '${ get_cluster_config(user)['has_computes'] }' === 'True';
|
|
|
|
|
|
|
@@ -74,6 +73,8 @@
|
|
|
|
|
|
|
|
window.DROPZONE_HOME_DIR = '${ user.get_home_directory() if not user.is_anonymous() else "" }';
|
|
window.DROPZONE_HOME_DIR = '${ user.get_home_directory() if not user.is_anonymous() else "" }';
|
|
|
|
|
|
|
|
|
|
+ window.USE_DEFAULT_CONFIGURATION = '${ USE_DEFAULT_CONFIGURATION.get() }' === 'True';
|
|
|
|
|
+
|
|
|
window.USER_HAS_METADATA_WRITE_PERM = '${ user.has_hue_permission(action="write", app="metadata") }' === 'True';
|
|
window.USER_HAS_METADATA_WRITE_PERM = '${ user.has_hue_permission(action="write", app="metadata") }' === 'True';
|
|
|
|
|
|
|
|
window.ENABLE_NEW_CREATE_TABLE = '${ hasattr(ENABLE_NEW_CREATE_TABLE, 'get') and ENABLE_NEW_CREATE_TABLE.get()}' === 'True';
|
|
window.ENABLE_NEW_CREATE_TABLE = '${ hasattr(ENABLE_NEW_CREATE_TABLE, 'get') and ENABLE_NEW_CREATE_TABLE.get()}' === 'True';
|
|
@@ -164,6 +165,7 @@
|
|
|
'Clear the query history': '${ _('Clear the query history') }',
|
|
'Clear the query history': '${ _('Clear the query history') }',
|
|
|
'Click for more details': '${ _('Click for more details') }',
|
|
'Click for more details': '${ _('Click for more details') }',
|
|
|
'Close': '${_('Close')}',
|
|
'Close': '${_('Close')}',
|
|
|
|
|
+ 'Close session': '${_('Close session')}',
|
|
|
'Cluster': '${ _('Cluster') }',
|
|
'Cluster': '${ _('Cluster') }',
|
|
|
'Clusters': '${ _('Clusters') }',
|
|
'Clusters': '${ _('Clusters') }',
|
|
|
'CodeGen': '${ _('CodeGen') }',
|
|
'CodeGen': '${ _('CodeGen') }',
|
|
@@ -173,9 +175,11 @@
|
|
|
'Columns': '${ _('Columns') }',
|
|
'Columns': '${ _('Columns') }',
|
|
|
'Compilation': '${ _('Compilation') }',
|
|
'Compilation': '${ _('Compilation') }',
|
|
|
'Compute': '${ _('Compute') }',
|
|
'Compute': '${ _('Compute') }',
|
|
|
|
|
+ 'Connect': '${ _('Connect') }',
|
|
|
'condition': '${ _('condition') }',
|
|
'condition': '${ _('condition') }',
|
|
|
'Confirm History Clearing': '${ _('Confirm History Clearing') }',
|
|
'Confirm History Clearing': '${ _('Confirm History Clearing') }',
|
|
|
'Confirm the deletion?': '${ _('Confirm the deletion?') }',
|
|
'Confirm the deletion?': '${ _('Confirm the deletion?') }',
|
|
|
|
|
+ 'Connect to the data source': '${ _('Connect to the data source') }',
|
|
|
'Could not find details for the function': '${_('Could not find details for the function')}',
|
|
'Could not find details for the function': '${_('Could not find details for the function')}',
|
|
|
'Could not find': '${_('Could not find')}',
|
|
'Could not find': '${_('Could not find')}',
|
|
|
'CPU': '${ _('CPU') }',
|
|
'CPU': '${ _('CPU') }',
|
|
@@ -356,6 +360,7 @@
|
|
|
'Owner': '${ _('Owner') }',
|
|
'Owner': '${ _('Owner') }',
|
|
|
'Partition key': '${ _('Partition key') }',
|
|
'Partition key': '${ _('Partition key') }',
|
|
|
'Partitions': '${ _('Partitions') }',
|
|
'Partitions': '${ _('Partitions') }',
|
|
|
|
|
+ 'Password': '${ _('Password') }',
|
|
|
'Perform incremental metadata update.': '${ _('Perform incremental metadata update.') }',
|
|
'Perform incremental metadata update.': '${ _('Perform incremental metadata update.') }',
|
|
|
'Permissions': '${ _('Permissions') }',
|
|
'Permissions': '${ _('Permissions') }',
|
|
|
'Pig Design': '${_('Pig Design')}',
|
|
'Pig Design': '${_('Pig Design')}',
|
|
@@ -375,6 +380,8 @@
|
|
|
'Query requires a select or aggregate.': '${ _('Query requires a select or aggregate.') }',
|
|
'Query requires a select or aggregate.': '${ _('Query requires a select or aggregate.') }',
|
|
|
'Query running': '${ _('Query running') }',
|
|
'Query running': '${ _('Query running') }',
|
|
|
'queued': '${ _('queued') }',
|
|
'queued': '${ _('queued') }',
|
|
|
|
|
+ 'Re-create': '${ _('Re-create') }',
|
|
|
|
|
+ 'Re-create session': '${ _('Re-create session') }',
|
|
|
'Refresh': '${ _('Refresh') }',
|
|
'Refresh': '${ _('Refresh') }',
|
|
|
'Remove': '${ _('Remove') }',
|
|
'Remove': '${ _('Remove') }',
|
|
|
'Replace the editor content...': '${ _('Replace the editor content...') }',
|
|
'Replace the editor content...': '${ _('Replace the editor content...') }',
|
|
@@ -389,6 +396,7 @@
|
|
|
'Samples': '${ _('Samples') }',
|
|
'Samples': '${ _('Samples') }',
|
|
|
'Save': '${ _('Save') }',
|
|
'Save': '${ _('Save') }',
|
|
|
'Save changes': '${ _('Save changes') }',
|
|
'Save changes': '${ _('Save changes') }',
|
|
|
|
|
+ 'Save session settings as default': '${ _('Save session settings as default') }',
|
|
|
'Schedule': '${ _('Schedule') }',
|
|
'Schedule': '${ _('Schedule') }',
|
|
|
'Search Dashboard': '${_('Search Dashboard')}',
|
|
'Search Dashboard': '${_('Search Dashboard')}',
|
|
|
'Search data and saved documents...': '${ _('Search data and saved documents...') }',
|
|
'Search data and saved documents...': '${ _('Search data and saved documents...') }',
|
|
@@ -399,7 +407,9 @@
|
|
|
'Selected entry': '${_('Selected entry')}',
|
|
'Selected entry': '${_('Selected entry')}',
|
|
|
'Sentry will recursively delete the SERVER or DATABASE privileges you marked for deletion.': '${ _('Sentry will recursively delete the SERVER or DATABASE privileges you marked for deletion.') }',
|
|
'Sentry will recursively delete the SERVER or DATABASE privileges you marked for deletion.': '${ _('Sentry will recursively delete the SERVER or DATABASE privileges you marked for deletion.') }',
|
|
|
'Server': '${ _('Server') }',
|
|
'Server': '${ _('Server') }',
|
|
|
|
|
+ 'Sessions': '${ _('Sessions') }',
|
|
|
'Set as default application': '${_('Set as default application')}',
|
|
'Set as default application': '${_('Set as default application')}',
|
|
|
|
|
+ 'Set as default settings': '${_('Set as default settings')}',
|
|
|
'Shell Script': '${_('Shell Script')}',
|
|
'Shell Script': '${_('Shell Script')}',
|
|
|
'Show 50 more...': '${_('Show 50 more...')}',
|
|
'Show 50 more...': '${_('Show 50 more...')}',
|
|
|
'Show advanced': '${_('Show advanced')}',
|
|
'Show advanced': '${_('Show advanced')}',
|
|
@@ -435,6 +445,7 @@
|
|
|
'The upload has been canceled': '${ _('The upload has been canceled') }',
|
|
'The upload has been canceled': '${ _('The upload has been canceled') }',
|
|
|
'There are no stats to be shown': '${ _('There are no stats to be shown') }',
|
|
'There are no stats to be shown': '${ _('There are no stats to be shown') }',
|
|
|
'There are no terms to be shown': '${ _('There are no terms to be shown') }',
|
|
'There are no terms to be shown': '${ _('There are no terms to be shown') }',
|
|
|
|
|
+ 'There is currently no information about the sessions.': '${ _('There is currently no information about the sessions.') }',
|
|
|
'This field does not support stats': '${ _('This field does not support stats') }',
|
|
'This field does not support stats': '${ _('This field does not support stats') }',
|
|
|
'This will sync missing tables.': '${ _('This will sync missing tables.') }',
|
|
'This will sync missing tables.': '${ _('This will sync missing tables.') }',
|
|
|
'Timeline': '${ _('Timeline') }',
|
|
'Timeline': '${ _('Timeline') }',
|
|
@@ -450,6 +461,7 @@
|
|
|
'Upload file': '${_('Upload file')}',
|
|
'Upload file': '${_('Upload file')}',
|
|
|
'uploaded successfully': '${ _('uploaded successfully') }',
|
|
'uploaded successfully': '${ _('uploaded successfully') }',
|
|
|
'used by': '${ _('used by') }',
|
|
'used by': '${ _('used by') }',
|
|
|
|
|
+ 'Username': '${ _('Username') }',
|
|
|
'Value': '${ _('Value') }',
|
|
'Value': '${ _('Value') }',
|
|
|
'Values': '${ _('Values') }',
|
|
'Values': '${ _('Values') }',
|
|
|
'variable': '${ _('variable') }',
|
|
'variable': '${ _('variable') }',
|