@finos/legend-extension-dsl-data-space 10.1.96 → 10.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/query/DataSpaceAdvancedSearchModal.d.ts.map +1 -1
- package/lib/components/query/DataSpaceAdvancedSearchModal.js +5 -17
- package/lib/components/query/DataSpaceAdvancedSearchModal.js.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilder.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQueryBuilder.js +4 -16
- package/lib/components/query/DataSpaceQueryBuilder.js.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.d.ts.map +1 -1
- package/lib/components/query/DataSpaceQuerySetup.js +3 -16
- package/lib/components/query/DataSpaceQuerySetup.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceAdvancedSearchState.js +3 -6
- package/lib/stores/query/DataSpaceAdvancedSearchState.js.map +1 -1
- package/lib/stores/query/DataSpaceQueryBuilderState.d.ts +1 -1
- package/lib/stores/query/DataSpaceQueryBuilderState.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQueryBuilderState.js +3 -6
- package/lib/stores/query/DataSpaceQueryBuilderState.js.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.d.ts.map +1 -1
- package/lib/stores/query/DataSpaceQuerySetupStore.js +3 -6
- package/lib/stores/query/DataSpaceQuerySetupStore.js.map +1 -1
- package/package.json +10 -10
- package/src/components/query/DataSpaceAdvancedSearchModal.tsx +4 -25
- package/src/components/query/DataSpaceQueryBuilder.tsx +3 -23
- package/src/components/query/DataSpaceQuerySetup.tsx +2 -24
- package/src/stores/query/DataSpaceAdvancedSearchState.ts +3 -11
- package/src/stores/query/DataSpaceQueryBuilderState.ts +3 -11
- package/src/stores/query/DataSpaceQuerySetupStore.ts +3 -11
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchModal.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAQvG,eAAO,MAAM,4BAA4B,WAC/B;IACN,WAAW,EAAE,4BAA4B,CAAC;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;;
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchModal.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA2BH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAQvG,eAAO,MAAM,4BAA4B,WAC/B;IACN,WAAW,EAAE,4BAA4B,CAAC;IAC1C,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;;CAsLF,CAAC"}
|
@@ -17,10 +17,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
17
17
|
import { useApplicationStore } from '@finos/legend-application';
|
18
18
|
import { BoltIcon, clsx, BlankPanelContent, TimesCircleIcon, PanelLoadingIndicator, CustomSelectorInput, SearchIcon, Dialog, TimesIcon, ArrowRightIcon, Modal, ModalHeader, ModalTitle, ModalHeaderActions, } from '@finos/legend-art';
|
19
19
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
20
|
-
import {
|
20
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
21
21
|
import { flowResult } from 'mobx';
|
22
22
|
import { observer } from 'mobx-react-lite';
|
23
|
-
import { useEffect,
|
23
|
+
import { useEffect, useRef } from 'react';
|
24
24
|
import { DataSpaceViewer } from '../DataSpaceViewer.js';
|
25
25
|
const buildDataSpaceOption = (value) => ({
|
26
26
|
label: value.title ?? value.name,
|
@@ -30,14 +30,13 @@ export const DataSpaceAdvancedSearchModal = observer((props) => {
|
|
30
30
|
const { searchState, onClose } = props;
|
31
31
|
const applicationStore = useApplicationStore();
|
32
32
|
const dataSpaceSearchRef = useRef(null);
|
33
|
-
const [searchText, setSearchText] = useState('');
|
34
33
|
const handleEnter = () => dataSpaceSearchRef.current?.focus();
|
35
34
|
const proceedToCreateQuery = () => {
|
36
35
|
flowResult(searchState.proceedToCreateQuery()).catch(applicationStore.alertUnhandledError);
|
37
36
|
};
|
38
37
|
const toggleGetSnapshot = () => {
|
39
38
|
searchState.setToGetSnapShot(!searchState.toGetSnapShot);
|
40
|
-
flowResult(searchState.loadDataSpaces(
|
39
|
+
flowResult(searchState.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
|
41
40
|
};
|
42
41
|
// data space
|
43
42
|
const dataSpaceOptions = searchState.dataSpaces.map(buildDataSpaceOption);
|
@@ -55,19 +54,8 @@ export const DataSpaceAdvancedSearchModal = observer((props) => {
|
|
55
54
|
return (_jsxs("div", { className: "data-space-advanced-search__dialog__option", title: `${option.label} - ${option.value.path} - ${generateGAVCoordinates(groupId, artifactId, versionId)}`, children: [_jsx("div", { className: "data-space-advanced-search__dialog__option__label", children: option.label }), _jsx("div", { className: "data-space-advanced-search__dialog__option__path", children: option.value.path }), _jsx("div", { className: "data-space-advanced-search__dialog__option__gav", children: generateGAVCoordinates(groupId, artifactId, versionId) })] }));
|
56
55
|
};
|
57
56
|
// search text
|
58
|
-
const debouncedLoadDataSpaces = useMemo(() => debounce((input) => {
|
59
|
-
flowResult(searchState.loadDataSpaces(input)).catch(applicationStore.alertUnhandledError);
|
60
|
-
}, 500), [applicationStore, searchState]);
|
61
|
-
const onSearchTextChange = (value) => {
|
62
|
-
if (value !== searchText) {
|
63
|
-
setSearchText(value);
|
64
|
-
debouncedLoadDataSpaces.cancel();
|
65
|
-
debouncedLoadDataSpaces(value);
|
66
|
-
}
|
67
|
-
};
|
68
57
|
useEffect(() => {
|
69
|
-
searchState.loadDataSpaces(
|
70
|
-
flowResult(searchState.loadDataSpaces('')).catch(applicationStore.alertUnhandledError);
|
58
|
+
flowResult(searchState.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
|
71
59
|
}, [searchState, applicationStore]);
|
72
60
|
useEffect(() => {
|
73
61
|
if (searchState.currentDataSpace) {
|
@@ -80,7 +68,7 @@ export const DataSpaceAdvancedSearchModal = observer((props) => {
|
|
80
68
|
paper: 'editor-modal__content data-space-advanced-search__dialog__container__content',
|
81
69
|
}, TransitionProps: {
|
82
70
|
onEnter: handleEnter,
|
83
|
-
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal data-space-advanced-search__dialog", children: [_jsxs(ModalHeader, { className: "data-space-advanced-search__dialog__header", children: [_jsx(ModalTitle, { title: "Search for data space " }), _jsx(ModalHeaderActions, { children: _jsx("button", { className: "modal__header__action", title: "Close", onClick: onClose, children: _jsx(TimesIcon, {}) }) })] }), _jsxs("div", { className: "data-space-advanced-search__dialog__content", children: [_jsxs("div", { className: "data-space-advanced-search__dialog__input", children: [_jsx("div", { className: "data-space-advanced-search__dialog__input__icon", children: _jsx(SearchIcon, {}) }), _jsx(CustomSelectorInput, { ref: dataSpaceSearchRef, className: "data-space-advanced-search__dialog__input__selector", options: dataSpaceOptions, isLoading: searchState.loadDataSpacesState.isInProgress,
|
71
|
+
}, children: _jsxs(Modal, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, className: "editor-modal data-space-advanced-search__dialog", children: [_jsxs(ModalHeader, { className: "data-space-advanced-search__dialog__header", children: [_jsx(ModalTitle, { title: "Search for data space " }), _jsx(ModalHeaderActions, { children: _jsx("button", { className: "modal__header__action", title: "Close", onClick: onClose, children: _jsx(TimesIcon, {}) }) })] }), _jsxs("div", { className: "data-space-advanced-search__dialog__content", children: [_jsxs("div", { className: "data-space-advanced-search__dialog__input", children: [_jsx("div", { className: "data-space-advanced-search__dialog__input__icon", children: _jsx(SearchIcon, {}) }), _jsx(CustomSelectorInput, { ref: dataSpaceSearchRef, className: "data-space-advanced-search__dialog__input__selector", options: dataSpaceOptions, isLoading: searchState.loadDataSpacesState.isInProgress, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space by name...", isClearable: true, escapeClearsValue: true, darkMode: !applicationStore.layoutService
|
84
72
|
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatDataSpaceOptionLabel }), _jsx("button", { className: clsx('data-space-advanced-search__dialog__input__use-snapshot-btn', {
|
85
73
|
'data-space-advanced-search__dialog__input__use-snapshot-btn--active': searchState.toGetSnapShot,
|
86
74
|
}), tabIndex: -1, title: `[${searchState.toGetSnapShot ? 'on' : 'off'}] Toggle show data spaces from snapshot releases instead of latest releases`, onClick: toggleGetSnapshot, children: _jsx(BoltIcon, {}) }), _jsx("button", { className: "data-space-advanced-search__dialog__input__proceed-btn", tabIndex: -1, title: "Proceed to create query", onClick: proceedToCreateQuery, children: _jsx(ArrowRightIcon, {}) })] }), _jsxs("div", { className: "data-space-advanced-search__dialog__view", children: [_jsx(PanelLoadingIndicator, { isLoading: searchState.loadDataSpaceState.isInProgress }), searchState.dataSpaceViewerState && (_jsx(DataSpaceViewer, { dataSpaceViewerState: searchState.dataSpaceViewerState })), !searchState.dataSpaceViewerState && (_jsxs(_Fragment, { children: [searchState.loadDataSpaceState.isInProgress && (_jsx(BlankPanelContent, { children: searchState.loadDataSpaceState.message })), searchState.loadDataSpaceState.hasFailed && (_jsx(BlankPanelContent, { children: _jsxs("div", { className: "data-space-advanced-search__dialog__view--failed", children: [_jsx("div", { className: "data-space-advanced-search__dialog__view--failed__icon", children: _jsx(TimesCircleIcon, {}) }), _jsx("div", { className: "data-space-advanced-search__dialog__view--failed__text", children: `Can't load data space` })] }) }))] }))] })] })] }) }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchModal.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,QAAQ,EACR,IAAI,EACJ,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,MAAM,EACN,SAAS,EACT,cAAc,EACd,KAAK,EACL,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchModal.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceAdvancedSearchModal.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,QAAQ,EACR,IAAI,EACJ,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,MAAM,EACN,SAAS,EACT,cAAc,EACd,KAAK,EACL,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,oBAAoB,GAAG,CAAC,KAAoB,EAAmB,EAAE,CAAC,CAAC;IACvE,KAAK,EAAE,KAAK,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,CAAC,CAAC,CAAC,KACrC,6EAA6E,EAC7E,OAAO,EAAE,iBAAiB,YAE1B,KAAC,QAAQ,KAAG,GACL,EACT,iBACE,SAAS,EAAC,wDAAwD,EAClE,QAAQ,EAAE,CAAC,CAAC,EACZ,KAAK,EAAC,yBAAyB,EAC/B,OAAO,EAAE,oBAAoB,YAE7B,KAAC,cAAc,KAAG,GACX,IACL,EACN,eAAK,SAAS,EAAC,0CAA0C,aACvD,KAAC,qBAAqB,IACpB,SAAS,EAAE,WAAW,CAAC,kBAAkB,CAAC,YAAY,GACtD,EACD,WAAW,CAAC,oBAAoB,IAAI,CACnC,KAAC,eAAe,IACd,oBAAoB,EAAE,WAAW,CAAC,oBAAoB,GACtD,CACH,EACA,CAAC,WAAW,CAAC,oBAAoB,IAAI,CACpC,8BACG,WAAW,CAAC,kBAAkB,CAAC,YAAY,IAAI,CAC9C,KAAC,iBAAiB,cACf,WAAW,CAAC,kBAAkB,CAAC,OAAO,GACrB,CACrB,EACA,WAAW,CAAC,kBAAkB,CAAC,SAAS,IAAI,CAC3C,KAAC,iBAAiB,cAChB,eAAK,SAAS,EAAC,kDAAkD,aAC/D,cAAK,SAAS,EAAC,wDAAwD,YACrE,KAAC,eAAe,KAAG,GACf,EACN,cAAK,SAAS,EAAC,wDAAwD,YACpE,uBAAuB,GACpB,IACF,GACY,CACrB,IACA,CACJ,IACG,IACF,IACA,GACD,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,OAAO,EACL,0BAA0B,EAE3B,MAAM,kDAAkD,CAAC;AAY1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAKzE,OAAO,EACL,SAAS,EAEV,MAAM,2FAA2F,CAAC;AAGnG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,oBAAoB,UACxB,aAAa,KACnB,eAGD,CAAC;AACH,eAAO,MAAM,0BAA0B,WAC7B,eAAe,KACtB,MAAM,SAiCR,CAAC;
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAkBH,OAAO,EACL,0BAA0B,EAE3B,MAAM,kDAAkD,CAAC;AAY1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAKzE,OAAO,EACL,SAAS,EAEV,MAAM,2FAA2F,CAAC;AAGnG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,oBAAoB,UACxB,aAAa,KACnB,eAGD,CAAC;AACH,eAAO,MAAM,0BAA0B,WAC7B,eAAe,KACtB,MAAM,SAiCR,CAAC;AAsQF,eAAO,MAAM,4CAA4C,sBACpC,0BAA0B,KAC5C,MAAM,SAIR,CAAC;AAEF,eAAO,MAAM,cAAc,cACd,SAAS,eACP,WAAW,KACvB,QAAQ,IAAI,CAqDd,CAAC"}
|
@@ -21,8 +21,8 @@ import { DataSpaceQueryBuilderState, resolveUsableDataSpaceClasses, } from '../.
|
|
21
21
|
import { buildRuntimeValueOption, getRuntimeOptionFormatter, QueryBuilderClassSelector, } from '@finos/legend-query-builder';
|
22
22
|
import { getMappingCompatibleRuntimes, PackageableElementExplicitReference, RuntimePointer, } from '@finos/legend-graph';
|
23
23
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
24
|
-
import { useEffect
|
25
|
-
import {
|
24
|
+
import { useEffect } from 'react';
|
25
|
+
import { guaranteeType } from '@finos/legend-shared';
|
26
26
|
import { flowResult } from 'mobx';
|
27
27
|
import { DataSpace, } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
|
28
28
|
import { DataSpaceIcon } from '../DSL_DataSpace_Icon.js';
|
@@ -52,7 +52,6 @@ const buildExecutionContextOption = (value) => ({
|
|
52
52
|
const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
|
53
53
|
const { queryBuilderState } = props;
|
54
54
|
const applicationStore = useApplicationStore();
|
55
|
-
const [dataSpaceSearchText, setDataSpaceSearchText] = useState('');
|
56
55
|
// data space
|
57
56
|
const dataSpaceOptions = queryBuilderState.dataSpaces.map(buildDataSpaceOption);
|
58
57
|
const selectedDataSpaceOption = {
|
@@ -70,17 +69,6 @@ const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
|
|
70
69
|
const onDataSpaceOptionChange = (option) => {
|
71
70
|
queryBuilderState.onDataSpaceChange(option.value);
|
72
71
|
};
|
73
|
-
// data space search text
|
74
|
-
const debouncedLoadDataSpaces = useMemo(() => debounce((input) => {
|
75
|
-
flowResult(queryBuilderState.loadDataSpaces(input)).catch(applicationStore.alertUnhandledError);
|
76
|
-
}, 500), [applicationStore, queryBuilderState]);
|
77
|
-
const onDataSpaceSearchTextChange = (value) => {
|
78
|
-
if (value !== dataSpaceSearchText) {
|
79
|
-
setDataSpaceSearchText(value);
|
80
|
-
debouncedLoadDataSpaces.cancel();
|
81
|
-
debouncedLoadDataSpaces(value);
|
82
|
-
}
|
83
|
-
};
|
84
72
|
const openDataSpaceAdvancedSearch = () => queryBuilderState.showAdvancedSearchPanel();
|
85
73
|
// execution context
|
86
74
|
const executionContextOptions = queryBuilderState.dataSpace.executionContexts.map(buildExecutionContextOption);
|
@@ -117,12 +105,12 @@ const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
|
|
117
105
|
// class
|
118
106
|
const classes = resolveUsableDataSpaceClasses(queryBuilderState.dataSpace, queryBuilderState.executionContext.mapping.value, queryBuilderState.graphManagerState);
|
119
107
|
useEffect(() => {
|
120
|
-
flowResult(queryBuilderState.loadDataSpaces(
|
108
|
+
flowResult(queryBuilderState.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
|
121
109
|
}, [queryBuilderState, applicationStore]);
|
122
110
|
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsxs("div", { className: "query-builder__setup__config-group__header", children: [_jsx("div", { className: "query-builder__setup__config-group__header__title", children: "data space execution context" }), _jsx(DropdownMenu, { className: "query-builder__setup__config-group__header__dropdown-trigger", title: "Show Settings...", content: _jsx(MenuContent, { children: _jsxs(MenuContentItem, { onClick: () => queryBuilderState.setShowRuntimeSelector(!queryBuilderState.showRuntimeSelector), children: [_jsx(MenuContentItemIcon, { children: queryBuilderState.showRuntimeSelector ? (_jsx(CheckIcon, {})) : null }), _jsx(MenuContentItemLabel, { children: "Show Runtime Selector" })] }) }), menuProps: {
|
123
111
|
anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
|
124
112
|
transformOrigin: { vertical: 'top', horizontal: 'right' },
|
125
|
-
}, children: _jsx(MoreHorizontalIcon, {}) })] }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", children: _jsx(DataSpaceIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.loadDataSpacesState.isInProgress,
|
113
|
+
}, children: _jsx(MoreHorizontalIcon, {}) })] }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", children: _jsx(DataSpaceIcon, {}) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.loadDataSpacesState.isInProgress, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space...", escapeClearsValue: true, darkMode: !applicationStore.layoutService
|
126
114
|
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatDataSpaceOptionLabel }), queryBuilderState.isAdvancedDataSpaceSearchEnabled && (_jsxs(_Fragment, { children: [_jsx("button", { tabIndex: -1, className: "query-builder__setup__data-space-searcher__btn btn--dark", onClick: openDataSpaceAdvancedSearch, title: "Open advanced search for data space...", children: _jsx(SearchIcon, {}) }), queryBuilderState.advancedSearchState && (_jsx(DataSpaceAdvancedSearchModal, { searchState: queryBuilderState.advancedSearchState, onClose: () => queryBuilderState.hideAdvancedSearchPanel() }))] }))] }), _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "execution context", children: _jsx(PlayIcon, { className: "query-builder__setup__data-space__icon__execution-context" }) }), _jsx(CustomSelectorInput, { className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose an execution context...", options: executionContextOptions, disabled: executionContextOptions.length < 1 ||
|
127
115
|
(executionContextOptions.length === 1 &&
|
128
116
|
Boolean(selectedExecutionContextOption)), onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: !applicationStore.layoutService
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,4BAA4B,EAC5B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EACL,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,kDAAkD,CAAC;AAC1D,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,yBAAyB,GAC1B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,4BAA4B,EAC5B,mCAAmC,EACnC,cAAc,GACf,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,O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CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetup.d.ts","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,gDAAgD,CAAC;AA2BxD,eAAO,MAAM,mBAAmB;;CAI9B,CAAC;AA6FH,eAAO,MAAM,0CAA0C,sBAClC,wBAAwB,KAC1C,MAAM,SAER,CAAC"}
|
@@ -15,10 +15,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
15
15
|
* limitations under the License.
|
16
16
|
*/
|
17
17
|
import { observer, useLocalObservable } from 'mobx-react-lite';
|
18
|
-
import { debounce } from '@finos/legend-shared';
|
19
18
|
import { useApplicationStore } from '@finos/legend-application';
|
20
19
|
import { QueryEditor, QueryEditorStoreContext, useLegendQueryApplicationStore, useLegendQueryBaseStore, } from '@finos/legend-application-query';
|
21
|
-
import { useEffect,
|
20
|
+
import { useEffect, useRef } from 'react';
|
22
21
|
import { flowResult } from 'mobx';
|
23
22
|
import { QueryBuilderClassSelector } from '@finos/legend-query-builder';
|
24
23
|
import { CustomSelectorInput, SearchIcon, } from '@finos/legend-art';
|
@@ -46,30 +45,18 @@ const DataSpaceQuerySetupSetupPanelContent = observer((props) => {
|
|
46
45
|
const { queryBuilderState } = props;
|
47
46
|
const applicationStore = useApplicationStore();
|
48
47
|
const dataSpaceSearchRef = useRef(null);
|
49
|
-
const [dataSpaceSearchText, setDataSpaceSearchText] = useState('');
|
50
48
|
// data space
|
51
49
|
const dataSpaceOptions = queryBuilderState.dataSpaces.map(buildDataSpaceOption);
|
52
50
|
const selectedDataSpaceOption = null;
|
53
51
|
const onDataSpaceOptionChange = (option) => {
|
54
52
|
queryBuilderState.onDataSpaceChange(option.value);
|
55
53
|
};
|
56
|
-
// data space search text
|
57
|
-
const debouncedLoadDataSpaces = useMemo(() => debounce((input) => {
|
58
|
-
flowResult(queryBuilderState.loadDataSpaces(input)).catch(applicationStore.alertUnhandledError);
|
59
|
-
}, 500), [applicationStore, queryBuilderState]);
|
60
|
-
const onDataSpaceSearchTextChange = (value) => {
|
61
|
-
if (value !== dataSpaceSearchText) {
|
62
|
-
setDataSpaceSearchText(value);
|
63
|
-
debouncedLoadDataSpaces.cancel();
|
64
|
-
debouncedLoadDataSpaces(value);
|
65
|
-
}
|
66
|
-
};
|
67
54
|
const openDataSpaceAdvancedSearch = () => queryBuilderState.showAdvancedSearchPanel();
|
68
55
|
useEffect(() => {
|
69
|
-
flowResult(queryBuilderState.loadDataSpaces(
|
56
|
+
flowResult(queryBuilderState.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
|
70
57
|
}, [queryBuilderState, applicationStore]);
|
71
58
|
useEffect(() => dataSpaceSearchRef.current?.focus());
|
72
|
-
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx("div", { className: "query-builder__setup__config-group__header", children: _jsx("div", { className: "query-builder__setup__config-group__header__title", children: "data space execution context" }) }), _jsx("div", { className: "query-builder__setup__config-group__content", children: _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", children: _jsx(DataSpaceIcon, {}) }), _jsx(CustomSelectorInput, { ref: dataSpaceSearchRef, className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.loadDataSpacesState.isInProgress,
|
59
|
+
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx("div", { className: "query-builder__setup__config-group__header", children: _jsx("div", { className: "query-builder__setup__config-group__header__title", children: "data space execution context" }) }), _jsx("div", { className: "query-builder__setup__config-group__content", children: _jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("div", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", children: _jsx(DataSpaceIcon, {}) }), _jsx(CustomSelectorInput, { ref: dataSpaceSearchRef, className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.loadDataSpacesState.isInProgress, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space...", escapeClearsValue: true, darkMode: !applicationStore.layoutService
|
73
60
|
.TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatDataSpaceOptionLabel }), _jsx("button", { tabIndex: -1, className: "query-builder__setup__data-space-searcher__btn btn--dark", onClick: openDataSpaceAdvancedSearch, title: "Open advanced search for data space...", children: _jsx(SearchIcon, {}) }), queryBuilderState.advancedSearchState && (_jsx(DataSpaceAdvancedSearchModal, { searchState: queryBuilderState.advancedSearchState, onClose: () => queryBuilderState.hideAdvancedSearchPanel() }))] }) })] }), _jsx(QueryBuilderClassSelector, { queryBuilderState: queryBuilderState, classes: [], noMatchMessage: "No compatible class found" })] }));
|
74
61
|
});
|
75
62
|
export const renderDataSpaceQuerySetupSetupPanelContent = (queryBuilderState) => (_jsx(DataSpaceQuerySetupSetupPanelContent, { queryBuilderState: queryBuilderState }));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetup.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetup.js","sourceRoot":"","sources":["../../../src/components/query/DataSpaceQuerySetup.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAA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SAAS,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,YAAY,EAC7D,QAAQ,EAAE,uBAAuB,EACjC,KAAK,EAAE,uBAAuB,EAC9B,WAAW,EAAC,0BAA0B,EACtC,iBAAiB,EAAE,IAAI,EACvB,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;yCAC5B,mCAAmC,EAExC,iBAAiB,EAAE,0BAA0B,GAC7C,EACF,iBACE,QAAQ,EAAE,CAAC,CAAC,EACZ,SAAS,EAAC,0DAA0D,EACpE,OAAO,EAAE,2BAA2B,EACpC,KAAK,EAAC,wCAAwC,YAE9C,KAAC,UAAU,KAAG,GACP,EACR,iBAAiB,CAAC,mBAAmB,IAAI,CACxC,KAAC,4BAA4B,IAC3B,WAAW,EAAE,iBAAiB,CAAC,mBAAmB,EAClD,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,uBAAuB,EAAE,GAC1D,CACH,IACG,GACF,IACF,EACN,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,EAAE,EACX,cAAc,EAAC,2BAA2B,GAC1C,IACD,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,0CAA0C,GAAG,CACxD,iBAA2C,EAC1B,EAAE,CAAC,CACpB,KAAC,oCAAoC,IAAC,iBAAiB,EAAE,iBAAiB,GAAI,CAC/E,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -38,7 +38,7 @@ export declare class DataSpaceAdvancedSearchState {
|
|
38
38
|
setCurrentDataSpace(val: DataSpaceInfo | undefined): void;
|
39
39
|
setDataSpaceViewerState(val: DataSpaceViewerState | undefined): void;
|
40
40
|
setToGetSnapShot(val: boolean): void;
|
41
|
-
loadDataSpaces(
|
41
|
+
loadDataSpaces(): GeneratorFn<void>;
|
42
42
|
loadDataSpace(dataSpace: DataSpaceInfo): GeneratorFn<void>;
|
43
43
|
proceedToCreateQuery(_class?: Class): GeneratorFn<void>;
|
44
44
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,iBAAiB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAEhB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,iBAAiB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,KAAK,iBAAiB,EAIvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAEhB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAI9B,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAK/E,qBAAa,4BAA4B;IACvC,QAAQ,CAAC,gBAAgB,EAAE,6BAA6B,CAAC;IACzD,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IAC9C,QAAQ,CAAC,WAAW,E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AC,SAAS,EAAE,aAAa,GAAG,WAAW,CAAC,IAAI,CAAC;IAkF1D,oBAAoB,CAAC,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC;CAkBzD"}
|
@@ -22,7 +22,7 @@ import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol
|
|
22
22
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
23
23
|
import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
24
24
|
import { extractDataSpaceInfo } from './DataSpaceInfo.js';
|
25
|
-
import {
|
25
|
+
import {} from '@finos/legend-application';
|
26
26
|
import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
|
27
27
|
import { generateServiceQueryCreatorRoute } from '@finos/legend-application-query';
|
28
28
|
export class DataSpaceAdvancedSearchState {
|
@@ -69,16 +69,13 @@ export class DataSpaceAdvancedSearchState {
|
|
69
69
|
setToGetSnapShot(val) {
|
70
70
|
this.toGetSnapShot = val;
|
71
71
|
}
|
72
|
-
*loadDataSpaces(
|
73
|
-
const isValidSearchString = searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
|
72
|
+
*loadDataSpaces() {
|
74
73
|
this.loadDataSpacesState.inProgress();
|
75
74
|
try {
|
76
|
-
this.dataSpaces = (yield this.depotServerClient.
|
77
|
-
search: isValidSearchString ? searchText : undefined,
|
75
|
+
this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
|
78
76
|
scope: this.toGetSnapShot
|
79
77
|
? DepotScope.SNAPSHOT
|
80
78
|
: DepotScope.RELEASES,
|
81
|
-
limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
82
79
|
})).map((storedEntity) => extractDataSpaceInfo(storedEntity, this.toGetSnapShot));
|
83
80
|
this.loadDataSpacesState.pass();
|
84
81
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EAGnB,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,gBAAgB,EAChB,uCAAuC,GACxC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5E,OAAO,EAAE,sCAAsC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,EAAE,kCAAkC,EAAE,MAAM,gFAAgF,CAAC;AACpI,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,kCAAkC,EAAE,MAAM,4DAA4D,CAAC;AAChH,OAAO,EAAsB,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,
|
1
|
+
{"version":3,"file":"DataSpaceAdvancedSearchState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceAdvancedSearchState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EAGnB,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,UAAU,EACV,gBAAgB,EAChB,uCAAuC,GACxC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAGL,WAAW,EACX,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC5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IAAI,CAAC,oBAAoB,CAAC,OAAO,EACjC,IAAI,CAAC,oBAAoB,CAAC,UAAU,EACpC,IAAI,CAAC,oBAAoB,CAAC,SAAS,EACnC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,IAAI,EACtD,IAAI,CAAC,oBAAoB,CAAC,cAAc;gBACtC,IAAI,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,cAAc;gBAChE,CAAC,CAAC,SAAS;gBACX,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,IAAI,EACjD,MAAM,EAAE,IAAI,CACb,CACF,CAAC;SACH;IACH,CAAC;CACF"}
|
@@ -61,7 +61,7 @@ export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
|
|
61
61
|
hideAdvancedSearchPanel(): void;
|
62
62
|
setExecutionContext(val: DataSpaceExecutionContext): void;
|
63
63
|
setShowRuntimeSelector(val: boolean): void;
|
64
|
-
loadDataSpaces(
|
64
|
+
loadDataSpaces(): GeneratorFn<void>;
|
65
65
|
/**
|
66
66
|
* Propagation after changing the execution context:
|
67
67
|
* - The mapping will be updated to the mapping of the execution context
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderState.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,kBAAkB,EACvB,iBAAiB,EACjB,KAAK,SAAS,EACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,K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BAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,SAAS,EACpB,gBAAgB,EAAE,yBAAyB,EAC3C,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,EAC/C,gCAAgC,EAAE,OAAO,EACzC,uBAAuB,CAAC,EAAE,uBAAuB,GAAG,SAAS,EAC7D,wBAAwB,CAAC,EACrB,CAAC,CAAC,GAAG,EAAE,yBAAyB,KAAK,IAAI,CAAC,GAC1C,SAAS,EACb,eAAe,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC,GAAG,SAAS,EACtD,aAAa,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,EAClD,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,EAC9C,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS;IA8BpC,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAED,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9C,uBAAuB,IAAI,IAAI;IAwB/B,uBAAuB,IAAI,IAAI;IAI/B,mBAAmB,CAAC,GAAG,EAAE,yBAAyB,GAAG,IAAI;IAIzD,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAIzC,cAAc,IAAI,WAAW,CAAC,IAAI,CAAC;IAwCpC;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAAgB,EAAE,yBAAyB,GAC1C,IAAI;CA2BR"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
* See the License for the specific language governing permissions and
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
|
-
import {
|
16
|
+
import {} from '@finos/legend-application';
|
17
17
|
import { QueryBuilderState, } from '@finos/legend-query-builder';
|
18
18
|
import { getMappingCompatibleClasses, RuntimePointer, Class, getDescendantsOfPackage, Package, } from '@finos/legend-graph';
|
19
19
|
import { DepotScope, SNAPSHOT_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
@@ -128,16 +128,13 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
|
|
128
128
|
setShowRuntimeSelector(val) {
|
129
129
|
this.showRuntimeSelector = val;
|
130
130
|
}
|
131
|
-
*loadDataSpaces(
|
131
|
+
*loadDataSpaces() {
|
132
132
|
if (this.projectInfo) {
|
133
|
-
const isValidSearchString = searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
|
134
133
|
this.loadDataSpacesState.inProgress();
|
135
134
|
const toGetSnapShot = this.projectInfo.versionId === SNAPSHOT_VERSION_ALIAS;
|
136
135
|
try {
|
137
|
-
this.dataSpaces = (yield this.depotServerClient.
|
138
|
-
search: isValidSearchString ? searchText : undefined,
|
136
|
+
this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
|
139
137
|
scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
|
140
|
-
limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
141
138
|
})).map((storedEntity) => extractDataSpaceInfo(storedEntity, toGetSnapShot));
|
142
139
|
this.loadDataSpacesState.pass();
|
143
140
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
1
|
+
{"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAEL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a,CAAC,kCAAkC;gBACnD,kCAAkC,CAAC;SACtC;QACD,IAAI,CAAC,aAAa,CAAC,IAAI,cAAc,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;QAExE,MAAM,iBAAiB,GAAG,6BAA6B,CACrD,IAAI,CAAC,SAAS,EACd,OAAO,EACP,IAAI,CAAC,iBAAiB,CACvB,CAAC;QACF,kEAAkE;QAClE,4DAA4D;QAC5D,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC1D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE;gBACpB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;aACpC;SACF;IACH,CAAC;CACF"}
|
@@ -37,7 +37,7 @@ export declare class DataSpaceQuerySetupState extends QueryBuilderState {
|
|
37
37
|
get sideBarClassName(): string | undefined;
|
38
38
|
showAdvancedSearchPanel(): void;
|
39
39
|
hideAdvancedSearchPanel(): void;
|
40
|
-
loadDataSpaces(
|
40
|
+
loadDataSpaces(): GeneratorFn<void>;
|
41
41
|
}
|
42
42
|
export declare class DataSpaceQuerySetupStore extends QueryEditorStore {
|
43
43
|
get isViewProjectActionDisabled(): boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupStore.d.ts","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAGL,gBAAgB,EAChB,KAAK,yBAAyB,EAC/B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,
|
1
|
+
{"version":3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,SAAS,CAChB;IAEnD,UAAU,EAAE,aAAa,EAAE,CAAM;IACjC,mBAAmB,UAAS;IAC5B,mBAAmB,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;gBAG7D,gBAAgB,EAAE,6BAA6B,EAC/C,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,iBAAiB,EACpC,iBAAiB,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,EAC/C,WAAW,EAAE,CACX,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,IAAI,EACT,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,GAAG,SAAS,KAC3B,OAAO,CAAC,IAAI,CAAC,EAClB,MAAM,EAAE,kBAAkB,GAAG,SAAS;IAkBxC,IAAa,mBAAmB,IAAI,OAAO,CAE1C;IAED,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAElD;IAED,uBAAuB,IAAI,IAAI;IAY/B,uBAAuB,IAAI,IAAI;IAI9B,cAAc,IAAI,WAAW,CAAC,IAAI,CAAC;CAkBrC;AAED,qBAAa,wBAAyB,SAAQ,gBAAgB;IAC5D,IAAa,2BAA2B,IAAI,OAAO,CAElD;IAED,cAAc,IAAI,qBAAqB;IAIvC,uBAAuB,CACrB,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;KAAE,GACzC,yBAAyB;IAItB,2BAA2B,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAmCrD,UAAU,IAAI,WAAW,CAAC,IAAI,CAAC;CAG1C"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { createViewProjectHandler, createViewSDLCProjectHandler, QueryEditorStore, } from '@finos/legend-application-query';
|
17
17
|
import { DepotScope, LATEST_VERSION_ALIAS, } from '@finos/legend-server-depot';
|
18
|
-
import {
|
18
|
+
import {} from '@finos/legend-application';
|
19
19
|
import { action, flow, makeObservable, observable } from 'mobx';
|
20
20
|
import { QueryBuilderState, } from '@finos/legend-query-builder';
|
21
21
|
import { ActionState, assertErrorThrown, guaranteeNonNullable, UnsupportedOperationError, } from '@finos/legend-shared';
|
@@ -63,14 +63,11 @@ export class DataSpaceQuerySetupState extends QueryBuilderState {
|
|
63
63
|
hideAdvancedSearchPanel() {
|
64
64
|
this.advancedSearchState = undefined;
|
65
65
|
}
|
66
|
-
*loadDataSpaces(
|
67
|
-
const isValidSearchString = searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
|
66
|
+
*loadDataSpaces() {
|
68
67
|
this.loadDataSpacesState.inProgress();
|
69
68
|
try {
|
70
|
-
this.dataSpaces = (yield this.depotServerClient.
|
71
|
-
search: isValidSearchString ? searchText : undefined,
|
69
|
+
this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
|
72
70
|
scope: DepotScope.RELEASES,
|
73
|
-
limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
74
71
|
})).map((storedEntity) => extractDataSpaceInfo(storedEntity, false));
|
75
72
|
this.loadDataSpacesState.pass();
|
76
73
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DataSpaceQuerySetupStore.js","sourceRoot":"","sources":["../../../src/stores/query/DataSpaceQuerySetupStore.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,GAEjB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,UAAU,EACV,oBAAoB,GAGrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,
|
1
|
+
{"version":3,"file":"DataSpaceQuerySetupStore.js","sourceRoot":"","sources":["../../../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AAO,CAAC,kBAAkB,CACxD,CAAC;QAEF,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAEQ,CAAC,UAAU;QAClB,aAAa;IACf,CAAC;CACF"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@finos/legend-extension-dsl-data-space",
|
3
|
-
"version": "10.
|
3
|
+
"version": "10.2.0",
|
4
4
|
"description": "Legend extension for Data Space DSL",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -44,15 +44,15 @@
|
|
44
44
|
"test:watch": "jest --watch"
|
45
45
|
},
|
46
46
|
"dependencies": {
|
47
|
-
"@finos/legend-application": "15.0.
|
48
|
-
"@finos/legend-application-query": "13.3.
|
49
|
-
"@finos/legend-application-studio": "28.16.
|
50
|
-
"@finos/legend-art": "7.1.
|
51
|
-
"@finos/legend-extension-dsl-diagram": "8.0.
|
52
|
-
"@finos/legend-graph": "31.9.
|
53
|
-
"@finos/legend-lego": "1.2.
|
54
|
-
"@finos/legend-query-builder": "4.14.
|
55
|
-
"@finos/legend-server-depot": "6.0.
|
47
|
+
"@finos/legend-application": "15.0.74",
|
48
|
+
"@finos/legend-application-query": "13.3.1",
|
49
|
+
"@finos/legend-application-studio": "28.16.9",
|
50
|
+
"@finos/legend-art": "7.1.26",
|
51
|
+
"@finos/legend-extension-dsl-diagram": "8.0.153",
|
52
|
+
"@finos/legend-graph": "31.9.8",
|
53
|
+
"@finos/legend-lego": "1.2.21",
|
54
|
+
"@finos/legend-query-builder": "4.14.22",
|
55
|
+
"@finos/legend-server-depot": "6.0.39",
|
56
56
|
"@finos/legend-shared": "10.0.34",
|
57
57
|
"@finos/legend-storage": "3.0.84",
|
58
58
|
"@types/react": "18.2.31",
|
@@ -33,10 +33,10 @@ import {
|
|
33
33
|
ModalHeaderActions,
|
34
34
|
} from '@finos/legend-art';
|
35
35
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
36
|
-
import {
|
36
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
37
37
|
import { flowResult } from 'mobx';
|
38
38
|
import { observer } from 'mobx-react-lite';
|
39
|
-
import { useEffect,
|
39
|
+
import { useEffect, useRef } from 'react';
|
40
40
|
import { DataSpaceViewer } from '../DataSpaceViewer.js';
|
41
41
|
import type { DataSpaceInfo } from '../../stores/query/DataSpaceInfo.js';
|
42
42
|
import type { DataSpaceAdvancedSearchState } from '../../stores/query/DataSpaceAdvancedSearchState.js';
|
@@ -55,17 +55,15 @@ export const DataSpaceAdvancedSearchModal = observer(
|
|
55
55
|
const { searchState, onClose } = props;
|
56
56
|
const applicationStore = useApplicationStore();
|
57
57
|
const dataSpaceSearchRef = useRef<SelectComponent>(null);
|
58
|
-
const [searchText, setSearchText] = useState('');
|
59
58
|
const handleEnter = (): void => dataSpaceSearchRef.current?.focus();
|
60
59
|
const proceedToCreateQuery = (): void => {
|
61
60
|
flowResult(searchState.proceedToCreateQuery()).catch(
|
62
61
|
applicationStore.alertUnhandledError,
|
63
62
|
);
|
64
63
|
};
|
65
|
-
|
66
64
|
const toggleGetSnapshot = (): void => {
|
67
65
|
searchState.setToGetSnapShot(!searchState.toGetSnapShot);
|
68
|
-
flowResult(searchState.loadDataSpaces(
|
66
|
+
flowResult(searchState.loadDataSpaces()).catch(
|
69
67
|
applicationStore.alertUnhandledError,
|
70
68
|
);
|
71
69
|
};
|
@@ -106,26 +104,9 @@ export const DataSpaceAdvancedSearchModal = observer(
|
|
106
104
|
};
|
107
105
|
|
108
106
|
// search text
|
109
|
-
const debouncedLoadDataSpaces = useMemo(
|
110
|
-
() =>
|
111
|
-
debounce((input: string): void => {
|
112
|
-
flowResult(searchState.loadDataSpaces(input)).catch(
|
113
|
-
applicationStore.alertUnhandledError,
|
114
|
-
);
|
115
|
-
}, 500),
|
116
|
-
[applicationStore, searchState],
|
117
|
-
);
|
118
|
-
const onSearchTextChange = (value: string): void => {
|
119
|
-
if (value !== searchText) {
|
120
|
-
setSearchText(value);
|
121
|
-
debouncedLoadDataSpaces.cancel();
|
122
|
-
debouncedLoadDataSpaces(value);
|
123
|
-
}
|
124
|
-
};
|
125
107
|
|
126
108
|
useEffect(() => {
|
127
|
-
searchState.loadDataSpaces(
|
128
|
-
flowResult(searchState.loadDataSpaces('')).catch(
|
109
|
+
flowResult(searchState.loadDataSpaces()).catch(
|
129
110
|
applicationStore.alertUnhandledError,
|
130
111
|
);
|
131
112
|
}, [searchState, applicationStore]);
|
@@ -180,8 +161,6 @@ export const DataSpaceAdvancedSearchModal = observer(
|
|
180
161
|
className="data-space-advanced-search__dialog__input__selector"
|
181
162
|
options={dataSpaceOptions}
|
182
163
|
isLoading={searchState.loadDataSpacesState.isInProgress}
|
183
|
-
onInputChange={onSearchTextChange}
|
184
|
-
inputValue={searchText}
|
185
164
|
onChange={onDataSpaceOptionChange}
|
186
165
|
value={selectedDataSpaceOption}
|
187
166
|
placeholder="Search for data space by name..."
|
@@ -47,8 +47,8 @@ import {
|
|
47
47
|
} from '@finos/legend-graph';
|
48
48
|
import type { DataSpaceInfo } from '../../stores/query/DataSpaceInfo.js';
|
49
49
|
import { generateGAVCoordinates } from '@finos/legend-storage';
|
50
|
-
import { useEffect
|
51
|
-
import {
|
50
|
+
import { useEffect } from 'react';
|
51
|
+
import { guaranteeType } from '@finos/legend-shared';
|
52
52
|
import { flowResult } from 'mobx';
|
53
53
|
import {
|
54
54
|
DataSpace,
|
@@ -129,7 +129,6 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
129
129
|
(props: { queryBuilderState: DataSpaceQueryBuilderState }) => {
|
130
130
|
const { queryBuilderState } = props;
|
131
131
|
const applicationStore = useApplicationStore();
|
132
|
-
const [dataSpaceSearchText, setDataSpaceSearchText] = useState('');
|
133
132
|
|
134
133
|
// data space
|
135
134
|
const dataSpaceOptions =
|
@@ -152,23 +151,6 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
152
151
|
queryBuilderState.onDataSpaceChange(option.value);
|
153
152
|
};
|
154
153
|
|
155
|
-
// data space search text
|
156
|
-
const debouncedLoadDataSpaces = useMemo(
|
157
|
-
() =>
|
158
|
-
debounce((input: string): void => {
|
159
|
-
flowResult(queryBuilderState.loadDataSpaces(input)).catch(
|
160
|
-
applicationStore.alertUnhandledError,
|
161
|
-
);
|
162
|
-
}, 500),
|
163
|
-
[applicationStore, queryBuilderState],
|
164
|
-
);
|
165
|
-
const onDataSpaceSearchTextChange = (value: string): void => {
|
166
|
-
if (value !== dataSpaceSearchText) {
|
167
|
-
setDataSpaceSearchText(value);
|
168
|
-
debouncedLoadDataSpaces.cancel();
|
169
|
-
debouncedLoadDataSpaces(value);
|
170
|
-
}
|
171
|
-
};
|
172
154
|
const openDataSpaceAdvancedSearch = (): void =>
|
173
155
|
queryBuilderState.showAdvancedSearchPanel();
|
174
156
|
|
@@ -232,7 +214,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
232
214
|
);
|
233
215
|
|
234
216
|
useEffect(() => {
|
235
|
-
flowResult(queryBuilderState.loadDataSpaces(
|
217
|
+
flowResult(queryBuilderState.loadDataSpaces()).catch(
|
236
218
|
applicationStore.alertUnhandledError,
|
237
219
|
);
|
238
220
|
}, [queryBuilderState, applicationStore]);
|
@@ -287,8 +269,6 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
|
|
287
269
|
className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
|
288
270
|
options={dataSpaceOptions}
|
289
271
|
isLoading={queryBuilderState.loadDataSpacesState.isInProgress}
|
290
|
-
onInputChange={onDataSpaceSearchTextChange}
|
291
|
-
inputValue={dataSpaceSearchText}
|
292
272
|
onChange={onDataSpaceOptionChange}
|
293
273
|
value={selectedDataSpaceOption}
|
294
274
|
placeholder="Search for data space..."
|
@@ -15,7 +15,6 @@
|
|
15
15
|
*/
|
16
16
|
|
17
17
|
import { observer, useLocalObservable } from 'mobx-react-lite';
|
18
|
-
import { debounce } from '@finos/legend-shared';
|
19
18
|
import { useApplicationStore } from '@finos/legend-application';
|
20
19
|
import {
|
21
20
|
QueryEditor,
|
@@ -23,7 +22,7 @@ import {
|
|
23
22
|
useLegendQueryApplicationStore,
|
24
23
|
useLegendQueryBaseStore,
|
25
24
|
} from '@finos/legend-application-query';
|
26
|
-
import { useEffect,
|
25
|
+
import { useEffect, useRef } from 'react';
|
27
26
|
import { flowResult } from 'mobx';
|
28
27
|
import { QueryBuilderClassSelector } from '@finos/legend-query-builder';
|
29
28
|
import {
|
@@ -82,8 +81,6 @@ const DataSpaceQuerySetupSetupPanelContent = observer(
|
|
82
81
|
const { queryBuilderState } = props;
|
83
82
|
const applicationStore = useApplicationStore();
|
84
83
|
const dataSpaceSearchRef = useRef<SelectComponent>(null);
|
85
|
-
const [dataSpaceSearchText, setDataSpaceSearchText] = useState('');
|
86
|
-
|
87
84
|
// data space
|
88
85
|
const dataSpaceOptions =
|
89
86
|
queryBuilderState.dataSpaces.map(buildDataSpaceOption);
|
@@ -92,28 +89,11 @@ const DataSpaceQuerySetupSetupPanelContent = observer(
|
|
92
89
|
queryBuilderState.onDataSpaceChange(option.value);
|
93
90
|
};
|
94
91
|
|
95
|
-
// data space search text
|
96
|
-
const debouncedLoadDataSpaces = useMemo(
|
97
|
-
() =>
|
98
|
-
debounce((input: string): void => {
|
99
|
-
flowResult(queryBuilderState.loadDataSpaces(input)).catch(
|
100
|
-
applicationStore.alertUnhandledError,
|
101
|
-
);
|
102
|
-
}, 500),
|
103
|
-
[applicationStore, queryBuilderState],
|
104
|
-
);
|
105
|
-
const onDataSpaceSearchTextChange = (value: string): void => {
|
106
|
-
if (value !== dataSpaceSearchText) {
|
107
|
-
setDataSpaceSearchText(value);
|
108
|
-
debouncedLoadDataSpaces.cancel();
|
109
|
-
debouncedLoadDataSpaces(value);
|
110
|
-
}
|
111
|
-
};
|
112
92
|
const openDataSpaceAdvancedSearch = (): void =>
|
113
93
|
queryBuilderState.showAdvancedSearchPanel();
|
114
94
|
|
115
95
|
useEffect(() => {
|
116
|
-
flowResult(queryBuilderState.loadDataSpaces(
|
96
|
+
flowResult(queryBuilderState.loadDataSpaces()).catch(
|
117
97
|
applicationStore.alertUnhandledError,
|
118
98
|
);
|
119
99
|
}, [queryBuilderState, applicationStore]);
|
@@ -141,8 +121,6 @@ const DataSpaceQuerySetupSetupPanelContent = observer(
|
|
141
121
|
className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
|
142
122
|
options={dataSpaceOptions}
|
143
123
|
isLoading={queryBuilderState.loadDataSpacesState.isInProgress}
|
144
|
-
onInputChange={onDataSpaceSearchTextChange}
|
145
|
-
inputValue={dataSpaceSearchText}
|
146
124
|
onChange={onDataSpaceOptionChange}
|
147
125
|
value={selectedDataSpaceOption}
|
148
126
|
placeholder="Search for data space..."
|
@@ -40,11 +40,7 @@ import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol
|
|
40
40
|
import { DataSpaceViewerState } from '../DataSpaceViewerState.js';
|
41
41
|
import { generateDataSpaceQueryCreatorRoute } from '../../__lib__/query/DSL_DataSpace_LegendQueryNavigation.js';
|
42
42
|
import { type DataSpaceInfo, extractDataSpaceInfo } from './DataSpaceInfo.js';
|
43
|
-
import {
|
44
|
-
DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
45
|
-
DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
|
46
|
-
type GenericLegendApplicationStore,
|
47
|
-
} from '@finos/legend-application';
|
43
|
+
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
48
44
|
import { retrieveAnalyticsResultCache } from '../../graph-manager/action/analytics/DataSpaceAnalysisHelper.js';
|
49
45
|
import type { DataSpaceAnalysisResult } from '../../graph-manager/action/analytics/DataSpaceAnalysis.js';
|
50
46
|
import { generateServiceQueryCreatorRoute } from '@finos/legend-application-query';
|
@@ -128,20 +124,16 @@ export class DataSpaceAdvancedSearchState {
|
|
128
124
|
this.toGetSnapShot = val;
|
129
125
|
}
|
130
126
|
|
131
|
-
*loadDataSpaces(
|
132
|
-
const isValidSearchString =
|
133
|
-
searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
|
127
|
+
*loadDataSpaces(): GeneratorFn<void> {
|
134
128
|
this.loadDataSpacesState.inProgress();
|
135
129
|
try {
|
136
130
|
this.dataSpaces = (
|
137
|
-
(yield this.depotServerClient.
|
131
|
+
(yield this.depotServerClient.getEntitiesByClassifier(
|
138
132
|
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
139
133
|
{
|
140
|
-
search: isValidSearchString ? searchText : undefined,
|
141
134
|
scope: this.toGetSnapShot
|
142
135
|
? DepotScope.SNAPSHOT
|
143
136
|
: DepotScope.RELEASES,
|
144
|
-
limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
145
137
|
},
|
146
138
|
)) as StoredEntity[]
|
147
139
|
).map((storedEntity) =>
|
@@ -14,11 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
18
|
-
type GenericLegendApplicationStore,
|
19
|
-
DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
20
|
-
DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
|
21
|
-
} from '@finos/legend-application';
|
17
|
+
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
22
18
|
import {
|
23
19
|
type QueryBuilderConfig,
|
24
20
|
QueryBuilderState,
|
@@ -240,21 +236,17 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
|
|
240
236
|
this.showRuntimeSelector = val;
|
241
237
|
}
|
242
238
|
|
243
|
-
*loadDataSpaces(
|
239
|
+
*loadDataSpaces(): GeneratorFn<void> {
|
244
240
|
if (this.projectInfo) {
|
245
|
-
const isValidSearchString =
|
246
|
-
searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
|
247
241
|
this.loadDataSpacesState.inProgress();
|
248
242
|
const toGetSnapShot =
|
249
243
|
this.projectInfo.versionId === SNAPSHOT_VERSION_ALIAS;
|
250
244
|
try {
|
251
245
|
this.dataSpaces = (
|
252
|
-
(yield this.depotServerClient.
|
246
|
+
(yield this.depotServerClient.getEntitiesByClassifier(
|
253
247
|
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
254
248
|
{
|
255
|
-
search: isValidSearchString ? searchText : undefined,
|
256
249
|
scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
|
257
|
-
limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
258
250
|
},
|
259
251
|
)) as StoredEntity[]
|
260
252
|
).map((storedEntity) =>
|
@@ -27,11 +27,7 @@ import {
|
|
27
27
|
type StoredEntity,
|
28
28
|
} from '@finos/legend-server-depot';
|
29
29
|
import type { GraphManagerState, RawLambda } from '@finos/legend-graph';
|
30
|
-
import {
|
31
|
-
DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
32
|
-
DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH,
|
33
|
-
type GenericLegendApplicationStore,
|
34
|
-
} from '@finos/legend-application';
|
30
|
+
import { type GenericLegendApplicationStore } from '@finos/legend-application';
|
35
31
|
import { action, flow, makeObservable, observable } from 'mobx';
|
36
32
|
import {
|
37
33
|
type QueryBuilderConfig,
|
@@ -132,18 +128,14 @@ export class DataSpaceQuerySetupState extends QueryBuilderState {
|
|
132
128
|
this.advancedSearchState = undefined;
|
133
129
|
}
|
134
130
|
|
135
|
-
*loadDataSpaces(
|
136
|
-
const isValidSearchString =
|
137
|
-
searchText.length >= DEFAULT_TYPEAHEAD_SEARCH_MINIMUM_SEARCH_LENGTH;
|
131
|
+
*loadDataSpaces(): GeneratorFn<void> {
|
138
132
|
this.loadDataSpacesState.inProgress();
|
139
133
|
try {
|
140
134
|
this.dataSpaces = (
|
141
|
-
(yield this.depotServerClient.
|
135
|
+
(yield this.depotServerClient.getEntitiesByClassifier(
|
142
136
|
DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
|
143
137
|
{
|
144
|
-
search: isValidSearchString ? searchText : undefined,
|
145
138
|
scope: DepotScope.RELEASES,
|
146
|
-
limit: DEFAULT_TYPEAHEAD_SEARCH_LIMIT,
|
147
139
|
},
|
148
140
|
)) as StoredEntity[]
|
149
141
|
).map((storedEntity) => extractDataSpaceInfo(storedEntity, false));
|