@finos/legend-extension-dsl-data-space 10.3.20 → 10.3.21

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,7 +20,7 @@ export { DSL_DataSpace_LegendApplicationPlugin } from './DSL_DataSpace_LegendApp
20
20
  export { DataSpaceViewer } from './DataSpaceViewer.js';
21
21
  export * from '../stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js';
22
22
  export { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
23
- export { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from '../stores/query-builder/DataSpaceQueryBuilderState.js';
23
+ export { DataSpaceQueryBuilderState, DataSpacesDepotRepository, DataSpacesBuilderRepoistory, DataSpacesGraphRepoistory, } from '../stores/query-builder/DataSpaceQueryBuilderState.js';
24
24
  export { type DataSpaceInfo, extractDataSpaceInfo, } from '../stores/shared/DataSpaceInfo.js';
25
25
  export * from '../stores/shared/DataSpaceUtils.js';
26
26
  export * from './shared/DSL_DataSpace_Icon.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,sDAAsD,CAAC;AACrE,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,8DAA8D,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,KAAK,aAAa,EAClB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,sDAAsD,CAAC;AACrE,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,8DAA8D,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,KAAK,aAAa,EAClB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC"}
@@ -20,7 +20,7 @@ export { DSL_DataSpace_LegendApplicationPlugin } from './DSL_DataSpace_LegendApp
20
20
  export { DataSpaceViewer } from './DataSpaceViewer.js';
21
21
  export * from '../stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js';
22
22
  export { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
23
- export { DataSpaceQueryBuilderState, DataSpaceProjectInfo, } from '../stores/query-builder/DataSpaceQueryBuilderState.js';
23
+ export { DataSpaceQueryBuilderState, DataSpacesDepotRepository, DataSpacesBuilderRepoistory, DataSpacesGraphRepoistory, } from '../stores/query-builder/DataSpaceQueryBuilderState.js';
24
24
  export { extractDataSpaceInfo, } from '../stores/shared/DataSpaceInfo.js';
25
25
  export * from '../stores/shared/DataSpaceUtils.js';
26
26
  export * from './shared/DSL_DataSpace_Icon.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,sDAAsD,CAAC;AACrE,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,8DAA8D,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,GACrB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAEL,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,yDAAyD,CAAC;AACxE,cAAc,qDAAqD,CAAC;AAEpE,cAAc,sDAAsD,CAAC;AACrE,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,cAAc,8DAA8D,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAEL,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,0DAA0D,CAAC;AAYlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAQ1E,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,SAiBR,CAAC;AA4RF,eAAO,MAAM,4CAA4C,sBACpC,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
1
+ {"version":3,"file":"DataSpaceQueryBuilder.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,OAAO,EACL,KAAK,0BAA0B,EAGhC,MAAM,0DAA0D,CAAC;AAYlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAQ1E,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,SAiBR,CAAC;AAqSF,eAAO,MAAM,4CAA4C,sBACpC,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
@@ -17,7 +17,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
17
17
  import { CustomSelectorInput, createFilter, DropdownMenu, MenuContentItem, MenuContent, MenuContentItemIcon, CheckIcon, MenuContentItemLabel, SearchIcon, PanelHeaderActions, PanelHeader, MoreVerticalIcon, compareLabelFn, } from '@finos/legend-art';
18
18
  import { observer } from 'mobx-react-lite';
19
19
  import { useApplicationStore } from '@finos/legend-application';
20
- import { resolveUsableDataSpaceClasses, } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
20
+ import { resolveUsableDataSpaceClasses, DataSpacesDepotRepository, } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
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';
@@ -50,9 +50,12 @@ const buildExecutionContextOption = (value) => ({
50
50
  const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
51
51
  const { queryBuilderState } = props;
52
52
  const applicationStore = useApplicationStore();
53
+ const repo = queryBuilderState.dataSpaceRepo;
54
+ const depotRepo = repo instanceof DataSpacesDepotRepository ? repo : undefined;
55
+ const project = depotRepo?.project;
53
56
  // data space
54
57
  const prioritizeDataSpaceFunc = queryBuilderState.prioritizeDataSpaceFunc;
55
- const sortedAllOptions = queryBuilderState.dataSpaces
58
+ const sortedAllOptions = (queryBuilderState.dataSpaceRepo.dataSpaces ?? [])
56
59
  .map(buildDataSpaceOption)
57
60
  .sort(compareLabelFn);
58
61
  const dataSpaceOptions = prioritizeDataSpaceFunc
@@ -64,9 +67,9 @@ const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
64
67
  const selectedDataSpaceOption = {
65
68
  label: queryBuilderState.dataSpace.title ?? queryBuilderState.dataSpace.name,
66
69
  value: {
67
- groupId: queryBuilderState.projectInfo?.groupId,
68
- artifactId: queryBuilderState.projectInfo?.artifactId,
69
- versionId: queryBuilderState.projectInfo?.versionId,
70
+ groupId: project?.groupId,
71
+ artifactId: project?.artifactId,
72
+ versionId: project?.versionId,
70
73
  title: queryBuilderState.dataSpace.title,
71
74
  name: queryBuilderState.dataSpace.name,
72
75
  path: queryBuilderState.dataSpace.path,
@@ -76,7 +79,11 @@ const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
76
79
  const onDataSpaceOptionChange = (option) => {
77
80
  queryBuilderState.onDataSpaceChange(option.value);
78
81
  };
79
- const openDataSpaceAdvancedSearch = () => queryBuilderState.showAdvancedSearchPanel();
82
+ const openDataSpaceAdvancedSearch = () => {
83
+ if (repo.isAdvancedDataSpaceSearchEnabled && depotRepo) {
84
+ depotRepo.showAdvancedSearchPanel(queryBuilderState.dataSpace);
85
+ }
86
+ };
80
87
  // execution context
81
88
  const executionContextOptions = queryBuilderState.dataSpace.executionContexts
82
89
  .map(buildExecutionContextOption)
@@ -116,13 +123,13 @@ const DataSpaceQueryBuilderSetupPanelContent = observer((props) => {
116
123
  // class
117
124
  const classes = resolveUsableDataSpaceClasses(queryBuilderState.dataSpace, queryBuilderState.executionContext.mapping.value, queryBuilderState.graphManagerState);
118
125
  useEffect(() => {
119
- flowResult(queryBuilderState.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
126
+ flowResult(queryBuilderState.dataSpaceRepo.loadDataSpaces()).catch(applicationStore.alertUnhandledError);
120
127
  }, [queryBuilderState, applicationStore]);
121
128
  return (_jsxs("div", { className: "query-builder__setup__config-group", children: [_jsx(PanelHeader, { title: "properties", children: _jsx(PanelHeaderActions, { children: _jsx(DropdownMenu, { className: "panel__header__action 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: {
122
129
  anchorOrigin: { vertical: 'bottom', horizontal: 'right' },
123
130
  transformOrigin: { vertical: 'top', horizontal: 'right' },
124
- }, children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) }) }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", htmlFor: "query-builder__setup__data-space-selector", children: "Data Space" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__data-space-selector", 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
125
- .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() }))] }))] }), Boolean(showExecutionContextOptions) && (_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "execution context", htmlFor: "query-builder__setup__context-selector", children: "Context" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__context-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose an execution context...", options: executionContextOptions, disabled: executionContextOptions.length < 1 ||
131
+ }, children: _jsx(MoreVerticalIcon, { className: "query-builder__icon__more-options" }) }) }) }), _jsxs("div", { className: "query-builder__setup__config-group__content", children: [_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "data space", htmlFor: "query-builder__setup__data-space-selector", children: "Data Space" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__data-space-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", options: dataSpaceOptions, isLoading: queryBuilderState.dataSpaceRepo.loadDataSpacesState.isInProgress, onChange: onDataSpaceOptionChange, value: selectedDataSpaceOption, placeholder: "Search for data space...", escapeClearsValue: true, darkMode: !applicationStore.layoutService
132
+ .TEMPORARY__isLightColorThemeEnabled, formatOptionLabel: formatDataSpaceOptionLabel }), depotRepo && (_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, {}) }), depotRepo.advancedSearchState && (_jsx(DataSpaceAdvancedSearchModal, { searchState: depotRepo.advancedSearchState, onClose: () => depotRepo.hideAdvancedSearchPanel() }))] }))] }), Boolean(showExecutionContextOptions) && (_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "execution context", htmlFor: "query-builder__setup__context-selector", children: "Context" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__context-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose an execution context...", options: executionContextOptions, disabled: executionContextOptions.length < 1 ||
126
133
  (executionContextOptions.length === 1 &&
127
134
  Boolean(selectedExecutionContextOption)), onChange: onExecutionContextOptionChange, value: selectedExecutionContextOption, darkMode: !applicationStore.layoutService
128
135
  .TEMPORARY__isLightColorThemeEnabled })] })), queryBuilderState.showRuntimeSelector && (_jsxs("div", { className: "query-builder__setup__config-group__item", children: [_jsx("label", { className: "btn--sm query-builder__setup__config-group__item__label", title: "runtime", htmlFor: "query-builder__setup__runtime-selector", children: "Runtime" }), _jsx(CustomSelectorInput, { inputId: "query-builder__setup__runtime-selector", className: "panel__content__form__section__dropdown query-builder__setup__config-group__item__selector", placeholder: "Choose a runtime...", noMatchMessage: "No compatible runtime found for specified execution context", options: runtimeOptions, onChange: changeRuntime, value: selectedRuntimeOption, darkMode: !applicationStore.layoutService
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EAC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,OAAO,EAAC,wCAAwC,wBAG1C,EACR,KAAC,mBAAmB,IAClB,OAAO,EAAC,wCAAwC,EAChD,SAAS,EAAC,4FAA4F,EACtG,WAAW,EAAC,qBAAqB,EACjC,cAAc,EAAC,6DAA6D,EAC5E,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;qCAC5B,mCAAmC,EAExC,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,yBAAyB,CAAC;oCAC3C,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;yCAC5B,mCAAmC;iCACzC,CAAC,GACF,IACE,CACP,EACD,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,iBAAiB,CAAC,aAAa,EAC9C,cAAc,EAAC,4DAA4D,GAC3E,GACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAC1D,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,sCAAsC,IACrC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
1
+ {"version":3,"file":"DataSpaceQueryBuilder.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilder.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,M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D,gBACE,SAAS,EAAC,yDAAyD,EACnE,KAAK,EAAC,SAAS,EACf,OAAO,EAAC,wCAAwC,wBAG1C,EACR,KAAC,mBAAmB,IAClB,OAAO,EAAC,wCAAwC,EAChD,SAAS,EAAC,4FAA4F,EACtG,WAAW,EAAC,qBAAqB,EACjC,cAAc,EAAC,6DAA6D,EAC5E,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,qBAAqB,EAC5B,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;qCAC5B,mCAAmC,EAExC,YAAY,EAAE,mBAAmB,EACjC,iBAAiB,EAAE,yBAAyB,CAAC;oCAC3C,QAAQ,EACN,CAAC,gBAAgB,CAAC,aAAa;yCAC5B,mCAAmC;iCACzC,CAAC,GACF,IACE,CACP,EACD,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,yBAAyB,IACxB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,iBAAiB,CAAC,aAAa,EAC9C,cAAc,EAAC,4DAA4D,GAC3E,GACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,4CAA4C,GAAG,CAC1D,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,sCAAsC,IACrC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAoBH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AA8L3G,eAAO,MAAM,oDAAoD,sBAC5C,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
1
+ {"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAmBH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0DAA0D,CAAC;AA0L3G,eAAO,MAAM,oDAAoD,sBAC5C,0BAA0B,KAC5C,MAAM,SAIR,CAAC"}
@@ -19,7 +19,6 @@ import { observer } from 'mobx-react-lite';
19
19
  import { useRef } from 'react';
20
20
  import { ActionAlertActionType, ActionAlertType, useApplicationStore, } from '@finos/legend-application';
21
21
  import { DocumentationLink } from '@finos/legend-lego/application';
22
- import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
23
22
  import { DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
24
23
  import { DSL_DATA_SPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from '../../__lib__/query/DSL_DataSpace_LegendQueryDocumentation.js';
25
24
  const DataSpaceTemplateQueryDialog = observer((props) => {
@@ -67,8 +66,8 @@ const DataSpaceTemplateQueryDialog = observer((props) => {
67
66
  }
68
67
  };
69
68
  const visitTemplateQuery = (template) => {
70
- if (queryBuilderState.projectInfo?.groupId) {
71
- applicationStore.navigationService.navigator.visitAddress(applicationStore.navigationService.navigator.generateAddress(generateDataSpaceTemplateQueryCreatorRoute(queryBuilderState.projectInfo.groupId, queryBuilderState.projectInfo.artifactId, queryBuilderState.projectInfo.versionId, queryBuilderState.dataSpace.path, template.id)));
69
+ if (queryBuilderState.dataSpaceRepo.canVisitTemplateQuery) {
70
+ queryBuilderState.dataSpaceRepo.visitTemplateQuery(queryBuilderState.dataSpace, template);
72
71
  }
73
72
  };
74
73
  return (_jsx(ClickAwayListener, { onClickAway: handleClose, children: _jsx("div", { children: _jsx(BasePopover, { open: queryBuilderState.isTemplateQueryDialogOpen, PaperProps: {
@@ -81,7 +80,7 @@ const DataSpaceTemplateQueryDialog = observer((props) => {
81
80
  }, transformOrigin: {
82
81
  vertical: 'top',
83
82
  horizontal: 'center',
84
- }, children: _jsxs("div", { className: "query-builder__data-space__template-query-panel", children: [_jsxs("div", { className: "query-builder__data-space__template-query-panel__header", children: ["Curated Template Queries", _jsx(DocumentationLink, { documentationKey: DSL_DATA_SPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY })] }), templateQueries.map((query) => (_jsxs("div", { className: "query-builder__data-space__template-query-panel__query", children: [_jsx(TagIcon, { className: "query-builder__data-space__template-query-panel__query__icon" }), _jsx("button", { className: "query-builder__data-space__template-query-panel__query__entry", title: "click to load template query", onClick: () => loadQuery(query), children: _jsxs("div", { className: "query-builder__data-space__template-query-panel__query__entry__content", children: [_jsx("div", { className: "query-builder__data-space__template-query-panel__query__entry__content__title", children: query.title }), query.description && (_jsx("div", { className: "query-builder__data-space__template-query-panel__query__entry__content__description", children: query.description }))] }) }), _jsxs("button", { className: "query-builder__data-space__template-query-panel__query__share", title: "Visit...", onClick: () => visitTemplateQuery(query), children: [_jsx(ShareIcon, {}), _jsx("div", { className: "query-builder__data-space__template-query-panel__query__share__label", children: "Visit" })] })] }, query.title)))] }) }) }) }));
83
+ }, children: _jsxs("div", { className: "query-builder__data-space__template-query-panel", children: [_jsxs("div", { className: "query-builder__data-space__template-query-panel__header", children: ["Curated Template Queries", _jsx(DocumentationLink, { documentationKey: DSL_DATA_SPACE_LEGEND_QUERY_DOCUMENTATION_KEY.CURATED_TEMPLATE_QUERY })] }), templateQueries.map((query) => (_jsxs("div", { className: "query-builder__data-space__template-query-panel__query", children: [_jsx(TagIcon, { className: "query-builder__data-space__template-query-panel__query__icon" }), _jsx("button", { className: "query-builder__data-space__template-query-panel__query__entry", title: "click to load template query", onClick: () => loadQuery(query), children: _jsxs("div", { className: "query-builder__data-space__template-query-panel__query__entry__content", children: [_jsx("div", { className: "query-builder__data-space__template-query-panel__query__entry__content__title", children: query.title }), query.description && (_jsx("div", { className: "query-builder__data-space__template-query-panel__query__entry__content__description", children: query.description }))] }) }), _jsxs("button", { className: "query-builder__data-space__template-query-panel__query__share", title: "Visit...", disabled: !queryBuilderState.dataSpaceRepo.canVisitTemplateQuery, onClick: () => visitTemplateQuery(query), children: [_jsx(ShareIcon, {}), _jsx("div", { className: "query-builder__data-space__template-query-panel__query__share__label", children: "Visit" })] })] }, query.title)))] }) }) }) }));
85
84
  });
86
85
  const DataSpaceQueryBuilderTemplateQueryPanel = observer((props) => {
87
86
  const { queryBuilderState } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,0CAA0C,EAAE,MAAM,0EAA0E,CAAC;AACtI,OAAO,EAAE,2BAA2B,EAAE,MAAM,2FAA2F,CAAC;AAExI,OAAO,EAAE,6CAA6C,EAAE,MAAM,+DAA+D,CAAC;AAE9H,MAAM,4BAA4B,GAAG,QAAQ,CAC3C,CAAC,KAIA,EAAE,EAAE;IACH,MAAM,EAAE,cAAc,EAAE,iBAAiB,EAAE,eAAe,EAAE,GAAG,KAAK,CAAC;IACrE,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,M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AC,SAAS,EAAC,2CAA2C,aAChE,cAAK,SAAS,EAAC,kDAAkD,YAC/D,KAAC,UAAU,KAAG,GACV,EACN,kBACE,SAAS,EAAC,gDAAgD,EAC1D,GAAG,EAAE,sBAAsB,EAC3B,OAAO,EAAE,mBAAmB,4BAEhB,eAAe,CAAC,MAAM,UAC3B,EACR,iBAAiB,CAAC,yBAAyB,IAAI,CAC9C,KAAC,4BAA4B,IAC3B,cAAc,EAAE,sBAAsB,CAAC,OAAO,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAChC,CACH,IACW,CACf,GACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oDAAoD,GAAG,CAClE,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,uCAAuC,IACtC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
1
+ {"version":3,"file":"DataSpaceQueryBuilderTemplateQueryPanelContent.js","sourceRoot":"","sources":["../../../src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,WAAW,EACX,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,OAAO,GACR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,mBAAmB,GACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2FAA2F,CAAC;AAExI,OAAO,EAAE,6CAA6C,EAAE,MAAM,+DAA+D,CAAC;AAE9H,MAAM,4BAA4B,GAAG,QAAQ,CAC3C,CAAC,KAIA,EAAE,EAAE;IACH,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AC,kDAAkD,YAC/D,KAAC,UAAU,KAAG,GACV,EACN,kBACE,SAAS,EAAC,gDAAgD,EAC1D,GAAG,EAAE,sBAAsB,EAC3B,OAAO,EAAE,mBAAmB,4BAEhB,eAAe,CAAC,MAAM,UAC3B,EACR,iBAAiB,CAAC,yBAAyB,IAAI,CAC9C,KAAC,4BAA4B,IAC3B,cAAc,EAAE,sBAAsB,CAAC,OAAO,EAC9C,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,eAAe,GAChC,CACH,IACW,CACf,GACA,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oDAAoD,GAAG,CAClE,iBAA6C,EAC5B,EAAE,CAAC,CACpB,KAAC,uCAAuC,IACtC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-extension-dsl-data-space v10.3.20
1
+ /** @license @finos/legend-extension-dsl-data-space v10.3.21
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.3.20",
3
+ "version": "10.3.21",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -68,7 +68,7 @@
68
68
  "jest": "29.7.0",
69
69
  "npm-run-all": "4.1.5",
70
70
  "rimraf": "5.0.7",
71
- "sass": "1.77.3",
71
+ "sass": "1.77.4",
72
72
  "typescript": "5.4.5"
73
73
  },
74
74
  "peerDependencies": {
@@ -18,52 +18,69 @@ import { type QueryBuilderConfig, type QuerySDLC, type QueryBuilderWorkflowState
18
18
  import { type GraphManagerState, type QueryExecutionContext, type Runtime, Class, type Mapping } from '@finos/legend-graph';
19
19
  import { type DepotServerClient } from '@finos/legend-server-depot';
20
20
  import { type GeneratorFn, ActionState } from '@finos/legend-shared';
21
- import { DataSpace, type DataSpaceExecutionContext } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
21
+ import { DataSpace, type DataSpaceExecutionContext, type DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
22
22
  import { DataSpaceAdvancedSearchState } from '../query/DataSpaceAdvancedSearchState.js';
23
23
  import type { DataSpaceAnalysisResult } from '../../graph-manager/action/analytics/DataSpaceAnalysis.js';
24
24
  import { type DataSpaceInfo } from '../shared/DataSpaceInfo.js';
25
+ import type { ProjectGAVCoordinates } from '@finos/legend-storage';
25
26
  export declare const resolveUsableDataSpaceClasses: (dataSpace: DataSpace, mapping: Mapping, graphManagerState: GraphManagerState) => Class[];
26
- export declare class DataSpaceProjectInfo {
27
- readonly groupId: string;
28
- readonly artifactId: string;
29
- readonly versionId: string;
30
- readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
31
- readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
32
- constructor(groupId: string, artifactId: string, versionId: string, viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void, viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>);
33
- }
34
27
  export interface DataSpaceQuerySDLC extends QuerySDLC {
35
28
  groupId: string;
36
29
  artifactId: string;
37
30
  versionId: string;
38
31
  dataSpace: string;
39
32
  }
40
- export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
41
- readonly depotServerClient: DepotServerClient;
42
- readonly isAdvancedDataSpaceSearchEnabled: boolean;
33
+ export declare abstract class DataSpacesBuilderRepoistory {
34
+ readonly applicationStore: GenericLegendApplicationStore;
35
+ readonly graphManagerState: GraphManagerState;
43
36
  readonly loadDataSpacesState: ActionState;
37
+ dataSpaces: DataSpaceInfo[] | undefined;
38
+ prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined;
39
+ constructor(applicatonstore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined);
40
+ get isAdvancedDataSpaceSearchEnabled(): boolean;
41
+ get canVisitTemplateQuery(): boolean;
42
+ abstract loadDataSpaces(): GeneratorFn<void>;
43
+ abstract visitTemplateQuery(dataSpace: DataSpace, template: DataSpaceExecutableTemplate): void;
44
+ configureDataSpaceOptions(val: DataSpaceInfo[]): void;
45
+ }
46
+ export declare class DataSpacesGraphRepoistory extends DataSpacesBuilderRepoistory {
47
+ constructor(applicatonstore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined);
48
+ loadDataSpaces(): GeneratorFn<void>;
49
+ visitTemplateQuery(dataSpace: DataSpace, template: DataSpaceExecutableTemplate): void;
50
+ }
51
+ export declare class DataSpacesDepotRepository extends DataSpacesBuilderRepoistory {
52
+ readonly depotServerClient: DepotServerClient;
53
+ readonly project: ProjectGAVCoordinates;
54
+ readonly viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void;
55
+ readonly viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>;
56
+ advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
57
+ constructor(depotServerClient: DepotServerClient, applicatonstore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, project: ProjectGAVCoordinates, viewProject: (groupId: string, artifactId: string, versionId: string, entityPath: string | undefined) => void, viewSDLCProject: (groupId: string, artifactId: string, entityPath: string | undefined) => Promise<void>, prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined);
58
+ get isAdvancedDataSpaceSearchEnabled(): boolean;
59
+ get canVisitTemplateQuery(): boolean;
60
+ visitTemplateQuery(dataSpace: DataSpace, template: DataSpaceExecutableTemplate): void;
61
+ showAdvancedSearchPanel(dataSpace: DataSpace): void;
62
+ hideAdvancedSearchPanel(): void;
63
+ loadDataSpaces(): GeneratorFn<void>;
64
+ }
65
+ export declare class DataSpaceQueryBuilderState extends QueryBuilderState {
44
66
  readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
45
67
  readonly onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined;
46
68
  readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
47
69
  readonly onClassChange?: ((val: Class) => void) | undefined;
48
70
  readonly dataSpaceAnalysisResult?: DataSpaceAnalysisResult | undefined;
49
- readonly projectInfo?: DataSpaceProjectInfo | undefined;
71
+ readonly dataSpaceRepo: DataSpacesBuilderRepoistory;
50
72
  TEMPORARY__setupPanelContentRenderer: () => React.ReactNode;
51
73
  dataSpace: DataSpace;
52
74
  executionContext: DataSpaceExecutionContext;
53
- dataSpaces: DataSpaceInfo[];
54
75
  readonly prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined;
55
76
  showRuntimeSelector: boolean;
56
- advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
57
77
  isTemplateQueryDialogOpen: boolean;
58
- constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, depotServerClient: DepotServerClient, workflow: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, dataSpace: DataSpace, executionContext: DataSpaceExecutionContext, onDataSpaceChange: (val: DataSpaceInfo) => void, isAdvancedDataSpaceSearchEnabled: boolean, dataSpaceAnalysisResult?: DataSpaceAnalysisResult | undefined, onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined, projectInfo?: DataSpaceProjectInfo | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: QuerySDLC | undefined, prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined);
78
+ constructor(applicationStore: GenericLegendApplicationStore, graphManagerState: GraphManagerState, workflow: QueryBuilderWorkflowState, actionConfig: QueryBuilderActionConfig, dataSpace: DataSpace, executionContext: DataSpaceExecutionContext, dataSpaceRepo: DataSpacesBuilderRepoistory | undefined, onDataSpaceChange: (val: DataSpaceInfo) => void, dataSpaceAnalysisResult?: DataSpaceAnalysisResult | undefined, onExecutionContextChange?: ((val: DataSpaceExecutionContext) => void) | undefined, onRuntimeChange?: ((val: Runtime) => void) | undefined, onClassChange?: ((val: Class) => void) | undefined, config?: QueryBuilderConfig | undefined, sourceInfo?: QuerySDLC | undefined);
59
79
  get sideBarClassName(): string | undefined;
60
80
  getQueryExecutionContext(): QueryExecutionContext;
61
81
  setTemplateQueryDialogOpen(val: boolean): void;
62
- showAdvancedSearchPanel(): void;
63
- hideAdvancedSearchPanel(): void;
64
82
  setExecutionContext(val: DataSpaceExecutionContext): void;
65
83
  setShowRuntimeSelector(val: boolean): void;
66
- loadDataSpaces(): GeneratorFn<void>;
67
84
  /**
68
85
  * Propagation after changing the execution context:
69
86
  * - 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-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,iBAAiB,EAGtB,KAAK,qBAAqB,EAC1B,KAAK,OAAO,EACZ,KAAK,EACL,KAAK,OAAO,EAIb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,iBAAiB,EAEvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAChB,WAAW,EAKZ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,SAA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AAG,EAAE,yBAAyB,GAAG,IAAI;IAIzD,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI1C;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAAgB,EAAE,yBAAyB,GAC1C,IAAI;CA2BR"}
@@ -24,6 +24,7 @@ import { DataSpace, } from '../../graph/metamodel/pure/model/packageableElements
24
24
  import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
25
25
  import { DataSpaceAdvancedSearchState } from '../query/DataSpaceAdvancedSearchState.js';
26
26
  import { extractDataSpaceInfo, } from '../shared/DataSpaceInfo.js';
27
+ import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
27
28
  export const resolveUsableDataSpaceClasses = (dataSpace, mapping, graphManagerState) => {
28
29
  if (dataSpace.elements?.length) {
29
30
  const dataSpaceElements = dataSpace.elements.map((ep) => ep.element.value);
@@ -38,63 +39,152 @@ export const resolveUsableDataSpaceClasses = (dataSpace, mapping, graphManagerSt
38
39
  }
39
40
  return getMappingCompatibleClasses(mapping, graphManagerState.usableClasses);
40
41
  };
41
- export class DataSpaceProjectInfo {
42
- groupId;
43
- artifactId;
44
- versionId;
42
+ // could be abstracted for element
43
+ export class DataSpacesBuilderRepoistory {
44
+ applicationStore;
45
+ graphManagerState;
46
+ loadDataSpacesState = ActionState.create();
47
+ dataSpaces;
48
+ prioritizeDataSpaceFunc;
49
+ constructor(applicatonstore, graphManagerState, prioritizeDataSpaceFunc) {
50
+ this.applicationStore = applicatonstore;
51
+ this.graphManagerState = graphManagerState;
52
+ this.prioritizeDataSpaceFunc = prioritizeDataSpaceFunc;
53
+ }
54
+ get isAdvancedDataSpaceSearchEnabled() {
55
+ return false;
56
+ }
57
+ get canVisitTemplateQuery() {
58
+ return false;
59
+ }
60
+ configureDataSpaceOptions(val) {
61
+ this.dataSpaces = val;
62
+ }
63
+ }
64
+ export class DataSpacesGraphRepoistory extends DataSpacesBuilderRepoistory {
65
+ constructor(applicatonstore, graphManagerState, prioritizeDataSpaceFunc) {
66
+ super(applicatonstore, graphManagerState, prioritizeDataSpaceFunc);
67
+ makeObservable(this, {
68
+ dataSpaces: observable,
69
+ loadDataSpaces: flow,
70
+ configureDataSpaceOptions: action,
71
+ });
72
+ }
73
+ *loadDataSpaces() {
74
+ this.dataSpaces = this.graphManagerState.graph.allOwnElements
75
+ .filter(filterByType(DataSpace))
76
+ .map((e) => ({
77
+ groupId: undefined,
78
+ artifactId: undefined,
79
+ versionId: undefined,
80
+ path: e.path,
81
+ name: e.name,
82
+ title: e.title,
83
+ defaultExecutionContext: e.defaultExecutionContext.title,
84
+ }));
85
+ }
86
+ visitTemplateQuery(dataSpace, template) {
87
+ throw new Error('Method not implemented.');
88
+ }
89
+ }
90
+ export class DataSpacesDepotRepository extends DataSpacesBuilderRepoistory {
91
+ depotServerClient;
92
+ project;
45
93
  viewProject;
46
94
  viewSDLCProject;
47
- constructor(groupId, artifactId, versionId, viewProject, viewSDLCProject) {
48
- this.groupId = groupId;
49
- this.artifactId = artifactId;
50
- this.versionId = versionId;
95
+ advancedSearchState;
96
+ constructor(depotServerClient, applicatonstore, graphManagerState, project, viewProject, viewSDLCProject, prioritizeDataSpaceFunc) {
97
+ super(applicatonstore, graphManagerState, prioritizeDataSpaceFunc);
98
+ makeObservable(this, {
99
+ advancedSearchState: observable,
100
+ dataSpaces: observable,
101
+ showAdvancedSearchPanel: action,
102
+ hideAdvancedSearchPanel: action,
103
+ visitTemplateQuery: action,
104
+ configureDataSpaceOptions: action,
105
+ loadDataSpaces: flow,
106
+ });
107
+ this.depotServerClient = depotServerClient;
108
+ this.project = project;
51
109
  this.viewProject = viewProject;
52
110
  this.viewSDLCProject = viewSDLCProject;
53
111
  }
112
+ get isAdvancedDataSpaceSearchEnabled() {
113
+ return true;
114
+ }
115
+ get canVisitTemplateQuery() {
116
+ return true;
117
+ }
118
+ visitTemplateQuery(dataSpace, template) {
119
+ this.applicationStore.navigationService.navigator.visitAddress(this.applicationStore.navigationService.navigator.generateAddress(generateDataSpaceTemplateQueryCreatorRoute(this.project.groupId, this.project.artifactId, this.project.versionId, dataSpace.path, template.id)));
120
+ }
121
+ showAdvancedSearchPanel(dataSpace) {
122
+ this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
123
+ viewProject: this.viewProject,
124
+ viewSDLCProject: this.viewSDLCProject,
125
+ }, {
126
+ groupId: this.project.groupId,
127
+ artifactId: this.project.artifactId,
128
+ versionId: this.project.versionId,
129
+ title: dataSpace.title,
130
+ name: dataSpace.name,
131
+ path: dataSpace.path,
132
+ defaultExecutionContext: dataSpace.defaultExecutionContext.name,
133
+ }, this.project.versionId === SNAPSHOT_VERSION_ALIAS);
134
+ }
135
+ hideAdvancedSearchPanel() {
136
+ this.advancedSearchState = undefined;
137
+ }
138
+ *loadDataSpaces() {
139
+ if (this.dataSpaces === undefined) {
140
+ this.loadDataSpacesState.inProgress();
141
+ const toGetSnapShot = this.project.versionId === SNAPSHOT_VERSION_ALIAS;
142
+ try {
143
+ this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
144
+ scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
145
+ })).map((storedEntity) => extractDataSpaceInfo(storedEntity, toGetSnapShot));
146
+ this.loadDataSpacesState.pass();
147
+ }
148
+ catch (error) {
149
+ assertErrorThrown(error);
150
+ this.loadDataSpacesState.fail();
151
+ this.applicationStore.notificationService.notifyError(error);
152
+ }
153
+ }
154
+ }
54
155
  }
55
156
  export class DataSpaceQueryBuilderState extends QueryBuilderState {
56
- depotServerClient;
57
- isAdvancedDataSpaceSearchEnabled;
58
- loadDataSpacesState = ActionState.create();
59
157
  onDataSpaceChange;
60
158
  onExecutionContextChange;
61
159
  onRuntimeChange;
62
160
  onClassChange;
63
161
  dataSpaceAnalysisResult;
64
- projectInfo;
162
+ dataSpaceRepo;
65
163
  TEMPORARY__setupPanelContentRenderer = () => renderDataSpaceQueryBuilderSetupPanelContent(this);
66
164
  dataSpace;
67
165
  executionContext;
68
- dataSpaces = [];
69
166
  prioritizeDataSpaceFunc;
70
167
  showRuntimeSelector = false;
71
- advancedSearchState;
72
168
  isTemplateQueryDialogOpen = false;
73
- constructor(applicationStore, graphManagerState, depotServerClient, workflow, actionConfig, dataSpace, executionContext, onDataSpaceChange, isAdvancedDataSpaceSearchEnabled, dataSpaceAnalysisResult, onExecutionContextChange, onRuntimeChange, onClassChange, projectInfo, config, sourceInfo, prioritizeDataSpaceFunc) {
169
+ constructor(applicationStore, graphManagerState, workflow, actionConfig, dataSpace, executionContext, dataSpaceRepo, onDataSpaceChange, dataSpaceAnalysisResult, onExecutionContextChange, onRuntimeChange, onClassChange, config, sourceInfo) {
74
170
  super(applicationStore, graphManagerState, workflow, config, sourceInfo);
75
171
  makeObservable(this, {
76
- dataSpaces: observable,
77
172
  executionContext: observable,
78
173
  showRuntimeSelector: observable,
79
- advancedSearchState: observable,
80
174
  isTemplateQueryDialogOpen: observable,
81
- showAdvancedSearchPanel: action,
82
- hideAdvancedSearchPanel: action,
83
175
  setExecutionContext: action,
84
176
  setShowRuntimeSelector: action,
85
177
  setTemplateQueryDialogOpen: action,
86
- loadDataSpaces: flow,
87
178
  });
88
- this.depotServerClient = depotServerClient;
89
179
  this.dataSpace = dataSpace;
90
180
  this.executionContext = executionContext;
91
- this.projectInfo = projectInfo;
92
181
  this.onDataSpaceChange = onDataSpaceChange;
93
182
  this.onExecutionContextChange = onExecutionContextChange;
94
183
  this.onRuntimeChange = onRuntimeChange;
95
184
  this.onClassChange = onClassChange;
96
- this.prioritizeDataSpaceFunc = prioritizeDataSpaceFunc;
97
- this.isAdvancedDataSpaceSearchEnabled = isAdvancedDataSpaceSearchEnabled;
185
+ this.dataSpaceRepo =
186
+ dataSpaceRepo ??
187
+ new DataSpacesGraphRepoistory(this.applicationStore, this.graphManagerState);
98
188
  this.dataSpaceAnalysisResult = dataSpaceAnalysisResult;
99
189
  this.workflowState.updateActionConfig(actionConfig);
100
190
  }
@@ -112,61 +202,12 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
112
202
  setTemplateQueryDialogOpen(val) {
113
203
  this.isTemplateQueryDialogOpen = val;
114
204
  }
115
- showAdvancedSearchPanel() {
116
- if (this.projectInfo && this.isAdvancedDataSpaceSearchEnabled) {
117
- this.advancedSearchState = new DataSpaceAdvancedSearchState(this.applicationStore, this.graphManagerState, this.depotServerClient, {
118
- viewProject: this.projectInfo.viewProject,
119
- viewSDLCProject: this.projectInfo.viewSDLCProject,
120
- }, {
121
- groupId: this.projectInfo.groupId,
122
- artifactId: this.projectInfo.artifactId,
123
- versionId: this.projectInfo.versionId,
124
- title: this.dataSpace.title,
125
- name: this.dataSpace.name,
126
- path: this.dataSpace.path,
127
- defaultExecutionContext: this.dataSpace.defaultExecutionContext.name,
128
- }, this.projectInfo.versionId === SNAPSHOT_VERSION_ALIAS);
129
- }
130
- }
131
- hideAdvancedSearchPanel() {
132
- this.advancedSearchState = undefined;
133
- }
134
205
  setExecutionContext(val) {
135
206
  this.executionContext = val;
136
207
  }
137
208
  setShowRuntimeSelector(val) {
138
209
  this.showRuntimeSelector = val;
139
210
  }
140
- *loadDataSpaces() {
141
- if (this.projectInfo) {
142
- this.loadDataSpacesState.inProgress();
143
- const toGetSnapShot = this.projectInfo.versionId === SNAPSHOT_VERSION_ALIAS;
144
- try {
145
- this.dataSpaces = (yield this.depotServerClient.getEntitiesByClassifier(DATA_SPACE_ELEMENT_CLASSIFIER_PATH, {
146
- scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
147
- })).map((storedEntity) => extractDataSpaceInfo(storedEntity, toGetSnapShot));
148
- this.loadDataSpacesState.pass();
149
- }
150
- catch (error) {
151
- assertErrorThrown(error);
152
- this.loadDataSpacesState.fail();
153
- this.applicationStore.notificationService.notifyError(error);
154
- }
155
- }
156
- else {
157
- this.dataSpaces = this.graphManagerState.graph.allOwnElements
158
- .filter(filterByType(DataSpace))
159
- .map((e) => ({
160
- groupId: undefined,
161
- artifactId: undefined,
162
- versionId: undefined,
163
- path: e.path,
164
- name: e.name,
165
- title: e.title,
166
- defaultExecutionContext: e.defaultExecutionContext.title,
167
- }));
168
- }
169
- }
170
211
  /**
171
212
  * Propagation after changing the execution context:
172
213
  * - The mapping will be updated to the mapping of the execution context
@@ -1 +1 @@
1
- {"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAKL,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,2BAA2B,EAC3B,cAAc,EAGd,KAAK,EAEL,uBAAuB,EACvB,OAAO,EACP,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,sBAAsB,GAGvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,4CAA4C,EAAE,MAAM,yDAAyD,CAAC;AACvH,OAAO,EACL,SAAS,GAEV,MAAM,2FAA2F,CAAC;AACnG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gFAAgF,CAAC;AACpI,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF,OAAO,EACL,oBAAoB,GAErB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,CAAC,MAAM,6BAA6B,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C,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,CAAC;YAC3D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"DataSpaceQueryBuilderState.js","sourceRoot":"","sources":["../../../src/stores/query-builder/DataSpaceQueryBuilderState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAsC,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAKL,iBAAiB,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,2BAA2B,EAC3B,cAAc,EAGd,KAAK,EAEL,uBAAuB,EACvB,OAAO,EACP,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EACV,sBAAsB,GAGvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,IAAI,GACL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAAE,4CAA4C,EAAE,MAAM,yDAAyD,CAAC;AACvH,OAAO,EACL,SAAS,GAGV,MAAM,2FAA2F,CAAC;AACnG,OAAO,EAAE,kCAAkC,EAAE,MAAM,gFAAgF,CAAC;AACpI,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AAExF,OAAO,EACL,oBAAoB,GAErB,MAAM,4BAA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a,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,CAAC;YAC3D,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC,CAAC;YAClE,IAAI,gBAAgB,EAAE,CAAC;gBACrB,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;YACrC,CAAC;QACH,CAAC;IACH,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.20",
3
+ "version": "10.3.21",
4
4
  "description": "Legend extension for Data Space DSL",
5
5
  "keywords": [
6
6
  "legend",
@@ -43,16 +43,16 @@
43
43
  "test:watch": "jest --watch"
44
44
  },
45
45
  "dependencies": {
46
- "@finos/legend-application": "15.1.5",
47
- "@finos/legend-art": "7.1.34",
48
- "@finos/legend-extension-dsl-diagram": "8.0.176",
49
- "@finos/legend-graph": "31.10.2",
50
- "@finos/legend-lego": "1.2.35",
51
- "@finos/legend-query-builder": "4.14.44",
52
- "@finos/legend-server-depot": "6.0.43",
53
- "@finos/legend-server-sdlc": "5.3.14",
54
- "@finos/legend-shared": "10.0.38",
55
- "@finos/legend-storage": "3.0.88",
46
+ "@finos/legend-application": "15.1.6",
47
+ "@finos/legend-art": "7.1.35",
48
+ "@finos/legend-extension-dsl-diagram": "8.0.177",
49
+ "@finos/legend-graph": "31.10.3",
50
+ "@finos/legend-lego": "1.2.36",
51
+ "@finos/legend-query-builder": "4.14.45",
52
+ "@finos/legend-server-depot": "6.0.44",
53
+ "@finos/legend-server-sdlc": "5.3.15",
54
+ "@finos/legend-shared": "10.0.39",
55
+ "@finos/legend-storage": "3.0.89",
56
56
  "@types/react": "18.3.3",
57
57
  "mobx": "6.12.3",
58
58
  "mobx-react-lite": "4.0.7",
@@ -61,14 +61,14 @@
61
61
  "serializr": "3.0.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@finos/legend-dev-utils": "2.1.6",
64
+ "@finos/legend-dev-utils": "2.1.7",
65
65
  "@jest/globals": "29.7.0",
66
66
  "cross-env": "7.0.3",
67
67
  "eslint": "8.57.0",
68
68
  "jest": "29.7.0",
69
69
  "npm-run-all": "4.1.5",
70
70
  "rimraf": "5.0.7",
71
- "sass": "1.77.3",
71
+ "sass": "1.77.4",
72
72
  "typescript": "5.4.5"
73
73
  },
74
74
  "peerDependencies": {
@@ -24,7 +24,9 @@ export * from '../stores/DSL_DataSpace_LegendApplicationPlugin_Extension.js';
24
24
  export { DataSpaceViewerState } from '../stores/DataSpaceViewerState.js';
25
25
  export {
26
26
  DataSpaceQueryBuilderState,
27
- DataSpaceProjectInfo,
27
+ DataSpacesDepotRepository,
28
+ DataSpacesBuilderRepoistory,
29
+ DataSpacesGraphRepoistory,
28
30
  } from '../stores/query-builder/DataSpaceQueryBuilderState.js';
29
31
  export {
30
32
  type DataSpaceInfo,
@@ -34,6 +34,7 @@ import { useApplicationStore } from '@finos/legend-application';
34
34
  import {
35
35
  type DataSpaceQueryBuilderState,
36
36
  resolveUsableDataSpaceClasses,
37
+ DataSpacesDepotRepository,
37
38
  } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
38
39
  import {
39
40
  buildRuntimeValueOption,
@@ -110,10 +111,14 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
110
111
  (props: { queryBuilderState: DataSpaceQueryBuilderState }) => {
111
112
  const { queryBuilderState } = props;
112
113
  const applicationStore = useApplicationStore();
114
+ const repo = queryBuilderState.dataSpaceRepo;
115
+ const depotRepo =
116
+ repo instanceof DataSpacesDepotRepository ? repo : undefined;
117
+ const project = depotRepo?.project;
113
118
 
114
119
  // data space
115
120
  const prioritizeDataSpaceFunc = queryBuilderState.prioritizeDataSpaceFunc;
116
- const sortedAllOptions = queryBuilderState.dataSpaces
121
+ const sortedAllOptions = (queryBuilderState.dataSpaceRepo.dataSpaces ?? [])
117
122
  .map(buildDataSpaceOption)
118
123
  .sort(compareLabelFn);
119
124
 
@@ -132,9 +137,9 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
132
137
  label:
133
138
  queryBuilderState.dataSpace.title ?? queryBuilderState.dataSpace.name,
134
139
  value: {
135
- groupId: queryBuilderState.projectInfo?.groupId,
136
- artifactId: queryBuilderState.projectInfo?.artifactId,
137
- versionId: queryBuilderState.projectInfo?.versionId,
140
+ groupId: project?.groupId,
141
+ artifactId: project?.artifactId,
142
+ versionId: project?.versionId,
138
143
  title: queryBuilderState.dataSpace.title,
139
144
  name: queryBuilderState.dataSpace.name,
140
145
  path: queryBuilderState.dataSpace.path,
@@ -146,8 +151,11 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
146
151
  queryBuilderState.onDataSpaceChange(option.value);
147
152
  };
148
153
 
149
- const openDataSpaceAdvancedSearch = (): void =>
150
- queryBuilderState.showAdvancedSearchPanel();
154
+ const openDataSpaceAdvancedSearch = (): void => {
155
+ if (repo.isAdvancedDataSpaceSearchEnabled && depotRepo) {
156
+ depotRepo.showAdvancedSearchPanel(queryBuilderState.dataSpace);
157
+ }
158
+ };
151
159
 
152
160
  // execution context
153
161
  const executionContextOptions =
@@ -211,7 +219,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
211
219
  );
212
220
 
213
221
  useEffect(() => {
214
- flowResult(queryBuilderState.loadDataSpaces()).catch(
222
+ flowResult(queryBuilderState.dataSpaceRepo.loadDataSpaces()).catch(
215
223
  applicationStore.alertUnhandledError,
216
224
  );
217
225
  }, [queryBuilderState, applicationStore]);
@@ -265,7 +273,9 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
265
273
  inputId="query-builder__setup__data-space-selector"
266
274
  className="panel__content__form__section__dropdown query-builder__setup__config-group__item__selector"
267
275
  options={dataSpaceOptions}
268
- isLoading={queryBuilderState.loadDataSpacesState.isInProgress}
276
+ isLoading={
277
+ queryBuilderState.dataSpaceRepo.loadDataSpacesState.isInProgress
278
+ }
269
279
  onChange={onDataSpaceOptionChange}
270
280
  value={selectedDataSpaceOption}
271
281
  placeholder="Search for data space..."
@@ -276,7 +286,7 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
276
286
  }
277
287
  formatOptionLabel={formatDataSpaceOptionLabel}
278
288
  />
279
- {queryBuilderState.isAdvancedDataSpaceSearchEnabled && (
289
+ {depotRepo && (
280
290
  <>
281
291
  <button
282
292
  tabIndex={-1}
@@ -286,10 +296,10 @@ const DataSpaceQueryBuilderSetupPanelContent = observer(
286
296
  >
287
297
  <SearchIcon />
288
298
  </button>
289
- {queryBuilderState.advancedSearchState && (
299
+ {depotRepo.advancedSearchState && (
290
300
  <DataSpaceAdvancedSearchModal
291
- searchState={queryBuilderState.advancedSearchState}
292
- onClose={() => queryBuilderState.hideAdvancedSearchPanel()}
301
+ searchState={depotRepo.advancedSearchState}
302
+ onClose={() => depotRepo.hideAdvancedSearchPanel()}
293
303
  />
294
304
  )}
295
305
  </>
@@ -30,7 +30,6 @@ import {
30
30
  useApplicationStore,
31
31
  } from '@finos/legend-application';
32
32
  import { DocumentationLink } from '@finos/legend-lego/application';
33
- import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
34
33
  import { DataSpaceExecutableTemplate } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
35
34
  import type { DataSpaceQueryBuilderState } from '../../stores/query-builder/DataSpaceQueryBuilderState.js';
36
35
  import { DSL_DATA_SPACE_LEGEND_QUERY_DOCUMENTATION_KEY } from '../../__lib__/query/DSL_DataSpace_LegendQueryDocumentation.js';
@@ -94,17 +93,10 @@ const DataSpaceTemplateQueryDialog = observer(
94
93
  const visitTemplateQuery = (
95
94
  template: DataSpaceExecutableTemplate,
96
95
  ): void => {
97
- if (queryBuilderState.projectInfo?.groupId) {
98
- applicationStore.navigationService.navigator.visitAddress(
99
- applicationStore.navigationService.navigator.generateAddress(
100
- generateDataSpaceTemplateQueryCreatorRoute(
101
- queryBuilderState.projectInfo.groupId,
102
- queryBuilderState.projectInfo.artifactId,
103
- queryBuilderState.projectInfo.versionId,
104
- queryBuilderState.dataSpace.path,
105
- template.id,
106
- ),
107
- ),
96
+ if (queryBuilderState.dataSpaceRepo.canVisitTemplateQuery) {
97
+ queryBuilderState.dataSpaceRepo.visitTemplateQuery(
98
+ queryBuilderState.dataSpace,
99
+ template,
108
100
  );
109
101
  }
110
102
  };
@@ -165,6 +157,9 @@ const DataSpaceTemplateQueryDialog = observer(
165
157
  <button
166
158
  className="query-builder__data-space__template-query-panel__query__share"
167
159
  title="Visit..."
160
+ disabled={
161
+ !queryBuilderState.dataSpaceRepo.canVisitTemplateQuery
162
+ }
168
163
  onClick={() => visitTemplateQuery(query)}
169
164
  >
170
165
  <ShareIcon />
@@ -53,6 +53,7 @@ import { renderDataSpaceQueryBuilderSetupPanelContent } from '../../components/q
53
53
  import {
54
54
  DataSpace,
55
55
  type DataSpaceExecutionContext,
56
+ type DataSpaceExecutableTemplate,
56
57
  } from '../../graph/metamodel/pure/model/packageableElements/dataSpace/DSL_DataSpace_DataSpace.js';
57
58
  import { DATA_SPACE_ELEMENT_CLASSIFIER_PATH } from '../../graph-manager/protocol/pure/DSL_DataSpace_PureProtocolProcessorPlugin.js';
58
59
  import { DataSpaceAdvancedSearchState } from '../query/DataSpaceAdvancedSearchState.js';
@@ -61,6 +62,8 @@ import {
61
62
  extractDataSpaceInfo,
62
63
  type DataSpaceInfo,
63
64
  } from '../shared/DataSpaceInfo.js';
65
+ import type { ProjectGAVCoordinates } from '@finos/legend-storage';
66
+ import { generateDataSpaceTemplateQueryCreatorRoute } from '../../__lib__/to-delete/DSL_DataSpace_LegendQueryNavigation_to_delete.js';
64
67
 
65
68
  export const resolveUsableDataSpaceClasses = (
66
69
  dataSpace: DataSpace,
@@ -80,11 +83,92 @@ export const resolveUsableDataSpaceClasses = (
80
83
  }
81
84
  return getMappingCompatibleClasses(mapping, graphManagerState.usableClasses);
82
85
  };
86
+ export interface DataSpaceQuerySDLC extends QuerySDLC {
87
+ groupId: string;
88
+ artifactId: string;
89
+ versionId: string;
90
+ dataSpace: string;
91
+ }
92
+
93
+ // could be abstracted for element
94
+ export abstract class DataSpacesBuilderRepoistory {
95
+ readonly applicationStore: GenericLegendApplicationStore;
96
+ readonly graphManagerState: GraphManagerState;
97
+ readonly loadDataSpacesState = ActionState.create();
98
+ dataSpaces: DataSpaceInfo[] | undefined;
99
+ prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined;
100
+
101
+ constructor(
102
+ applicatonstore: GenericLegendApplicationStore,
103
+ graphManagerState: GraphManagerState,
104
+ prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined,
105
+ ) {
106
+ this.applicationStore = applicatonstore;
107
+ this.graphManagerState = graphManagerState;
108
+ this.prioritizeDataSpaceFunc = prioritizeDataSpaceFunc;
109
+ }
110
+
111
+ get isAdvancedDataSpaceSearchEnabled(): boolean {
112
+ return false;
113
+ }
114
+
115
+ get canVisitTemplateQuery(): boolean {
116
+ return false;
117
+ }
118
+
119
+ abstract loadDataSpaces(): GeneratorFn<void>;
120
+ abstract visitTemplateQuery(
121
+ dataSpace: DataSpace,
122
+ template: DataSpaceExecutableTemplate,
123
+ ): void;
124
+
125
+ configureDataSpaceOptions(val: DataSpaceInfo[]): void {
126
+ this.dataSpaces = val;
127
+ }
128
+ }
129
+
130
+ export class DataSpacesGraphRepoistory extends DataSpacesBuilderRepoistory {
131
+ constructor(
132
+ applicatonstore: GenericLegendApplicationStore,
133
+ graphManagerState: GraphManagerState,
134
+ prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined,
135
+ ) {
136
+ super(applicatonstore, graphManagerState, prioritizeDataSpaceFunc);
137
+ makeObservable(this, {
138
+ dataSpaces: observable,
139
+ loadDataSpaces: flow,
140
+ configureDataSpaceOptions: action,
141
+ });
142
+ }
143
+
144
+ *loadDataSpaces(): GeneratorFn<void> {
145
+ this.dataSpaces = this.graphManagerState.graph.allOwnElements
146
+ .filter(filterByType(DataSpace))
147
+ .map(
148
+ (e) =>
149
+ ({
150
+ groupId: undefined,
151
+ artifactId: undefined,
152
+ versionId: undefined,
153
+ path: e.path,
154
+ name: e.name,
155
+ title: e.title,
156
+ defaultExecutionContext: e.defaultExecutionContext.title,
157
+ }) as DataSpaceInfo,
158
+ );
159
+ }
83
160
 
84
- export class DataSpaceProjectInfo {
85
- readonly groupId: string;
86
- readonly artifactId: string;
87
- readonly versionId: string;
161
+ override visitTemplateQuery(
162
+ dataSpace: DataSpace,
163
+ template: DataSpaceExecutableTemplate,
164
+ ): void {
165
+ throw new Error('Method not implemented.');
166
+ }
167
+ }
168
+
169
+ export class DataSpacesDepotRepository extends DataSpacesBuilderRepoistory {
170
+ readonly depotServerClient: DepotServerClient;
171
+ readonly project: ProjectGAVCoordinates;
88
172
  readonly viewProject: (
89
173
  groupId: string,
90
174
  artifactId: string,
@@ -96,11 +180,13 @@ export class DataSpaceProjectInfo {
96
180
  artifactId: string,
97
181
  entityPath: string | undefined,
98
182
  ) => Promise<void>;
183
+ advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
99
184
 
100
185
  constructor(
101
- groupId: string,
102
- artifactId: string,
103
- versionId: string,
186
+ depotServerClient: DepotServerClient,
187
+ applicatonstore: GenericLegendApplicationStore,
188
+ graphManagerState: GraphManagerState,
189
+ project: ProjectGAVCoordinates,
104
190
  viewProject: (
105
191
  groupId: string,
106
192
  artifactId: string,
@@ -112,26 +198,101 @@ export class DataSpaceProjectInfo {
112
198
  artifactId: string,
113
199
  entityPath: string | undefined,
114
200
  ) => Promise<void>,
201
+ prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined,
115
202
  ) {
116
- this.groupId = groupId;
117
- this.artifactId = artifactId;
118
- this.versionId = versionId;
203
+ super(applicatonstore, graphManagerState, prioritizeDataSpaceFunc);
204
+ makeObservable(this, {
205
+ advancedSearchState: observable,
206
+ dataSpaces: observable,
207
+ showAdvancedSearchPanel: action,
208
+ hideAdvancedSearchPanel: action,
209
+ visitTemplateQuery: action,
210
+ configureDataSpaceOptions: action,
211
+ loadDataSpaces: flow,
212
+ });
213
+ this.depotServerClient = depotServerClient;
214
+ this.project = project;
119
215
  this.viewProject = viewProject;
120
216
  this.viewSDLCProject = viewSDLCProject;
121
217
  }
122
- }
123
218
 
124
- export interface DataSpaceQuerySDLC extends QuerySDLC {
125
- groupId: string;
126
- artifactId: string;
127
- versionId: string;
128
- dataSpace: string;
219
+ override get isAdvancedDataSpaceSearchEnabled(): boolean {
220
+ return true;
221
+ }
222
+
223
+ override get canVisitTemplateQuery(): boolean {
224
+ return true;
225
+ }
226
+
227
+ override visitTemplateQuery(
228
+ dataSpace: DataSpace,
229
+ template: DataSpaceExecutableTemplate,
230
+ ): void {
231
+ this.applicationStore.navigationService.navigator.visitAddress(
232
+ this.applicationStore.navigationService.navigator.generateAddress(
233
+ generateDataSpaceTemplateQueryCreatorRoute(
234
+ this.project.groupId,
235
+ this.project.artifactId,
236
+ this.project.versionId,
237
+ dataSpace.path,
238
+ template.id,
239
+ ),
240
+ ),
241
+ );
242
+ }
243
+
244
+ showAdvancedSearchPanel(dataSpace: DataSpace): void {
245
+ this.advancedSearchState = new DataSpaceAdvancedSearchState(
246
+ this.applicationStore,
247
+ this.graphManagerState,
248
+ this.depotServerClient,
249
+ {
250
+ viewProject: this.viewProject,
251
+ viewSDLCProject: this.viewSDLCProject,
252
+ },
253
+ {
254
+ groupId: this.project.groupId,
255
+ artifactId: this.project.artifactId,
256
+ versionId: this.project.versionId,
257
+ title: dataSpace.title,
258
+ name: dataSpace.name,
259
+ path: dataSpace.path,
260
+ defaultExecutionContext: dataSpace.defaultExecutionContext.name,
261
+ },
262
+ this.project.versionId === SNAPSHOT_VERSION_ALIAS,
263
+ );
264
+ }
265
+
266
+ hideAdvancedSearchPanel(): void {
267
+ this.advancedSearchState = undefined;
268
+ }
269
+
270
+ *loadDataSpaces(): GeneratorFn<void> {
271
+ if (this.dataSpaces === undefined) {
272
+ this.loadDataSpacesState.inProgress();
273
+ const toGetSnapShot = this.project.versionId === SNAPSHOT_VERSION_ALIAS;
274
+ try {
275
+ this.dataSpaces = (
276
+ (yield this.depotServerClient.getEntitiesByClassifier(
277
+ DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
278
+ {
279
+ scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
280
+ },
281
+ )) as StoredEntity[]
282
+ ).map((storedEntity) =>
283
+ extractDataSpaceInfo(storedEntity, toGetSnapShot),
284
+ );
285
+ this.loadDataSpacesState.pass();
286
+ } catch (error) {
287
+ assertErrorThrown(error);
288
+ this.loadDataSpacesState.fail();
289
+ this.applicationStore.notificationService.notifyError(error);
290
+ }
291
+ }
292
+ }
129
293
  }
130
294
 
131
295
  export class DataSpaceQueryBuilderState extends QueryBuilderState {
132
- readonly depotServerClient: DepotServerClient;
133
- readonly isAdvancedDataSpaceSearchEnabled: boolean;
134
- readonly loadDataSpacesState = ActionState.create();
135
296
  readonly onDataSpaceChange: (val: DataSpaceInfo) => void;
136
297
  readonly onExecutionContextChange?:
137
298
  | ((val: DataSpaceExecutionContext) => void)
@@ -139,68 +300,60 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
139
300
  readonly onRuntimeChange?: ((val: Runtime) => void) | undefined;
140
301
  readonly onClassChange?: ((val: Class) => void) | undefined;
141
302
  readonly dataSpaceAnalysisResult?: DataSpaceAnalysisResult | undefined;
142
- readonly projectInfo?: DataSpaceProjectInfo | undefined;
303
+ readonly dataSpaceRepo: DataSpacesBuilderRepoistory;
143
304
 
144
305
  override TEMPORARY__setupPanelContentRenderer = (): React.ReactNode =>
145
306
  renderDataSpaceQueryBuilderSetupPanelContent(this);
146
307
 
147
308
  dataSpace: DataSpace;
148
309
  executionContext!: DataSpaceExecutionContext;
149
- dataSpaces: DataSpaceInfo[] = [];
150
310
  readonly prioritizeDataSpaceFunc?:
151
311
  | ((val: DataSpaceInfo) => boolean)
152
312
  | undefined;
153
313
  showRuntimeSelector = false;
154
- advancedSearchState?: DataSpaceAdvancedSearchState | undefined;
155
314
  isTemplateQueryDialogOpen = false;
156
315
 
157
316
  constructor(
158
317
  applicationStore: GenericLegendApplicationStore,
159
318
  graphManagerState: GraphManagerState,
160
- depotServerClient: DepotServerClient,
161
319
  workflow: QueryBuilderWorkflowState,
162
320
  actionConfig: QueryBuilderActionConfig,
163
321
  dataSpace: DataSpace,
164
322
  executionContext: DataSpaceExecutionContext,
323
+ dataSpaceRepo: DataSpacesBuilderRepoistory | undefined,
165
324
  onDataSpaceChange: (val: DataSpaceInfo) => void,
166
- isAdvancedDataSpaceSearchEnabled: boolean,
167
325
  dataSpaceAnalysisResult?: DataSpaceAnalysisResult | undefined,
168
326
  onExecutionContextChange?:
169
327
  | ((val: DataSpaceExecutionContext) => void)
170
328
  | undefined,
171
329
  onRuntimeChange?: ((val: Runtime) => void) | undefined,
172
330
  onClassChange?: ((val: Class) => void) | undefined,
173
- projectInfo?: DataSpaceProjectInfo | undefined,
174
331
  config?: QueryBuilderConfig | undefined,
175
332
  sourceInfo?: QuerySDLC | undefined,
176
- prioritizeDataSpaceFunc?: ((val: DataSpaceInfo) => boolean) | undefined,
177
333
  ) {
178
334
  super(applicationStore, graphManagerState, workflow, config, sourceInfo);
179
335
 
180
336
  makeObservable(this, {
181
- dataSpaces: observable,
182
337
  executionContext: observable,
183
338
  showRuntimeSelector: observable,
184
- advancedSearchState: observable,
185
339
  isTemplateQueryDialogOpen: observable,
186
- showAdvancedSearchPanel: action,
187
- hideAdvancedSearchPanel: action,
188
340
  setExecutionContext: action,
189
341
  setShowRuntimeSelector: action,
190
342
  setTemplateQueryDialogOpen: action,
191
- loadDataSpaces: flow,
192
343
  });
193
344
 
194
- this.depotServerClient = depotServerClient;
195
345
  this.dataSpace = dataSpace;
196
346
  this.executionContext = executionContext;
197
- this.projectInfo = projectInfo;
198
347
  this.onDataSpaceChange = onDataSpaceChange;
199
348
  this.onExecutionContextChange = onExecutionContextChange;
200
349
  this.onRuntimeChange = onRuntimeChange;
201
350
  this.onClassChange = onClassChange;
202
- this.prioritizeDataSpaceFunc = prioritizeDataSpaceFunc;
203
- this.isAdvancedDataSpaceSearchEnabled = isAdvancedDataSpaceSearchEnabled;
351
+ this.dataSpaceRepo =
352
+ dataSpaceRepo ??
353
+ new DataSpacesGraphRepoistory(
354
+ this.applicationStore,
355
+ this.graphManagerState,
356
+ );
204
357
  this.dataSpaceAnalysisResult = dataSpaceAnalysisResult;
205
358
  this.workflowState.updateActionConfig(actionConfig);
206
359
  }
@@ -222,34 +375,6 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
222
375
  this.isTemplateQueryDialogOpen = val;
223
376
  }
224
377
 
225
- showAdvancedSearchPanel(): void {
226
- if (this.projectInfo && this.isAdvancedDataSpaceSearchEnabled) {
227
- this.advancedSearchState = new DataSpaceAdvancedSearchState(
228
- this.applicationStore,
229
- this.graphManagerState,
230
- this.depotServerClient,
231
- {
232
- viewProject: this.projectInfo.viewProject,
233
- viewSDLCProject: this.projectInfo.viewSDLCProject,
234
- },
235
- {
236
- groupId: this.projectInfo.groupId,
237
- artifactId: this.projectInfo.artifactId,
238
- versionId: this.projectInfo.versionId,
239
- title: this.dataSpace.title,
240
- name: this.dataSpace.name,
241
- path: this.dataSpace.path,
242
- defaultExecutionContext: this.dataSpace.defaultExecutionContext.name,
243
- },
244
- this.projectInfo.versionId === SNAPSHOT_VERSION_ALIAS,
245
- );
246
- }
247
- }
248
-
249
- hideAdvancedSearchPanel(): void {
250
- this.advancedSearchState = undefined;
251
- }
252
-
253
378
  setExecutionContext(val: DataSpaceExecutionContext): void {
254
379
  this.executionContext = val;
255
380
  }
@@ -258,46 +383,6 @@ export class DataSpaceQueryBuilderState extends QueryBuilderState {
258
383
  this.showRuntimeSelector = val;
259
384
  }
260
385
 
261
- *loadDataSpaces(): GeneratorFn<void> {
262
- if (this.projectInfo) {
263
- this.loadDataSpacesState.inProgress();
264
- const toGetSnapShot =
265
- this.projectInfo.versionId === SNAPSHOT_VERSION_ALIAS;
266
- try {
267
- this.dataSpaces = (
268
- (yield this.depotServerClient.getEntitiesByClassifier(
269
- DATA_SPACE_ELEMENT_CLASSIFIER_PATH,
270
- {
271
- scope: toGetSnapShot ? DepotScope.SNAPSHOT : DepotScope.RELEASES,
272
- },
273
- )) as StoredEntity[]
274
- ).map((storedEntity) =>
275
- extractDataSpaceInfo(storedEntity, toGetSnapShot),
276
- );
277
- this.loadDataSpacesState.pass();
278
- } catch (error) {
279
- assertErrorThrown(error);
280
- this.loadDataSpacesState.fail();
281
- this.applicationStore.notificationService.notifyError(error);
282
- }
283
- } else {
284
- this.dataSpaces = this.graphManagerState.graph.allOwnElements
285
- .filter(filterByType(DataSpace))
286
- .map(
287
- (e) =>
288
- ({
289
- groupId: undefined,
290
- artifactId: undefined,
291
- versionId: undefined,
292
- path: e.path,
293
- name: e.name,
294
- title: e.title,
295
- defaultExecutionContext: e.defaultExecutionContext.title,
296
- }) as DataSpaceInfo,
297
- );
298
- }
299
- }
300
-
301
386
  /**
302
387
  * Propagation after changing the execution context:
303
388
  * - The mapping will be updated to the mapping of the execution context