Эх сурвалжийг харах

[frontend] Consolidate config related utils and types into a config folder

Johan Ahlen 4 жил өмнө
parent
commit
d7489c406f
54 өөрчлөгдсөн 54 нэмэгдсэн , 55 устгасан
  1. 1 1
      desktop/core/src/desktop/js/apps/editor/EditorViewModel.js
  2. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/AceEditor.vue
  3. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/AceLocationHandler.ts
  4. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/acePredict.ts
  5. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/AceAutocomplete.vue
  6. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/AutocompleteResults.ts
  7. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/SqlAutocompleter.ts
  8. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/details/PopularAggregateUdfPanel.vue
  9. 1 1
      desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/details/PopularDetailsPanel.vue
  10. 1 1
      desktop/core/src/desktop/js/apps/editor/execution/executor.ts
  11. 1 1
      desktop/core/src/desktop/js/apps/editor/notebook.test.js
  12. 1 1
      desktop/core/src/desktop/js/apps/editor/snippet.js
  13. 1 1
      desktop/core/src/desktop/js/apps/editor/snippet.test.js
  14. 1 1
      desktop/core/src/desktop/js/apps/notebook/NotebookViewModel.js
  15. 1 1
      desktop/core/src/desktop/js/apps/notebook/snippet.js
  16. 1 1
      desktop/core/src/desktop/js/apps/tableBrowser/app.js
  17. 1 1
      desktop/core/src/desktop/js/apps/tableBrowser/metastoreSource.js
  18. 1 1
      desktop/core/src/desktop/js/apps/tableBrowser/metastoreViewModel.js
  19. 1 1
      desktop/core/src/desktop/js/catalog/DataCatalogEntry.ts
  20. 1 1
      desktop/core/src/desktop/js/catalog/MultiTableEntry.ts
  21. 1 1
      desktop/core/src/desktop/js/catalog/catalogUtils.ts
  22. 1 1
      desktop/core/src/desktop/js/catalog/dataCatalog.test.ts
  23. 1 1
      desktop/core/src/desktop/js/catalog/dataCatalog.ts
  24. 1 1
      desktop/core/src/desktop/js/catalog/dataCatalogEntry.test.ts
  25. 1 1
      desktop/core/src/desktop/js/catalog/optimizer/ApiStrategy.ts
  26. 1 1
      desktop/core/src/desktop/js/catalog/optimizer/SqlAnalyser.test.ts
  27. 1 1
      desktop/core/src/desktop/js/catalog/optimizer/SqlAnalyzer.ts
  28. 1 1
      desktop/core/src/desktop/js/catalog/optimizer/optimizer.ts
  29. 2 2
      desktop/core/src/desktop/js/components/sidebar/HueSidebar.vue
  30. 1 1
      desktop/core/src/desktop/js/config/hueConfig.ts
  31. 0 1
      desktop/core/src/desktop/js/config/types.ts
  32. 1 1
      desktop/core/src/desktop/js/hue.js
  33. 1 1
      desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.js
  34. 1 1
      desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.test.js
  35. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistDashboardPanel.js
  36. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistDbPanel.js
  37. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistDocumentsPanel.js
  38. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistFunctionsPanel.js
  39. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistFunctionsPanel.test.js
  40. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistLangRefPanel.js
  41. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistLangRefPanel.test.js
  42. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistPanel.js
  43. 1 1
      desktop/core/src/desktop/js/ko/components/assist/ko.assistStoragePanel.js
  44. 1 1
      desktop/core/src/desktop/js/ko/components/contextPopover/ko.contextPopover.js
  45. 1 1
      desktop/core/src/desktop/js/ko/components/contextPopover/ko.quickQueryContext.js
  46. 1 1
      desktop/core/src/desktop/js/ko/components/simpleAceEditor/ko.simpleAceEditor.js
  47. 1 1
      desktop/core/src/desktop/js/onePageViewModel.js
  48. 1 1
      desktop/core/src/desktop/js/sql/autocompleteResults.js
  49. 1 1
      desktop/core/src/desktop/js/sql/reference/apiCache.ts
  50. 1 1
      desktop/core/src/desktop/js/sql/reference/apiUtils.ts
  51. 1 1
      desktop/core/src/desktop/js/sql/reference/sqlUdfRepository.test.ts
  52. 1 1
      desktop/core/src/desktop/js/sql/reference/sqlUdfRepository.ts
  53. 1 1
      desktop/core/src/desktop/js/sql/sqlUtils.ts
  54. 1 1
      desktop/core/src/desktop/js/topNavViewModel.js

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/EditorViewModel.js

