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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/lib/components/index.d.ts +1 -1
  2. package/lib/components/index.d.ts.map +1 -1
  3. package/lib/components/index.js +1 -1
  4. package/lib/components/index.js.map +1 -1
  5. package/lib/components/query-builder/DataSpaceAdvancedSearchModal.d.ts.map +1 -1
  6. package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js +1 -8
  7. package/lib/components/query-builder/DataSpaceAdvancedSearchModal.js.map +1 -1
  8. package/lib/components/query-builder/DataSpaceQueryBuilder.d.ts.map +1 -1
  9. package/lib/components/query-builder/DataSpaceQueryBuilder.js +19 -14
  10. package/lib/components/query-builder/DataSpaceQueryBuilder.js.map +1 -1
  11. package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.d.ts.map +1 -1
  12. package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js +3 -4
  13. package/lib/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.js.map +1 -1
  14. package/lib/index.css +2 -2
  15. package/lib/index.css.map +1 -1
  16. package/lib/package.json +2 -2
  17. package/lib/stores/query-builder/DataSpaceQueryBuilderState.d.ts +36 -19
  18. package/lib/stores/query-builder/DataSpaceQueryBuilderState.d.ts.map +1 -1
  19. package/lib/stores/query-builder/DataSpaceQueryBuilderState.js +114 -73
  20. package/lib/stores/query-builder/DataSpaceQueryBuilderState.js.map +1 -1
  21. package/package.json +13 -13
  22. package/src/components/index.ts +3 -1
  23. package/src/components/query-builder/DataSpaceAdvancedSearchModal.tsx +1 -27
  24. package/src/components/query-builder/DataSpaceQueryBuilder.tsx +22 -28
  25. package/src/components/query-builder/DataSpaceQueryBuilderTemplateQueryPanelContent.tsx +7 -12
  26. package/src/stores/query-builder/DataSpaceQueryBuilderState.ts +188 -103
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-extension-dsl-data-space",
3
- "version": "10.3.19",
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,6B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,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,MAAM,CAAC,EAAE,kBAAkB,GAAG,SAAS,EACvC,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS;IA6BpC,IAAa,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAIlD;IAEQ,wBAAwB,IAAI,qBAAqB;IAO1D,0BAA0B,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAI9C,mBAAmB,CAAC,GAAG,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,iBAAi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AC,OAAO,CAAC,KAAK,CAAC;QAC/C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC5B,MAAM,kCAAkC,GACtC,IAAI,CAAC,uBAAuB,EAAE,sBAAsB,CAAC,GAAG,CACtD,gBAAgB,CAAC,IAAI,CACtB,EAAE,kCAAkC,CAAC;QACxC,IAAI,kCAAkC,EAAE,CAAC;YACvC,IAAI,CAAC,aAAa,CAAC,kCAAkC;gBACnD,kCAAkC,CAAC;QACvC,CAAC;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,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,4BAA4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mB,GAAG,GAAG,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACH,+BAA+B,CAC7B,gBAA2C;QAE3C,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC;QAC/C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC5B,MAAM,kCAAkC,GACtC,IAAI,CAAC,uBAAuB,EAAE,sBAAsB,CAAC,GAAG,CACtD,gBAAgB,CAAC,IAAI,CACtB,EAAE,kCAAkC,CAAC;QACxC,IAAI,kCAAkC,EAAE,CAAC;YACvC,IAAI,CAAC,aAAa,CAAC,kCAAkC;gBACnD,kCAAkC,CAAC;QACvC,CAAC;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,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.19",
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.175",
49
- "@finos/legend-graph": "31.10.2",
50
- "@finos/legend-lego": "1.2.35",
51
- "@finos/legend-query-builder": "4.14.43",
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,
@@ -32,14 +32,13 @@ import {
32
32
  ModalTitle,
33
33
  ModalHeaderActions,
34
34
  } from '@finos/legend-art';
35
- import { generateGAVCoordinates } from '@finos/legend-storage';
36
- import { guaranteeNonNullable } from '@finos/legend-shared';
37
35
  import { flowResult } from 'mobx';
38
36
  import { observer } from 'mobx-react-lite';
39
37
  import { useEffect, useRef } from 'react';
40
38
  import { DataSpaceViewer } from '../DataSpaceViewer.js';
41
39
  import type { DataSpaceInfo } from '../../stores/shared/DataSpaceInfo.js';
42
40
  import type { DataSpaceAdvancedSearchState } from '../../stores/query/DataSpaceAdvancedSearchState.js';
41
+ import { formatDataSpaceOptionLabel } from './DataSpaceQueryBuilder.js';
43
42
 
44
43
  type DataSpaceOption = { label: string; value: DataSpaceInfo };
45
44
  const buildDataSpaceOption = (value: DataSpaceInfo): DataSpaceOption => ({
@@ -77,31 +76,6 @@ export const DataSpaceAdvancedSearchModal = observer(
77
76
  searchState.setCurrentDataSpace(option?.value);
78
77
  searchState.setDataSpaceViewerState(undefined);
79
78
  };
80
- const formatDataSpaceOptionLabel = (
81
- option: DataSpaceOption,
82
- ): React.ReactNode => {
83
- const groupId = guaranteeNonNullable(option.value.groupId);
84
- const artifactId = guaranteeNonNullable(option.value.artifactId);
85
- const versionId = guaranteeNonNullable(option.value.versionId);
86
- return (
87
- <div
88
- className="data-space-advanced-search__dialog__option"
89
- title={`${option.label} - ${
90
- option.value.path
91
- } - ${generateGAVCoordinates(groupId, artifactId, versionId)}`}
92
- >
93
- <div className="data-space-advanced-search__dialog__option__label">
94
- {option.label}
95
- </div>
96
- <div className="data-space-advanced-search__dialog__option__path">
97
- {option.value.path}
98
- </div>
99
- <div className="data-space-advanced-search__dialog__option__gav">
100
- {generateGAVCoordinates(groupId, artifactId, versionId)}
101
- </div>
102
- </div>
103
- );
104
- };
105
79
 
106
80
  // search text
107
81