@@ -33,7 +33,7 @@ import {
   GET_KNOWN_CONFIG_EVENT,
   findEditorConnector,
   getLastKnownConfig
-} from 'utils/hueConfig';
+} from 'config/hueConfig';
 import { getFromLocalStorage, setInLocalStorage } from 'utils/storageUtils';
 
 export default class EditorViewModel {

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/AceEditor.vue

@@ -49,7 +49,7 @@
     ParsedLocation,
     SqlParserProvider
   } from 'parse/types';
-  import { EditorInterpreter } from 'types/config';
+  import { EditorInterpreter } from 'config/types';
   import { hueWindow } from 'types/types';
   import huePubSub from 'utils/huePubSub';
   import { defer } from 'utils/hueUtils';

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/AceLocationHandler.ts

@@ -29,7 +29,7 @@ import {
   ParsedTable,
   SyntaxError
 } from 'parse/types';
-import { EditorInterpreter } from 'types/config';
+import { EditorInterpreter } from 'config/types';
 import { hueWindow } from 'types/types';
 import huePubSub, { HueSubscription } from 'utils/huePubSub';
 import I18n from 'utils/i18n';

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/acePredict.ts

@@ -16,7 +16,7 @@
 
 import { Ace } from 'ext/ace';
 import { Disposable } from 'components/utils/SubscriptionTracker';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 import { getOptimizer, PredictResponse } from 'catalog/optimizer/optimizer';
 import { CancellablePromise } from 'api/cancellablePromise';
 import { defer } from 'utils/hueUtils';

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/AceAutocomplete.vue

@@ -88,7 +88,7 @@
   import { Ace } from 'ext/ace';
   import ace from 'ext/aceHelper';
   import { AutocompleteParser } from 'parse/types';
-  import { Connector } from 'types/config';
+  import { Connector } from 'config/types';
 
   import { Category, CategoryId, CategoryInfo, extractCategories } from './Category';
   import Executor from 'apps/editor/execution/executor';

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/AutocompleteResults.ts

@@ -53,7 +53,7 @@ import I18n from 'utils/i18n';
 import sqlUtils from 'sql/sqlUtils';
 import { matchesType } from 'sql/reference/typeUtils';
 import { cancelActiveRequest } from 'api/apiUtils';
-import { findBrowserConnector, getRootFilePath } from 'utils/hueConfig';
+import { findBrowserConnector, getRootFilePath } from 'config/hueConfig';
 import {
   findUdf,
   getArgumentDetailsForUdf,

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/SqlAutocompleter.ts

@@ -25,7 +25,7 @@ import SubscriptionTracker, { Disposable } from 'components/utils/SubscriptionTr
 import { Ace } from 'ext/ace';
 import { ParsedSqlStatement } from 'parse/sqlStatementsParser';
 import { AutocompleteParser, AutocompleteParseResult } from 'parse/types';
-import { EditorInterpreter } from 'types/config';
+import { EditorInterpreter } from 'config/types';
 import AutocompleteResults from './AutocompleteResults';
 import { SqlReferenceProvider } from 'sql/reference/types';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/details/PopularAggregateUdfPanel.vue

@@ -42,7 +42,7 @@
   import { Suggestion } from '../AutocompleteResults';
   import { TopAggValue } from 'catalog/MultiTableEntry';
   import SqlText from 'components/SqlText.vue';
-  import { Connector } from 'types/config';
+  import { Connector } from 'config/types';
   import I18n from 'utils/i18n';
 
   export default defineComponent({

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/components/aceEditor/autocomplete/details/PopularDetailsPanel.vue

@@ -37,7 +37,7 @@
   import { Suggestion } from '../AutocompleteResults';
   import { CategoryId } from '../Category';
   import SqlText from 'components/SqlText.vue';
-  import { Connector } from 'types/config';
+  import { Connector } from 'config/types';
   import I18n from 'utils/i18n';
 
   interface PopularityDetails {

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/execution/executor.ts

@@ -18,7 +18,7 @@ import Snippet from 'apps/editor/snippet';
 import Executable, { ExecutableRaw } from 'apps/editor/execution/executable';
 import { syncSqlExecutables } from 'apps/editor/execution/utils';
 import { StatementDetails } from 'parse/types';
-import { Compute, Connector, Namespace } from 'types/config';
+import { Compute, Connector, Namespace } from 'config/types';
 import { VariableIndex } from 'apps/editor/components/variableSubstitution/types';
 
 export interface ExecutorRaw {

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/notebook.test.js

@@ -16,7 +16,7 @@
 
 import Notebook from './notebook';
 import sessionManager from 'apps/editor/execution/sessionManager';
-import * as hueConfig from 'utils/hueConfig';
+import * as hueConfig from 'config/hueConfig';
 
 describe('notebook.js', () => {
   const viewModel = {

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/snippet.js

@@ -54,7 +54,7 @@ import {
 } from 'ko/bindings/ace/aceLocationHandler';
 import { EXECUTE_ACTIVE_EXECUTABLE_EVENT } from './components/ExecutableActions.vue';
 import { ADD_TO_HISTORY_EVENT } from 'apps/editor/components/ko.queryHistory';
-import { findEditorConnector, getLastKnownConfig } from 'utils/hueConfig';
+import { findEditorConnector, getLastKnownConfig } from 'config/hueConfig';
 import { cancelActiveRequest } from 'api/apiUtils';
 import { getOptimizer } from 'catalog/optimizer/optimizer';
 import {

+ 1 - 1
desktop/core/src/desktop/js/apps/editor/snippet.test.js

@@ -16,7 +16,7 @@
 
 import Notebook from './notebook';
 import sessionManager from 'apps/editor/execution/sessionManager';
-import * as hueConfig from 'utils/hueConfig';
+import * as hueConfig from 'config/hueConfig';
 
 describe('snippet.js', () => {
   const viewModel = {

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/NotebookViewModel.js

@@ -29,7 +29,7 @@ import {
   ACTIVE_SNIPPET_CONNECTOR_CHANGED_EVENT,
   GET_ACTIVE_SNIPPET_CONNECTOR_EVENT
 } from 'apps/editor/events';
-import { CONFIG_REFRESHED_EVENT, findEditorConnector, getLastKnownConfig } from 'utils/hueConfig';
+import { CONFIG_REFRESHED_EVENT, findEditorConnector, getLastKnownConfig } from 'config/hueConfig';
 import { getFromLocalStorage, setInLocalStorage } from 'utils/storageUtils';
 
 export default class NotebookViewModel {

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook/snippet.js

@@ -32,7 +32,7 @@ import sqlStatementsParser from 'parse/sqlStatementsParser';
 import { SHOW_EVENT as SHOW_GIST_MODAL_EVENT } from 'ko/components/ko.shareGistModal';
 import { cancelActiveRequest } from 'api/apiUtils';
 import { ACTIVE_SNIPPET_CONNECTOR_CHANGED_EVENT } from 'apps/editor/events';
-import { findEditorConnector } from 'utils/hueConfig';
+import { findEditorConnector } from 'config/hueConfig';
 import {
   ASSIST_GET_DATABASE_EVENT,
   ASSIST_GET_SOURCE_EVENT,

+ 1 - 1
desktop/core/src/desktop/js/apps/tableBrowser/app.js

@@ -22,7 +22,7 @@ import huePubSub from 'utils/huePubSub';
 import MetastoreViewModel from 'apps/tableBrowser/metastoreViewModel';
 import hueUtils from 'utils/hueUtils';
 import I18n from 'utils/i18n';
-import { GET_KNOWN_CONFIG_EVENT, CONFIG_REFRESHED_EVENT } from 'utils/hueConfig';
+import { GET_KNOWN_CONFIG_EVENT, CONFIG_REFRESHED_EVENT } from 'config/hueConfig';
 
 import 'components/er-diagram/webcomp';
 

+ 1 - 1
desktop/core/src/desktop/js/apps/tableBrowser/metastoreSource.js

@@ -25,7 +25,7 @@ import {
   ASSIST_IS_DB_PANEL_READY_EVENT,
   ASSIST_SET_DATABASE_EVENT
 } from 'ko/components/assist/events';
-import { findEditorConnector } from 'utils/hueConfig';
+import { findEditorConnector } from 'config/hueConfig';
 import { getFromLocalStorage } from 'utils/storageUtils';
 
 class MetastoreSource {

+ 1 - 1
desktop/core/src/desktop/js/apps/tableBrowser/metastoreViewModel.js

@@ -20,7 +20,7 @@ import * as ko from 'knockout';
 import * as propsMappers from './propsMappers';
 import MetastoreSource from 'apps/tableBrowser/metastoreSource';
 import dataCatalog from 'catalog/dataCatalog';
-import { findEditorConnector, GET_KNOWN_CONFIG_EVENT } from 'utils/hueConfig';
+import { findEditorConnector, GET_KNOWN_CONFIG_EVENT } from 'config/hueConfig';
 import huePubSub from 'utils/huePubSub';
 import hueUtils from 'utils/hueUtils';
 import { getFromLocalStorage, withLocalStorage } from 'utils/storageUtils';

+ 1 - 1
desktop/core/src/desktop/js/catalog/DataCatalogEntry.ts

@@ -28,7 +28,7 @@ import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import { applyCancellable, forceSilencedErrors } from 'catalog/catalogUtils';
-import { Compute, Connector, Namespace } from 'types/config';
+import { Compute, Connector, Namespace } from 'config/types';
 import { hueWindow } from 'types/types';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';

+ 1 - 1
desktop/core/src/desktop/js/catalog/MultiTableEntry.ts

@@ -22,7 +22,7 @@ import { CancellablePromise } from 'api/cancellablePromise';
 import { applyCancellable } from 'catalog/catalogUtils';
 import { getOptimizer, PopularityOptions } from 'catalog/optimizer/optimizer';
 import { UdfDetails } from 'sql/reference/types';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 import { hueWindow } from 'types/types';
 
 export interface TopJoinValue {

+ 1 - 1
desktop/core/src/desktop/js/catalog/catalogUtils.ts

@@ -16,7 +16,7 @@
 
 import { CancellablePromise } from 'api/cancellablePromise';
 import { CatalogGetOptions } from 'catalog/dataCatalog';
-import { Compute, Connector } from 'types/config';
+import { Compute, Connector } from 'config/types';
 
 export interface FetchOptions {
   sourceType: string;

+ 1 - 1
desktop/core/src/desktop/js/catalog/dataCatalog.test.ts

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import { Compute, Connector, Namespace } from 'types/config';
+import { Compute, Connector, Namespace } from 'config/types';
 import dataCatalog from './dataCatalog';
 
 const connectorOne: Connector = {

+ 1 - 1
desktop/core/src/desktop/js/catalog/dataCatalog.ts

@@ -38,7 +38,7 @@ import MultiTableEntry, {
   TopJoins
 } from 'catalog/MultiTableEntry';
 import { getOptimizer, LOCAL_STRATEGY } from 'catalog/optimizer/optimizer';
-import { Compute, Connector, Namespace } from 'types/config';
+import { Compute, Connector, Namespace } from 'config/types';
 import { hueWindow } from 'types/types';
 
 export interface TimestampedData {

+ 1 - 1
desktop/core/src/desktop/js/catalog/dataCatalogEntry.test.ts

@@ -17,7 +17,7 @@
 import { CancellablePromise } from 'api/cancellablePromise';
 import dataCatalog from 'catalog/dataCatalog';
 import DataCatalogEntry, { Sample } from 'catalog/DataCatalogEntry';
-import { Compute, Connector, Namespace } from 'types/config';
+import { Compute, Connector, Namespace } from 'config/types';
 import * as CatalogApi from './api';
 
 const connectorOne: Connector = {

+ 1 - 1
desktop/core/src/desktop/js/catalog/optimizer/ApiStrategy.ts

@@ -30,7 +30,7 @@ import {
   RiskOptions,
   SimilarityOptions
 } from 'catalog/optimizer/optimizer';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 
 /**
  * Fetches the popularity for various aspects of the given tables

+ 1 - 1
desktop/core/src/desktop/js/catalog/optimizer/SqlAnalyser.test.ts

@@ -14,7 +14,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-import Connector from '../types/config';
+import { Connector } from 'config/types';
 import SqlAnalyzer from './SqlAnalyzer';
 
 const connectorA: Connector = {

+ 1 - 1
desktop/core/src/desktop/js/catalog/optimizer/SqlAnalyzer.ts

@@ -35,7 +35,7 @@ import {
 
 import dataCatalog, { OptimizerResponse } from 'catalog/dataCatalog';
 import sqlParserRepository from 'parse/sql/sqlParserRepository';
-import { Connector, Namespace } from 'types/config';
+import { Connector, Namespace } from 'config/types';
 import { hueWindow } from 'types/types';
 import I18n from 'utils/i18n';
 

+ 1 - 1
desktop/core/src/desktop/js/catalog/optimizer/optimizer.ts

@@ -20,7 +20,7 @@ import { CancellablePromise } from 'api/cancellablePromise';
 import { OptimizerResponse } from 'catalog/dataCatalog';
 import { OptimizerMeta } from 'catalog/DataCatalogEntry';
 import { TopAggs, TopColumns, TopFilters, TopJoins } from 'catalog/MultiTableEntry';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 import { hueWindow } from 'types/types';
 
 export interface CompatibilityOptions {

+ 2 - 2
desktop/core/src/desktop/js/components/sidebar/HueSidebar.vue

@@ -51,9 +51,9 @@
     ASSIST_ACTIVE_DB_CHANGED_EVENT,
     ASSIST_SET_DATABASE_EVENT
   } from 'ko/components/assist/events';
-  import { AppType, Connector, HueConfig, Namespace } from 'types/config';
+  import { AppType, Connector, HueConfig, Namespace } from 'config/types';
   import { hueWindow } from 'types/types';
-  import { CONFIG_REFRESHED_EVENT, getLastKnownConfig } from 'utils/hueConfig';
+  import { CONFIG_REFRESHED_EVENT, getLastKnownConfig } from 'config/hueConfig';
   import huePubSub from 'utils/huePubSub';
   import { onHueLinkClick } from 'utils/hueUtils';
   import I18n from 'utils/i18n';

+ 1 - 1
desktop/core/src/desktop/js/utils/hueConfig.ts → desktop/core/src/desktop/js/config/hueConfig.ts

@@ -23,7 +23,7 @@ import {
   EditorInterpreter,
   HueConfig,
   Interpreter
-} from 'types/config';
+} from './types';
 import huePubSub from 'utils/huePubSub';
 
 export const REFRESH_CONFIG_EVENT = 'cluster.config.refresh.config';

+ 0 - 1
desktop/core/src/desktop/js/types/config.ts → desktop/core/src/desktop/js/config/types.ts

@@ -97,7 +97,6 @@ export interface IdentifiableInterpreter extends Interpreter {
   id: string;
 }
 
-/* eslint-disable @typescript-eslint/no-empty-interface */
 export interface Connector extends IdentifiableInterpreter {
   dialect_properties?: {
     sql_identifier_quote?: string;

+ 1 - 1
desktop/core/src/desktop/js/hue.js

@@ -71,7 +71,7 @@ import SqlAutocompleter from 'sql/sqlAutocompleter';
 import sqlStatementsParser from 'parse/sqlStatementsParser'; // In search.ko and notebook.ko
 import HueFileEntry from 'doc/hueFileEntry';
 import HueDocument from 'doc/hueDocument';
-import { getLastKnownConfig, refreshConfig } from 'utils/hueConfig';
+import { getLastKnownConfig, refreshConfig } from 'config/hueConfig';
 import { simpleGet } from 'api/apiUtils'; // In analytics.mako, metrics.mako, threads.mako
 import Mustache from 'mustache'; // In hbase/templates/app.mako, jobsub.templates.js, search.ko.js, search.util.js
 

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.js

@@ -19,7 +19,7 @@ import * as ko from 'knockout';
 
 import apiHelper from 'api/apiHelper';
 import huePubSub from 'utils/huePubSub';
-import { findBrowserConnector, GET_KNOWN_CONFIG_EVENT, getRootFilePath } from 'utils/hueConfig';
+import { findBrowserConnector, GET_KNOWN_CONFIG_EVENT, getRootFilePath } from 'config/hueConfig';
 
 const PAGE_SIZE = 100;
 

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.test.js

@@ -17,7 +17,7 @@
 import $ from 'jquery';
 
 import AssistStorageEntry from './assistStorageEntry';
-import * as hueConfig from 'utils/hueConfig';
+import * as hueConfig from 'config/hueConfig';
 
 describe('assistStorageEntry.js', () => {
   it('it should handle domain in ADLS/ABFS', () => {

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistDashboardPanel.js

@@ -22,7 +22,7 @@ import componentUtils from 'ko/components/componentUtils';
 import dataCatalog from 'catalog/dataCatalog';
 import huePubSub from 'utils/huePubSub';
 import { TEMPLATE, AssistantUtils } from 'ko/components/assist/ko.assistEditorContextPanel';
-import { findDashboardConnector } from 'utils/hueConfig';
+import { findDashboardConnector } from 'config/hueConfig';
 
 class AssistDashboardPanel {
   constructor() {

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

@@ -39,7 +39,7 @@ import {
   filterEditorConnectors,
   findDashboardConnector,
   findEditorConnector
-} from 'utils/hueConfig';
+} from 'config/hueConfig';
 import I18n from 'utils/i18n';
 import { getFromLocalStorage, setInLocalStorage } from 'utils/storageUtils';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistDocumentsPanel.js

@@ -21,7 +21,7 @@ import { ASSIST_DOC_HIGHLIGHT_EVENT, ASSIST_SHOW_DOC_EVENT } from './events';
 import { DOCUMENT_TYPES } from 'doc/docSupport';
 import HueFileEntry from 'doc/hueFileEntry';
 import componentUtils from 'ko/components/componentUtils';
-import { CONFIG_REFRESHED_EVENT, getLastKnownConfig } from 'utils/hueConfig';
+import { CONFIG_REFRESHED_EVENT, getLastKnownConfig } from 'config/hueConfig';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';
 import { getFromLocalStorage, setInLocalStorage } from 'utils/storageUtils';

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistFunctionsPanel.js

@@ -25,7 +25,7 @@ import {
   getUdfCategories,
   UDF_DESCRIBED_EVENT
 } from 'sql/reference/sqlUdfRepository';
-import { CONFIG_REFRESHED_EVENT, filterEditorConnectors } from 'utils/hueConfig';
+import { CONFIG_REFRESHED_EVENT, filterEditorConnectors } from 'config/hueConfig';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';
 import { getFromLocalStorage, setInLocalStorage } from 'utils/storageUtils';

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistFunctionsPanel.test.js

@@ -18,7 +18,7 @@ import * as ko from 'knockout';
 import * as apiUtils from 'api/apiUtils';
 import * as refApiUtils from 'sql/reference/apiUtils';
 import AssistFunctionsPanel from './ko.assistFunctionsPanel';
-import { refreshConfig } from 'utils/hueConfig';
+import { refreshConfig } from 'config/hueConfig';
 import { sleep } from 'utils/hueUtils';
 
 describe('ko.assistFunctionsPanel.js', () => {

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistLangRefPanel.js

@@ -20,7 +20,7 @@ import * as ko from 'knockout';
 import componentUtils from 'ko/components/componentUtils';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';
-import { CONFIG_REFRESHED_EVENT, filterEditorConnectors } from 'utils/hueConfig';
+import { CONFIG_REFRESHED_EVENT, filterEditorConnectors } from 'config/hueConfig';
 import { simpleGet } from 'api/apiUtils';
 import { ASSIST_LANG_REF_PANEL_SHOW_TOPIC_EVENT } from './events';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistLangRefPanel.test.js

@@ -18,7 +18,7 @@ import * as ko from 'knockout';
 
 import * as apiUtils from 'api/apiUtils';
 import AssistLangRefPanel from './ko.assistLangRefPanel';
-import { refreshConfig } from 'utils/hueConfig';
+import { refreshConfig } from 'config/hueConfig';
 import { sleep } from 'utils/hueUtils';
 
 describe('ko.assistLangRefPanel.js', () => {

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistPanel.js

@@ -21,7 +21,7 @@ import AssistInnerPanel from 'ko/components/assist/assistInnerPanel';
 import componentUtils from 'ko/components/componentUtils';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';
-import { GET_KNOWN_CONFIG_EVENT, CONFIG_REFRESHED_EVENT } from 'utils/hueConfig';
+import { GET_KNOWN_CONFIG_EVENT, CONFIG_REFRESHED_EVENT } from 'config/hueConfig';
 import {
   ASSIST_SHOW_DOC_EVENT,
   ASSIST_SHOW_SOLR_EVENT,

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/ko.assistStoragePanel.js

@@ -19,7 +19,7 @@ import * as ko from 'knockout';
 import AssistStorageEntry from './assistStorageEntry';
 import apiHelper from 'api/apiHelper';
 import componentUtils from 'ko/components/componentUtils';
-import { getRootFilePath } from 'utils/hueConfig';
+import { getRootFilePath } from 'config/hueConfig';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';
 import { getFromLocalStorage, setInLocalStorage } from 'utils/storageUtils';

+ 1 - 1
desktop/core/src/desktop/js/ko/components/contextPopover/ko.contextPopover.js

@@ -32,7 +32,7 @@ import contextCatalog from 'catalog/contextCatalog';
 import dataCatalog from 'catalog/dataCatalog';
 import { ASSIST_KEY_COMPONENT } from 'ko/components/assist/ko.assistKey';
 import componentUtils from 'ko/components/componentUtils';
-import { findEditorConnector, GET_KNOWN_CONFIG_EVENT } from 'utils/hueConfig';
+import { findEditorConnector, GET_KNOWN_CONFIG_EVENT } from 'config/hueConfig';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';
 import { getFromLocalStorage } from 'utils/storageUtils';

+ 1 - 1
desktop/core/src/desktop/js/ko/components/contextPopover/ko.quickQueryContext.js

@@ -28,7 +28,7 @@ import DisposableComponent from 'ko/components/DisposableComponent';
 import Executor from 'apps/editor/execution/executor';
 import SqlExecutable from 'apps/editor/execution/sqlExecutable';
 import sqlStatementsParser from 'parse/sqlStatementsParser';
-import { CONFIG_REFRESHED_EVENT, filterEditorConnectors } from 'utils/hueConfig';
+import { CONFIG_REFRESHED_EVENT, filterEditorConnectors } from 'config/hueConfig';
 
 export const NAME = 'quick-query-context';
 

+ 1 - 1
desktop/core/src/desktop/js/ko/components/simpleAceEditor/ko.simpleAceEditor.js

@@ -27,7 +27,7 @@ import SolrQueryAutocompleter from './solrQueryAutocompleter';
 import SqlAutocompleter from 'sql/sqlAutocompleter';
 import sqlWorkerHandler from 'sql/sqlWorkerHandler';
 import AceGutterHandler from 'ko/bindings/ace/aceGutterHandler';
-import { findEditorConnector } from 'utils/hueConfig';
+import { findEditorConnector } from 'config/hueConfig';
 
 export const NAME = 'hue-simple-ace-editor';
 export const MULTI_NAME = 'hue-simple-ace-editor-multi';

+ 1 - 1
desktop/core/src/desktop/js/onePageViewModel.js

@@ -22,7 +22,7 @@ import page from 'page';
 import hueUtils from 'utils/hueUtils';
 import huePubSub from 'utils/huePubSub';
 import I18n from 'utils/i18n';
-import { CONFIG_REFRESHED_EVENT, GET_KNOWN_CONFIG_EVENT } from 'utils/hueConfig';
+import { CONFIG_REFRESHED_EVENT, GET_KNOWN_CONFIG_EVENT } from 'config/hueConfig';
 
 class OnePageViewModel {
   constructor() {

+ 1 - 1
desktop/core/src/desktop/js/sql/autocompleteResults.js

@@ -27,7 +27,7 @@ import sqlUtils from 'sql/sqlUtils';
 import { matchesType } from 'sql/reference/typeUtils';
 import { DIALECT } from 'apps/editor/snippet';
 import { cancelActiveRequest } from 'api/apiUtils';
-import { findBrowserConnector, getRootFilePath } from 'utils/hueConfig';
+import { findBrowserConnector, getRootFilePath } from 'config/hueConfig';
 import {
   findUdf,
   getArgumentDetailsForUdf,

+ 1 - 1
desktop/core/src/desktop/js/sql/reference/apiCache.ts

@@ -16,7 +16,7 @@
 
 import localForage from 'localforage';
 import { UdfCategory } from 'sql/reference/types';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 
 const GLOBAL_UDF_CACHE_KEY = 'HUE_GLOBAL_UDF_KEY';
 const VERSION = '0';

+ 1 - 1
desktop/core/src/desktop/js/sql/reference/apiUtils.ts

@@ -17,7 +17,7 @@
 import { simplePostAsync } from 'api/apiUtils';
 import { AUTOCOMPLETE_API_PREFIX } from 'api/urls';
 import { UdfArgument, UdfDetails } from 'sql/reference/types';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 import I18n from 'utils/i18n';
 
 export interface ApiUdf {

+ 1 - 1
desktop/core/src/desktop/js/sql/reference/sqlUdfRepository.test.ts

@@ -15,7 +15,7 @@
 // limitations under the License.
 
 import { UdfArgument } from 'sql/reference/types';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 import { getArgumentDetailsForUdf } from './sqlUdfRepository';
 import sqlReferenceRepository from './sqlReferenceRepository';
 import * as apiUtils from 'sql/reference/apiUtils';

+ 1 - 1
desktop/core/src/desktop/js/sql/reference/sqlUdfRepository.ts

@@ -21,7 +21,7 @@ import {
   UdfCategoryFunctions,
   UdfDetails
 } from 'sql/reference/types';
-import { Connector } from 'types/config';
+import { Connector } from 'config/types';
 import { matchesType } from './typeUtils';
 import I18n from 'utils/i18n';
 import huePubSub from 'utils/huePubSub';

+ 1 - 1
desktop/core/src/desktop/js/sql/sqlUtils.ts

@@ -25,7 +25,7 @@ import {
   CommentDetails,
   Suggestion
 } from 'apps/editor/components/aceEditor/autocomplete/AutocompleteResults';
-import { Compute, Connector, Namespace } from 'types/config';
+import { Compute, Connector, Namespace } from 'config/types';
 
 const identifierEquals = (a?: string, b?: string): boolean =>
   !!a &&

+ 1 - 1
desktop/core/src/desktop/js/topNavViewModel.js

@@ -22,7 +22,7 @@ import {
   findEditorConnector,
   GET_KNOWN_CONFIG_EVENT,
   REFRESH_CONFIG_EVENT
-} from 'utils/hueConfig';
+} from 'config/hueConfig';
 import { withLocalStorage } from 'utils/storageUtils';
 
 class TopNavViewModel {