@finos/legend-application-query 13.8.60 → 13.8.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/lib/application/LegendQueryApplicationConfig.d.ts +24 -1
  2. package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
  3. package/lib/application/LegendQueryApplicationConfig.js +23 -1
  4. package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
  5. package/lib/components/LegendQueryWebApplication.d.ts.map +1 -1
  6. package/lib/components/LegendQueryWebApplication.js +1 -1
  7. package/lib/components/LegendQueryWebApplication.js.map +1 -1
  8. package/lib/components/cube/LegendQueryCubePage.d.ts.map +1 -1
  9. package/lib/components/cube/LegendQueryCubePage.js +6 -2
  10. package/lib/components/cube/LegendQueryCubePage.js.map +1 -1
  11. package/lib/index.css +1 -1
  12. package/lib/light-mode.css +1 -1
  13. package/lib/package.json +2 -1
  14. package/lib/stores/cube/LegendQueryCubeEntry.d.ts +38 -0
  15. package/lib/stores/cube/LegendQueryCubeEntry.d.ts.map +1 -0
  16. package/lib/stores/cube/LegendQueryCubeEntry.js +59 -0
  17. package/lib/stores/cube/LegendQueryCubeEntry.js.map +1 -0
  18. package/lib/stores/cube/LegendQueryCubeHost.d.ts +25 -4
  19. package/lib/stores/cube/LegendQueryCubeHost.d.ts.map +1 -1
  20. package/lib/stores/cube/LegendQueryCubeHost.js +129 -5
  21. package/lib/stores/cube/LegendQueryCubeHost.js.map +1 -1
  22. package/package.json +12 -11
  23. package/src/application/LegendQueryApplicationConfig.ts +46 -0
  24. package/src/components/LegendQueryWebApplication.tsx +12 -4
  25. package/src/components/cube/LegendQueryCubePage.tsx +15 -2
  26. package/src/stores/cube/LegendQueryCubeEntry.ts +74 -0
  27. package/src/stores/cube/LegendQueryCubeHost.ts +178 -5
  28. package/tsconfig.json +1 -0
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { SerializationFactory, type PlainObject } from '@finos/legend-shared';
17
- import { LegendApplicationConfig, type LegendApplicationConfigurationInput, type LegendApplicationConfigurationData } from '@finos/legend-application';
17
+ import { LegendApplicationConfig, type LegendApplicationConfigurationInput, type LegendApplicationConfigurationData, StereotypeConfig } from '@finos/legend-application';
18
18
  import { QueryBuilderConfig } from '@finos/legend-query-builder';
19
19
  import type { AuthProviderProps } from 'react-oidc-context';
20
20
  export declare class LegendQueryOIDCConfiguration {
@@ -30,6 +30,15 @@ export declare class ServiceRegistrationEnvironmentConfig {
30
30
  managementUrl: string;
31
31
  static readonly serialization: SerializationFactory<ServiceRegistrationEnvironmentConfig>;
32
32
  }
33
+ /**
34
+ * Data products, as Legend Studio and Legend Marketplace configure them:
35
+ * Query reads only the stereotype that marks access point groups open to
36
+ * everyone in the organization, which Legend Cube's access badges use
37
+ */
38
+ export declare class LegendQueryDataProductConfig {
39
+ publicStereotype: StereotypeConfig | undefined;
40
+ static readonly serialization: SerializationFactory<LegendQueryDataProductConfig>;
41
+ }
33
42
  declare class LegendQueryApplicationCoreOptions {
34
43
  /**
35
44
  * Provides service registration environment configs.
@@ -63,6 +72,8 @@ declare class LegendQueryApplicationCoreOptions {
63
72
  * Default to `false`
64
73
  */
65
74
  enableOauthFlow: boolean;
75
+ /** Data products, as Studio and Marketplace configure them (`options.dataProductConfig`) */
76
+ dataProductConfig: LegendQueryDataProductConfig | undefined;
66
77
  private static readonly serialization;
67
78
  static create(configData: PlainObject<LegendQueryApplicationCoreOptions>): LegendQueryApplicationCoreOptions;
68
79
  }
@@ -90,9 +101,19 @@ export interface LegendQueryApplicationConfigurationData extends LegendApplicati
90
101
  marketplace?: {
91
102
  url: string;
92
103
  productionParallelUrl: string;
104
+ /**
105
+ * The marketplace server, whose search Legend Cube's data product tab
106
+ * uses: the URL Legend Marketplace's own config names `marketplace.url`
107
+ */
108
+ serverUrl?: string;
93
109
  };
94
110
  lakehouse?: {
95
111
  url: string;
112
+ /**
113
+ * The lakehouse platform, which names the ingest servers: Legend Cube's
114
+ * ingest data sets need it, as Data Cube's and Marketplace's do
115
+ */
116
+ platformUrl?: string;
96
117
  };
97
118
  legendAI?: {
98
119
  url?: string;
@@ -110,7 +131,9 @@ export declare class LegendQueryApplicationConfig extends LegendApplicationConfi
110
131
  readonly dataCubeApplicationUrl?: string;
111
132
  readonly marketplaceApplicationUrl?: string;
112
133
  readonly marketplaceProductionParallelUrl?: string;
134
+ readonly marketplaceServerUrl?: string;
113
135
  readonly lakehouseContractUrl?: string;
136
+ readonly lakehousePlatformUrl?: string;
114
137
  readonly legendAIUrl?: string;
115
138
  readonly legendAIAgentUrl?: string;
116
139
  readonly studioInstances: LegendStudioApplicationInstanceConfigurationData[];
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryApplicationConfig.d.ts","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,oBAAoB,EACpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,KAAK,mCAAmC,EACxC,KAAK,kCAAkC,EACxC,MAAM,2BAA2B,CAAC;AASnC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,qBAAa,4BAA4B;IACvC,YAAY,EAAG,MAAM,CAAC;IACtB,kBAAkB,EAAG,MAAM,CAAC;IAC5B,iBAAiB,EAAG,iBAAiB,CAAC;IAEtC,MAAM,CAAC,QAAQ,CAAC,aAAa,qDAM3B;CACH;AAED,qBAAa,oCAAoC;IAC/C,GAAG,EAAG,MAAM,CAAC;IACb,YAAY,EAAG,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,EAAE,CAAM;IACrB,aAAa,EAAG,MAAM,CAAC;IAEvB,MAAM,CAAC,QAAQ,CAAC,aAAa,6DAO3B;CACH;AAED,cAAM,iC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,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,gDAAgD,EAAE,CACvE;gBAGH,KAAK,EAAE,mCAAmC,CAAC,uCAAuC,CAAC;IA+G5E,+BAA+B,IAAI,MAAM;CAGnD"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { assertNonNullable, guaranteeNonEmptyString, guaranteeNonNullable, SerializationFactory, usingModelSchema, } from '@finos/legend-shared';
17
- import { LegendApplicationConfig, } from '@finos/legend-application';
17
+ import { LegendApplicationConfig, StereotypeConfig, } from '@finos/legend-application';
18
18
  import { createModelSchema, primitive, list, object, optional, raw, } from 'serializr';
19
19
  import { QueryBuilderConfig } from '@finos/legend-query-builder';
20
20
  export class LegendQueryOIDCConfiguration {
@@ -39,6 +39,17 @@ export class ServiceRegistrationEnvironmentConfig {
39
39
  modes: list(primitive()),
40
40
  }));
41
41
  }
42
+ /**
43
+ * Data products, as Legend Studio and Legend Marketplace configure them:
44
+ * Query reads only the stereotype that marks access point groups open to
45
+ * everyone in the organization, which Legend Cube's access badges use
46
+ */
47
+ export class LegendQueryDataProductConfig {
48
+ publicStereotype;
49
+ static serialization = new SerializationFactory(createModelSchema(LegendQueryDataProductConfig, {
50
+ publicStereotype: optional(usingModelSchema(StereotypeConfig.serialization.schema)),
51
+ }));
52
+ }
42
53
  class LegendQueryApplicationCoreOptions {
43
54
  /**
44
55
  * Provides service registration environment configs.
@@ -72,6 +83,8 @@ class LegendQueryApplicationCoreOptions {
72
83
  * Default to `false`
73
84
  */
74
85
  enableOauthFlow = false;
86
+ /** Data products, as Studio and Marketplace configure them (`options.dataProductConfig`) */
87
+ dataProductConfig;
75
88
  static serialization = new SerializationFactory(createModelSchema(LegendQueryApplicationCoreOptions, {
76
89
  TEMPORARY__serviceRegistrationConfig: list(object(ServiceRegistrationEnvironmentConfig)),
77
90
  queryBuilderConfig: optional(usingModelSchema(QueryBuilderConfig.serialization.schema)),
@@ -79,6 +92,7 @@ class LegendQueryApplicationCoreOptions {
79
92
  TEMPORARY__enableMinimalGraph: optional(primitive()),
80
93
  oidcConfig: optional(usingModelSchema(LegendQueryOIDCConfiguration.serialization.schema)),
81
94
  enableOauthFlow: optional(primitive()),
95
+ dataProductConfig: optional(usingModelSchema(LegendQueryDataProductConfig.serialization.schema)),
82
96
  }));
83
97
  static create(configData) {
84
98
  return LegendQueryApplicationCoreOptions.serialization.fromJson(configData);
@@ -95,7 +109,9 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
95
109
  dataCubeApplicationUrl;
96
110
  marketplaceApplicationUrl;
97
111
  marketplaceProductionParallelUrl;
112
+ marketplaceServerUrl;
98
113
  lakehouseContractUrl;
114
+ lakehousePlatformUrl;
99
115
  legendAIUrl;
100
116
  legendAIAgentUrl;
101
117
  studioInstances = [];
@@ -129,10 +145,16 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
129
145
  this.marketplaceProductionParallelUrl =
130
146
  LegendApplicationConfig.resolveAbsoluteUrl(input.configData.marketplace.productionParallelUrl);
131
147
  }
148
+ if (input.configData.marketplace?.serverUrl) {
149
+ this.marketplaceServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.marketplace.serverUrl);
150
+ }
132
151
  // lakehouse
133
152
  if (input.configData.lakehouse?.url) {
134
153
  this.lakehouseContractUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.lakehouse.url);
135
154
  }
155
+ if (input.configData.lakehouse?.platformUrl) {
156
+ this.lakehousePlatformUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.lakehouse.platformUrl);
157
+ }
136
158
  // legend AI (AI-assisted features such as query title/description suggester)
137
159
  if (input.configData.legendAI?.url) {
138
160
  this.legendAIUrl = LegendApplicationConfig.resolveAbsoluteUrl(input.configData.legendAI.url);
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EAEpB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,GAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,GAAG,GACJ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGjE,MAAM,OAAO,4BAA4B;IACvC,YAAY,CAAU;IACtB,kBAAkB,CAAU;IAC5B,iBAAiB,CAAqB;IAEtC,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,4BAA4B,EAAE;QAC9C,YAAY,EAAE,SAAS,EAAE;QACzB,kBAAkB,EAAE,SAAS,EAAE;QAC/B,iBAAiB,EAAE,GAAG,EAAE;KACzB,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,oCAAoC;IAC/C,GAAG,CAAU;IACb,YAAY,CAAU;IACtB,KAAK,GAAa,EAAE,CAAC;IACrB,aAAa,CAAU;IAEvB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,GAAG,EAAE,SAAS,EAAE;QAChB,YAAY,EAAE,SAAS,EAAE;QACzB,aAAa,EAAE,SAAS,EAAE;QAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;KACzB,CAAC,CACH,CAAC;;AAGJ,MAAM,iCAAiC;IAC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AC,QAAQ,CACnC,CAAC;QACJ,CAAC;QAED,UAAU;QACV,IAAI,CAAC,OAAO,GAAG,iCAAiC,CAAC,MAAM,CACrD,KAAK,CAAC,UAAU,CAAC,UAAU,EAAE,IAAI,IAAI,EAAE,CACxC,CAAC;IACJ,CAAC;IAEQ,+BAA+B;QACtC,OAAO,cAAc,CAAC;IACxB,CAAC;CACF"}
1
+ {"version":3,"file":"LegendQueryApplicationConfig.js","sourceRoot":"","sources":["../../src/application/LegendQueryApplicationConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EAEpB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EAGvB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,GAAG,GACJ,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGjE,MAAM,OAAO,4BAA4B;IACvC,YAAY,CAAU;IACtB,kBAAkB,CAAU;IAC5B,iBAAiB,CAAqB;IAEtC,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,4BAA4B,EAAE;QAC9C,YAAY,EAAE,SAAS,EAAE;QACzB,kBAAkB,EAAE,SAAS,EAAE;QAC/B,iBAAiB,EAAE,GAAG,EAAE;KACzB,CAAC,CACH,CAAC;;AAGJ,MAAM,OAAO,oCAAoC;IAC/C,GAAG,CAAU;IACb,YAAY,CAAU;IACtB,KAAK,GAAa,EAAE,CAAC;IACrB,aAAa,CAAU;IAEvB,MAAM,CAAU,aAAa,GAAG,IAAI,oBAAoB,CACtD,iBAAiB,CAAC,oCAAoC,EAAE;QACtD,GAAG,EAAE,SAAS,EAAE;QAChB,YAAY,EAAE,S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ueryWebApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyLH,eAAO,MAAM,yBAAyB,WAC5B;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;CAsC5B,CAAC"}
1
+ {"version":3,"file":"LegendQueryWebApplication.d.ts","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAiMH,eAAO,MAAM,yBAAyB,WAC5B;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE;;CAsC5B,CAAC"}
@@ -43,7 +43,7 @@ const LegendQueryWebApplicationRouter = observer(() => {
43
43
  useEffect(() => {
44
44
  flowResult(baseStore.initialize()).catch(applicationStore.alertUnhandledError);
45
45
  }, [applicationStore, baseStore]);
46
- return (_jsx("div", { className: "app", children: baseStore.initState.hasCompleted && (_jsxs(Routes, { children: [_jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DEFAULT, element: _jsx(QueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.EDIT_EXISTING_QUERY_SETUP, element: _jsx(EditExistingQuerySetup, {}) }), _jsx(Route, { path: generateExtensionUrlPattern(LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.TEMPLATE_QUERY), element: _jsx(DataSpaceTemplateQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.SETUP, element: _jsx(QuerySetupLandingPage, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CREATE_MAPPING_QUERY_SETUP, element: _jsx(CreateMappingQuerySetup, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.EDIT_EXISTING_QUERY, element: _jsx(ExistingQueryEditor, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DATA_CUBE_EXISTING_QUERY, element: _jsx(ExistingQueryDataCubeViewer, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DATA_PRODUCT, element: _jsx(QueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.INGEST_QUERY, element: _jsx(IngestQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_SERVICE_QUERY, element: _jsx(ServiceQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_MAPPING_QUERY, element: _jsx(MappingQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DEV_DATA_SPACE_INSPECTOR, element: _jsx(DataSpaceArtifactInspector, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CUBE, element: _jsx(LegendQueryCubeRoute, {}) }), _jsx(Route, { path: generateExtensionUrlPattern(LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP), element: _jsx(QueryCreator, {}) }), _jsx(Route, { path: generateExtensionUrlPattern(LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.CREATE), element: _jsx(QueryCreator, {}) }), extraApplicationPageEntries.flatMap((entry) => entry.addressPatterns
46
+ return (_jsx("div", { className: "app", children: baseStore.initState.hasCompleted && (_jsxs(Routes, { children: [_jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DEFAULT, element: _jsx(QueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.EDIT_EXISTING_QUERY_SETUP, element: _jsx(EditExistingQuerySetup, {}) }), _jsx(Route, { path: generateExtensionUrlPattern(LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.TEMPLATE_QUERY), element: _jsx(DataSpaceTemplateQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.SETUP, element: _jsx(QuerySetupLandingPage, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CREATE_MAPPING_QUERY_SETUP, element: _jsx(CreateMappingQuerySetup, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.EDIT_EXISTING_QUERY, element: _jsx(ExistingQueryEditor, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DATA_CUBE_EXISTING_QUERY, element: _jsx(ExistingQueryDataCubeViewer, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DATA_PRODUCT, element: _jsx(QueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.INGEST_QUERY, element: _jsx(IngestQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_SERVICE_QUERY, element: _jsx(ServiceQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CREATE_FROM_MAPPING_QUERY, element: _jsx(MappingQueryCreator, {}) }), _jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.DEV_DATA_SPACE_INSPECTOR, element: _jsx(DataSpaceArtifactInspector, {}) }), applicationStore.config.options.NonProductionFeatureFlag && (_jsx(Route, { path: LEGEND_QUERY_ROUTE_PATTERN.CUBE, element: _jsx(LegendQueryCubeRoute, {}) })), _jsx(Route, { path: generateExtensionUrlPattern(LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.SETUP), element: _jsx(QueryCreator, {}) }), _jsx(Route, { path: generateExtensionUrlPattern(LEGACY_DATA_SPACE_QUERY_ROUTE_PATTERN.CREATE), element: _jsx(QueryCreator, {}) }), extraApplicationPageEntries.flatMap((entry) => entry.addressPatterns
47
47
  .map(generateExtensionUrlPattern)
48
48
  .map((path) => (_jsx(Route, { path: path, element: entry.renderer() }, entry.key))))] })) }));
49
49
  });
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryWebApplication.js","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OA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,CAAC,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC,kBAAkB,EAAE;YAChF,gBAAgB;SACjB,CAAC;QAEF,IAAI,eAAe,EAAE,CAAC;YACpB,OAAO,CACL,KAAC,YAAY,OAAK,gBAAgB,YAChC,KAAC,eAAe,cACd,KAAC,mCAAmC,IAAC,OAAO,EAAE,OAAO,GAAI,GACzC,GACL,CAChB,CAAC;QACJ,CAAC;QACD,OAAO,CACL,KAAC,YAAY,OAAK,gBAAgB,YAChC,KAAC,eAAe,cACd,KAAC,sBAAsB,IAAC,OAAO,EAAE,OAAO,GAAI,GAC5B,GACL,CAChB,CAAC;IACJ,CAAC;IAED,OAAO,KAAC,sBAAsB,IAAC,OAAO,EAAE,OAAO,GAAI,CAAC;AACtD,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"LegendQueryWebApplication.js","sourceRoot":"","sources":["../../src/components/LegendQueryWebApplication.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,EAC3B,KAAK,EACL,MAAM,GACP,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC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oot":"","sources":["../../../src/components/cube/LegendQueryCubePage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAIvC,CAAC"}
1
+ {"version":3,"file":"LegendQueryCubePage.d.ts","sourceRoot":"","sources":["../../../src/components/cube/LegendQueryCubePage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,iFAAiF;AACjF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAavC,CAAC"}
@@ -15,13 +15,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
15
15
  * limitations under the License.
16
16
  */
17
17
  import { CubeEditor } from '@finos/legend-cube-builder';
18
- import { useState } from 'react';
18
+ import { useEffect, useState } from 'react';
19
+ import { readLegendQueryCubeEntry, stripLegendQueryCubeEntry, } from '../../stores/cube/LegendQueryCubeEntry.js';
19
20
  import { LegendQueryCubeHost } from '../../stores/cube/LegendQueryCubeHost.js';
20
21
  import { useLegendQueryApplicationStore } from '../LegendQueryFrameworkProvider.js';
21
22
  /** The Cube page in Legend Query, with a host that lasts as long as the visit */
22
23
  export const LegendQueryCubePage = () => {
23
24
  const applicationStore = useLegendQueryApplicationStore();
24
25
  const [host] = useState(() => new LegendQueryCubeHost(applicationStore));
25
- return _jsx(CubeEditor, { host: host });
26
+ // read once, as the page opens; the address loses it once shown
27
+ const [initialSource] = useState(() => readLegendQueryCubeEntry(applicationStore.navigationService.navigator));
28
+ useEffect(() => stripLegendQueryCubeEntry(applicationStore.navigationService.navigator), [applicationStore]);
29
+ return _jsx(CubeEditor, { host: host, initialSource: initialSource });
26
30
  };
27
31
  //# sourceMappingURL=LegendQueryCubePage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryCubePage.js","sourceRoot":"","sources":["../../../src/components/cube/LegendQueryCubePage.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE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gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,CACvE,CAAC;IACF,SAAS,CACP,GAAG,EAAE,CACH,yBAAyB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,SAAS,CAAC,EACzE,CAAC,gBAAgB,CAAC,CACnB,CAAC;IACF,OAAO,KAAC,UAAU,IAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,GAAI,CAAC;AAClE,CAAC,CAAC"}
package/lib/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-query v13.8.60
1
+ /** @license @finos/legend-application-query v13.8.62
2
2
  * Copyright (c) 2020-present, Goldman Sachs
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
- /** @license @finos/legend-application-query v13.8.60
1
+ /** @license @finos/legend-application-query v13.8.62
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-application-query",
3
- "version": "13.8.60",
3
+ "version": "13.8.62",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -55,6 +55,7 @@
55
55
  "@finos/legend-query-builder": "workspace:*",
56
56
  "@finos/legend-server-depot": "workspace:*",
57
57
  "@finos/legend-server-lakehouse": "workspace:*",
58
+ "@finos/legend-server-marketplace": "workspace:*",
58
59
  "@finos/legend-shared": "workspace:*",
59
60
  "@finos/legend-storage": "workspace:*",
60
61
  "@testing-library/dom": "10.4.0",
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright (c) 2026-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import type { NavigationService } from '@finos/legend-application';
17
+ import type { CubeEntrySource } from '@finos/legend-cube-builder';
18
+ /** The Cube page's address parameters (spec §17.15) */
19
+ export declare enum LEGEND_QUERY_CUBE_PARAMETER {
20
+ SOURCE_TYPE = "sourceType",
21
+ SOURCE_ID = "sourceId",
22
+ QUERY_ID = "queryId"
23
+ }
24
+ /**
25
+ * The source a link asks the Cube page to start with (spec §17.15,
26
+ * QUESTIONS.md U9): `?sourceType=…&sourceId=…`. A saved query (`?queryId=`)
27
+ * wins; it opens once Cube saves queries (M8). Reads only: the page takes
28
+ * the parameters out of the address once it is shown
29
+ * (`stripLegendQueryCubeEntry`).
30
+ */
31
+ export declare const readLegendQueryCubeEntry: (navigator: NavigationService["navigator"]) => CubeEntrySource | undefined;
32
+ /**
33
+ * Takes a link's source out of the address, whether or not it resolves,
34
+ * keeping the address's other parameters and its hash, a saved query's id
35
+ * among them (U9: the address then names the cube shown)
36
+ */
37
+ export declare const stripLegendQueryCubeEntry: (navigator: NavigationService["navigator"]) => void;
38
+ //# sourceMappingURL=LegendQueryCubeEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendQueryCubeEntry.d.ts","sourceRoot":"","sources":["../../../src/stores/cube/LegendQueryCubeEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE,uDAAuD;AACvD,oBAAY,2BAA2B;IACrC,WAAW,eAAe;IAC1B,SAAS,aAAa;IACtB,QAAQ,YAAY;CACrB;AAOD;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,GACnC,WAAW,iBAAiB,CAAC,WAAW,CAAC,KACxC,eAAe,GAAG,SASpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,GACpC,WAAW,iBAAiB,CAAC,WAAW,CAAC,KACxC,IAeF,CAAC"}
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Copyright (c) 2026-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /** The Cube page's address parameters (spec §17.15) */
17
+ export var LEGEND_QUERY_CUBE_PARAMETER;
18
+ (function (LEGEND_QUERY_CUBE_PARAMETER) {
19
+ LEGEND_QUERY_CUBE_PARAMETER["SOURCE_TYPE"] = "sourceType";
20
+ LEGEND_QUERY_CUBE_PARAMETER["SOURCE_ID"] = "sourceId";
21
+ LEGEND_QUERY_CUBE_PARAMETER["QUERY_ID"] = "queryId";
22
+ })(LEGEND_QUERY_CUBE_PARAMETER || (LEGEND_QUERY_CUBE_PARAMETER = {}));
23
+ /** The page's address parameters, each decoded once, as a link writes them */
24
+ const readParameters = (navigator) => new URL(navigator.getCurrentAddress()).searchParams;
25
+ /**
26
+ * The source a link asks the Cube page to start with (spec §17.15,
27
+ * QUESTIONS.md U9): `?sourceType=…&sourceId=…`. A saved query (`?queryId=`)
28
+ * wins; it opens once Cube saves queries (M8). Reads only: the page takes
29
+ * the parameters out of the address once it is shown
30
+ * (`stripLegendQueryCubeEntry`).
31
+ */
32
+ export const readLegendQueryCubeEntry = (navigator) => {
33
+ const parameters = readParameters(navigator);
34
+ const sourceType = parameters.get(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_TYPE);
35
+ const sourceId = parameters.get(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_ID);
36
+ return !parameters.has(LEGEND_QUERY_CUBE_PARAMETER.QUERY_ID) &&
37
+ sourceType &&
38
+ sourceId
39
+ ? { sourceType, sourceId }
40
+ : undefined;
41
+ };
42
+ /**
43
+ * Takes a link's source out of the address, whether or not it resolves,
44
+ * keeping the address's other parameters and its hash, a saved query's id
45
+ * among them (U9: the address then names the cube shown)
46
+ */
47
+ export const stripLegendQueryCubeEntry = (navigator) => {
48
+ const parameters = readParameters(navigator);
49
+ if (!parameters.has(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_TYPE) &&
50
+ !parameters.has(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_ID)) {
51
+ return;
52
+ }
53
+ // only the source's parameters: the rest, a saved query's id included, stay
54
+ parameters.delete(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_TYPE);
55
+ parameters.delete(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_ID);
56
+ const rest = parameters.toString();
57
+ navigator.updateCurrentLocation(`${navigator.getCurrentLocation()}${rest ? `?${rest}` : ''}${new URL(navigator.getCurrentAddress()).hash}`);
58
+ };
59
+ //# sourceMappingURL=LegendQueryCubeEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LegendQueryCubeEntry.js","sourceRoot":"","sources":["../../../src/stores/cube/LegendQueryCubeEntry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,uDAAuD;AACvD,MAAM,CAAN,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACrC,yDAA0B,CAAA;IAC1B,qDAAsB,CAAA;IACtB,mDAAoB,CAAA;AACtB,CAAC,EAJW,2BAA2B,KAA3B,2BAA2B,QAItC;AAED,8EAA8E;AAC9E,MAAM,cAAc,GAAG,CACrB,SAAyC,EACxB,EAAE,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC,CAA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,CAAC,CAAC"}
@@ -13,20 +13,41 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type CubeEngine, type CubeEngineConfig, type CubeHost, LocalModelCatalog } from '@finos/legend-cube-builder';
16
+ import { CubeEngineClientSettings, type CubeConnectionExplorer, type CubeDataProductCatalog, type CubeEngine, type CubeIngestCatalog, type CubeLakehouseServices, type CubeProjectCatalog, type CubeServiceCatalog, type CubeEngineConfig, type CubeHost, LocalModelCatalog } from '@finos/legend-cube-builder';
17
17
  import type { LegendQueryApplicationConfig } from '../../application/LegendQueryApplicationConfig.js';
18
18
  import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
19
19
  /** Cube talks to the engine Query's own editor uses, configured the same way */
20
20
  export declare const buildLegendQueryCubeEngineConfig: (config: LegendQueryApplicationConfig) => CubeEngineConfig;
21
+ /**
22
+ * What Cube needs to read and run data products (PLAN §6.8), with Query's
23
+ * lakehouse and depot, configured as Query's own: none when Query has no
24
+ * lakehouse, so an open-source deployment without one offers no data
25
+ * products. With a marketplace server too, its search is used
26
+ */
27
+ export declare const buildLegendQueryCubeLakehouseServices: (applicationStore: LegendQueryApplicationStore) => CubeLakehouseServices | undefined;
28
+ /** The published projects in Query's depot, or none without a depot */
29
+ export declare const buildLegendQueryCubeProjectCatalog: (applicationStore: LegendQueryApplicationStore) => CubeProjectCatalog | undefined;
21
30
  /**
22
31
  * Legend Query as the host of the Cube page (PLAN §3.5): Query's engine and
23
- * application store, and the bundled models. One per visit to the page.
32
+ * application store, the bundled models, direct database connections read
33
+ * through Query's engine, and, when Query has a lakehouse, its deployed data
34
+ * products (PLAN §6.8). One per visit to the page.
24
35
  */
25
36
  export declare class LegendQueryCubeHost implements CubeHost {
26
37
  readonly applicationStore: LegendQueryApplicationStore;
27
38
  readonly engine: CubeEngine;
28
39
  readonly modelCatalog: LocalModelCatalog;
29
- /** Tests give an engine; otherwise it is built from Query's config */
30
- constructor(applicationStore: LegendQueryApplicationStore, engine?: CubeEngine);
40
+ readonly connectionExplorer: CubeConnectionExplorer;
41
+ readonly dataProductCatalog: CubeDataProductCatalog | undefined;
42
+ readonly ingestCatalog: CubeIngestCatalog | undefined;
43
+ readonly projectCatalog: CubeProjectCatalog | undefined;
44
+ readonly serviceCatalog: CubeServiceCatalog;
45
+ /** The engine URL and compression Cube's engine clients share, which Dev Settings changes */
46
+ readonly engineClientSettings: CubeEngineClientSettings;
47
+ /**
48
+ * Tests give an engine, an explorer and a project catalog; otherwise each
49
+ * is built from Query's config
50
+ */
51
+ constructor(applicationStore: LegendQueryApplicationStore, engine?: CubeEngine, connectionExplorer?: CubeConnectionExplorer, projectCatalog?: CubeProjectCatalog);
31
52
  }
32
53
  //# sourceMappingURL=LegendQueryCubeHost.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryCubeHost.d.ts","sourceRoot":"","sources":["../../../src/stores/cube/LegendQueryCubeHost.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,QAAQ,EACb,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACtG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAE9E,gFAAgF;AAChF,eAAO,MAAM,gCAAgC,GAC3C,QAAQ,4BAA4B,KACnC,gBAMD,CAAC;AAEH;;;GAGG;AACH,qBAAa,mBAAoB,YAAW,QAAQ;IAClD,QAAQ,CAAC,gBAAgB,EAAE,2BAA2B,CAAC;IACvD,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IAEzC,sEAAsE;gBAEpE,gBAAgB,EAAE,2BAA2B,EAC7C,MAAM,CAAC,EAAE,UAAU;CAWtB"}
1
+ {"version":3,"file":"LegendQuery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7F,QAAQ,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;IAExD;;;OAGG;gBAED,gBAAgB,EAAE,2BAA2B,EAC7C,MAAM,CAAC,EAAE,UAAU,EACnB,kBAAkB,CAAC,EAAE,sBAAsB,EAC3C,cAAc,CAAC,EAAE,kBAAkB;CAiDtC"}
@@ -13,7 +13,12 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { buildCubeEngine, LocalModelCatalog, } from '@finos/legend-cube-builder';
16
+ import { buildCubeConnectionExplorer, buildCubeDataProductCatalog, buildCubeEngine, buildCubeIngestCatalog, buildCubeLakehouseEnvironment, buildCubeProjectCatalog, buildCubeServiceCatalog, CubeDataProductEnvironmentType, CubeEngineClientSettings, getCubeRememberedWarehouse, LocalModelCatalog, } from '@finos/legend-cube-builder';
17
+ import { DepotServerClient } from '@finos/legend-server-depot';
18
+ import { LakehouseContractServerClient, LakehouseIngestServerClient, LakehousePlatformServerClient, } from '@finos/legend-server-lakehouse';
19
+ import { MarketplaceServerClient } from '@finos/legend-server-marketplace';
20
+ import { EXTERNAL_APPLICATION_NAVIGATION__generateMarketplaceDataProductUrl } from '../../__lib__/LegendQueryNavigation.js';
21
+ import { LegendQueryUserDataHelper } from '../../__lib__/LegendQueryUserDataHelper.js';
17
22
  /** Cube talks to the engine Query's own editor uses, configured the same way */
18
23
  export const buildLegendQueryCubeEngineConfig = (config) => ({
19
24
  baseUrl: config.engineServerUrl,
@@ -22,21 +27,140 @@ export const buildLegendQueryCubeEngineConfig = (config) => ({
22
27
  enableCompression: true,
23
28
  useCookieAuthOnly: config.engineUseCookieAuthOnly,
24
29
  });
30
+ /**
31
+ * What Cube needs to read and run data products (PLAN §6.8), with Query's
32
+ * lakehouse and depot, configured as Query's own: none when Query has no
33
+ * lakehouse, so an open-source deployment without one offers no data
34
+ * products. With a marketplace server too, its search is used
35
+ */
36
+ export const buildLegendQueryCubeLakehouseServices = (applicationStore) => {
37
+ const { config, tracerService } = applicationStore;
38
+ if (!config.lakehouseContractUrl || !config.depotServerUrl) {
39
+ return undefined;
40
+ }
41
+ const contractServerClient = new LakehouseContractServerClient({
42
+ baseUrl: config.lakehouseContractUrl,
43
+ });
44
+ contractServerClient.setTracerService(tracerService);
45
+ const depotServerClient = new DepotServerClient({
46
+ serverUrl: config.depotServerUrl,
47
+ });
48
+ depotServerClient.setTracerService(tracerService);
49
+ let marketplaceServerClient;
50
+ if (config.marketplaceServerUrl) {
51
+ marketplaceServerClient = new MarketplaceServerClient({
52
+ serverUrl: config.marketplaceServerUrl,
53
+ // the client only stores it, never reading it, and Cube calls no subscription route
54
+ subscriptionUrl: '',
55
+ });
56
+ marketplaceServerClient.setTracerService(tracerService);
57
+ }
58
+ // ingest data sets need the platform, which names the ingest servers; the
59
+ // ingest client has no server of its own: each call names one
60
+ let platformServerClient;
61
+ let ingestServerClient;
62
+ if (config.lakehousePlatformUrl) {
63
+ platformServerClient = new LakehousePlatformServerClient(config.lakehousePlatformUrl);
64
+ platformServerClient.setTracerService(tracerService);
65
+ ingestServerClient = new LakehouseIngestServerClient(undefined);
66
+ ingestServerClient.setTracerService(tracerService);
67
+ }
68
+ return {
69
+ platformServerClient,
70
+ ingestServerClient,
71
+ contractServerClient,
72
+ depotServerClient,
73
+ marketplaceServerClient,
74
+ getAccessToken: () => applicationStore.getAccessToken(),
75
+ getCurrentUser: () => applicationStore.identityService.currentUser,
76
+ // the environment Query remembers for the viewer, as Query's editor uses it
77
+ getPreferredEnvironment: () => LegendQueryUserDataHelper.getLakehouseUserInfo(applicationStore.userDataService)?.env,
78
+ // the stereotype Studio and Marketplace mark groups open to everyone with
79
+ enterpriseStereotype: config.options.dataProductConfig?.publicStereotype
80
+ ? {
81
+ profile: config.options.dataProductConfig.publicStereotype.profile,
82
+ value: config.options.dataProductConfig.publicStereotype.stereotype,
83
+ }
84
+ : undefined,
85
+ // the marketplace of the deployment's class, where its deployment is;
86
+ // Query's own links choose by a SNAPSHOT version instead
87
+ getMarketplaceLink: (target) => {
88
+ const marketplaceUrl = target.environmentType ===
89
+ CubeDataProductEnvironmentType.PRODUCTION_PARALLEL
90
+ ? config.marketplaceProductionParallelUrl
91
+ : config.marketplaceApplicationUrl;
92
+ return marketplaceUrl
93
+ ? EXTERNAL_APPLICATION_NAVIGATION__generateMarketplaceDataProductUrl(marketplaceUrl, target.dataProductId, target.deploymentId, target.accessPointGroup)
94
+ : undefined;
95
+ },
96
+ };
97
+ };
98
+ /** The published projects in Query's depot, or none without a depot */
99
+ export const buildLegendQueryCubeProjectCatalog = (applicationStore) => {
100
+ const { config, tracerService } = applicationStore;
101
+ if (!config.depotServerUrl) {
102
+ return undefined;
103
+ }
104
+ const depotServerClient = new DepotServerClient({
105
+ serverUrl: config.depotServerUrl,
106
+ });
107
+ depotServerClient.setTracerService(tracerService);
108
+ return buildCubeProjectCatalog(depotServerClient);
109
+ };
25
110
  /**
26
111
  * Legend Query as the host of the Cube page (PLAN §3.5): Query's engine and
27
- * application store, and the bundled models. One per visit to the page.
112
+ * application store, the bundled models, direct database connections read
113
+ * through Query's engine, and, when Query has a lakehouse, its deployed data
114
+ * products (PLAN §6.8). One per visit to the page.
28
115
  */
29
116
  export class LegendQueryCubeHost {
30
117
  applicationStore;
31
118
  engine;
32
119
  modelCatalog;
33
- /** Tests give an engine; otherwise it is built from Query's config */
34
- constructor(applicationStore, engine) {
120
+ connectionExplorer;
121
+ dataProductCatalog;
122
+ ingestCatalog;
123
+ projectCatalog;
124
+ serviceCatalog;
125
+ /** The engine URL and compression Cube's engine clients share, which Dev Settings changes */
126
+ engineClientSettings;
127
+ /**
128
+ * Tests give an engine, an explorer and a project catalog; otherwise each
129
+ * is built from Query's config
130
+ */
131
+ constructor(applicationStore, engine, connectionExplorer, projectCatalog) {
35
132
  this.applicationStore = applicationStore;
133
+ const config = buildLegendQueryCubeEngineConfig(applicationStore.config);
134
+ this.engineClientSettings = new CubeEngineClientSettings(config);
135
+ const lakehouse = buildLegendQueryCubeLakehouseServices(applicationStore);
136
+ this.ingestCatalog = lakehouse
137
+ ? buildCubeIngestCatalog(config, applicationStore.tracerService, lakehouse, this.engineClientSettings)
138
+ : undefined;
36
139
  this.engine =
37
140
  engine ??
38
- buildCubeEngine(buildLegendQueryCubeEngineConfig(applicationStore.config), applicationStore.tracerService);
141
+ buildCubeEngine(config, applicationStore.tracerService, {
142
+ ingestCatalog: this.ingestCatalog,
143
+ lakehouseEnvironment: lakehouse
144
+ ? buildCubeLakehouseEnvironment(lakehouse)
145
+ : undefined,
146
+ getRememberedWarehouse: () => getCubeRememberedWarehouse(applicationStore.userDataService),
147
+ clientSettings: this.engineClientSettings,
148
+ });
149
+ this.dataProductCatalog = lakehouse
150
+ ? buildCubeDataProductCatalog(lakehouse)
151
+ : undefined;
39
152
  this.modelCatalog = new LocalModelCatalog(this.engine);
153
+ // its own client, configured as the engine's
154
+ this.connectionExplorer =
155
+ connectionExplorer ??
156
+ buildCubeConnectionExplorer(config, applicationStore.tracerService, this.engineClientSettings);
157
+ // the published projects in Query's depot (PLAN §6.3); it reads nothing
158
+ // until the source dialog's Project tab opens
159
+ this.projectCatalog =
160
+ projectCatalog ?? buildLegendQueryCubeProjectCatalog(applicationStore);
161
+ // the services in the registry of Query's engine (PLAN §6.4), in
162
+ // progress; it reads nothing until the source dialog's Service tab opens
163
+ this.serviceCatalog = buildCubeServiceCatalog(config, applicationStore.tracerService, this.engineClientSettings);
40
164
  }
41
165
  }
42
166
  //# sourceMappingURL=LegendQueryCubeHost.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendQueryCubeHost.js","sourceRoot":"","sources":["../../../src/stores/cube/LegendQueryCubeHost.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,eAAe,EAIf,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAIpC,gFAAgF;AAChF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAC9C,MAAoC,EAClB,EAAE,CAAC,CAAC;IACtB,OA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a,EAC9B,SAAS,EACT,IAAI,CAAC,oBAAoB,CAC1B;YACH,CAAC,CAAC,SAAS,CAAC;QACd,IAAI,CAAC,MAAM;YACT,MAAM;gBACN,eAAe,CAAC,MAAM,EAAE,gBAAgB,CAAC,aAAa,EAAE;oBACtD,aAAa,EAAE,IAAI,CAAC,aAAa;oBACjC,oBAAoB,EAAE,SAAS;wBAC7B,CAAC,CAAC,6BAA6B,CAAC,SAAS,CAAC;wBAC1C,CAAC,CAAC,SAAS;oBACb,sBAAsB,EAAE,GAAG,EAAE,CAC3B,0BAA0B,CAAC,gBAAgB,CAAC,eAAe,CAAC;oBAC9D,cAAc,EAAE,IAAI,CAAC,oBAAoB;iBAC1C,CAAC,CAAC;QACL,IAAI,CAAC,kBAAkB,GAAG,SAAS;YACjC,CAAC,CAAC,2BAA2B,CAAC,SAAS,CAAC;YACxC,CAAC,CAAC,SAAS,CAAC;QACd,IAAI,CAAC,YAAY,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvD,6CAA6C;QAC7C,IAAI,CAAC,kBAAkB;YACrB,kBAAkB;gBAClB,2BAA2B,CACzB,MAAM,EACN,gBAAgB,CAAC,aAAa,EAC9B,IAAI,CAAC,oBAAoB,CAC1B,CAAC;QACJ,wEAAwE;QACxE,8CAA8C;QAC9C,IAAI,CAAC,cAAc;YACjB,cAAc,IAAI,kCAAkC,CAAC,gBAAgB,CAAC,CAAC;QACzE,iEAAiE;QACjE,yEAAyE;QACzE,IAAI,CAAC,cAAc,GAAG,uBAAuB,CAC3C,MAAM,EACN,gBAAgB,CAAC,aAAa,EAC9B,IAAI,CAAC,oBAAoB,CAC1B,CAAC;IACJ,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finos/legend-application-query",
3
- "version": "13.8.60",
3
+ "version": "13.8.62",
4
4
  "description": "Legend Query application core",
5
5
  "keywords": [
6
6
  "legend",
@@ -44,17 +44,18 @@
44
44
  "test:watch": "jest --watch"
45
45
  },
46
46
  "dependencies": {
47
- "@finos/legend-application": "16.0.127",
48
- "@finos/legend-art": "7.1.167",
49
- "@finos/legend-code-editor": "2.0.209",
50
- "@finos/legend-cube-builder": "0.0.3",
51
- "@finos/legend-data-cube": "0.3.127",
52
- "@finos/legend-extension-dsl-data-space": "10.4.262",
53
- "@finos/legend-graph": "32.7.5",
54
- "@finos/legend-lego": "2.0.229",
55
- "@finos/legend-query-builder": "4.19.18",
47
+ "@finos/legend-application": "16.0.129",
48
+ "@finos/legend-art": "7.1.169",
49
+ "@finos/legend-code-editor": "2.0.211",
50
+ "@finos/legend-cube-builder": "0.0.5",
51
+ "@finos/legend-data-cube": "0.3.129",
52
+ "@finos/legend-extension-dsl-data-space": "10.4.264",
53
+ "@finos/legend-graph": "32.8.0",
54
+ "@finos/legend-lego": "2.0.231",
55
+ "@finos/legend-query-builder": "4.19.20",
56
56
  "@finos/legend-server-depot": "6.1.24",
57
- "@finos/legend-server-lakehouse": "0.3.89",
57
+ "@finos/legend-server-lakehouse": "0.4.0",
58
+ "@finos/legend-server-marketplace": "0.2.18",
58
59
  "@finos/legend-shared": "11.0.32",
59
60
  "@finos/legend-storage": "3.0.154",
60
61
  "@testing-library/dom": "10.4.0",
@@ -26,6 +26,7 @@ import {
26
26
  LegendApplicationConfig,
27
27
  type LegendApplicationConfigurationInput,
28
28
  type LegendApplicationConfigurationData,
29
+ StereotypeConfig,
29
30
  } from '@finos/legend-application';
30
31
  import {
31
32
  createModelSchema,
@@ -68,6 +69,23 @@ export class ServiceRegistrationEnvironmentConfig {
68
69
  );
69
70
  }
70
71
 
72
+ /**
73
+ * Data products, as Legend Studio and Legend Marketplace configure them:
74
+ * Query reads only the stereotype that marks access point groups open to
75
+ * everyone in the organization, which Legend Cube's access badges use
76
+ */
77
+ export class LegendQueryDataProductConfig {
78
+ publicStereotype: StereotypeConfig | undefined;
79
+
80
+ static readonly serialization = new SerializationFactory(
81
+ createModelSchema(LegendQueryDataProductConfig, {
82
+ publicStereotype: optional(
83
+ usingModelSchema(StereotypeConfig.serialization.schema),
84
+ ),
85
+ }),
86
+ );
87
+ }
88
+
71
89
  class LegendQueryApplicationCoreOptions {
72
90
  /**
73
91
  * Provides service registration environment configs.
@@ -108,6 +126,9 @@ class LegendQueryApplicationCoreOptions {
108
126
  */
109
127
  enableOauthFlow = false;
110
128
 
129
+ /** Data products, as Studio and Marketplace configure them (`options.dataProductConfig`) */
130
+ dataProductConfig: LegendQueryDataProductConfig | undefined;
131
+
111
132
  private static readonly serialization = new SerializationFactory(
112
133
  createModelSchema(LegendQueryApplicationCoreOptions, {
113
134
  TEMPORARY__serviceRegistrationConfig: list(
@@ -122,6 +143,9 @@ class LegendQueryApplicationCoreOptions {
122
143
  usingModelSchema(LegendQueryOIDCConfiguration.serialization.schema),
123
144
  ),
124
145
  enableOauthFlow: optional(primitive()),
146
+ dataProductConfig: optional(
147
+ usingModelSchema(LegendQueryDataProductConfig.serialization.schema),
148
+ ),
125
149
  }),
126
150
  );
127
151
 
@@ -158,9 +182,19 @@ export interface LegendQueryApplicationConfigurationData
158
182
  marketplace?: {
159
183
  url: string;
160
184
  productionParallelUrl: string;
185
+ /**
186
+ * The marketplace server, whose search Legend Cube's data product tab
187
+ * uses: the URL Legend Marketplace's own config names `marketplace.url`
188
+ */
189
+ serverUrl?: string;
161
190
  };
162
191
  lakehouse?: {
163
192
  url: string;
193
+ /**
194
+ * The lakehouse platform, which names the ingest servers: Legend Cube's
195
+ * ingest data sets need it, as Data Cube's and Marketplace's do
196
+ */
197
+ platformUrl?: string;
164
198
  };
165
199
  legendAI?: {
166
200
  url?: string;
@@ -180,7 +214,9 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
180
214
  readonly dataCubeApplicationUrl?: string;
181
215
  readonly marketplaceApplicationUrl?: string;
182
216
  readonly marketplaceProductionParallelUrl?: string;
217
+ readonly marketplaceServerUrl?: string;
183
218
  readonly lakehouseContractUrl?: string;
219
+ readonly lakehousePlatformUrl?: string;
184
220
  readonly legendAIUrl?: string;
185
221
  readonly legendAIAgentUrl?: string;
186
222
  readonly studioInstances: LegendStudioApplicationInstanceConfigurationData[] =
@@ -260,6 +296,11 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
260
296
  input.configData.marketplace.productionParallelUrl,
261
297
  );
262
298
  }
299
+ if (input.configData.marketplace?.serverUrl) {
300
+ this.marketplaceServerUrl = LegendApplicationConfig.resolveAbsoluteUrl(
301
+ input.configData.marketplace.serverUrl,
302
+ );
303
+ }
263
304
 
264
305
  // lakehouse
265
306
  if (input.configData.lakehouse?.url) {
@@ -267,6 +308,11 @@ export class LegendQueryApplicationConfig extends LegendApplicationConfig {
267
308
  input.configData.lakehouse.url,
268
309
  );
269
310
  }
311
+ if (input.configData.lakehouse?.platformUrl) {
312
+ this.lakehousePlatformUrl = LegendApplicationConfig.resolveAbsoluteUrl(
313
+ input.configData.lakehouse.platformUrl,
314
+ );
315
+ }
270
316
 
271
317
  // legend AI (AI-assisted features such as query title/description suggester)
272
318
  if (input.configData.legendAI?.url) {
@@ -138,10 +138,18 @@ const LegendQueryWebApplicationRouter = observer(() => {
138
138
  element={<DataSpaceArtifactInspector />}
139
139
  />
140
140
 
141
- <Route
142
- path={LEGEND_QUERY_ROUTE_PATTERN.CUBE}
143
- element={<LegendQueryCubeRoute />}
144
- />
141
+ {/*
142
+ Legend Cube is a proof of concept: it is only mounted where the
143
+ config turns on non-production features
144
+ (`extensions.core.NonProductionFeatureFlag`), so production
145
+ deployments don't show it yet.
146
+ */}
147
+ {applicationStore.config.options.NonProductionFeatureFlag && (
148
+ <Route
149
+ path={LEGEND_QUERY_ROUTE_PATTERN.CUBE}
150
+ element={<LegendQueryCubeRoute />}
151
+ />
152
+ )}
145
153
 
146
154
  {/* LEGACY DATA SPACE */}
147
155
  <Route
@@ -15,7 +15,11 @@
15
15
  */
16
16
 
17
17
  import { CubeEditor } from '@finos/legend-cube-builder';
18
- import { useState } from 'react';
18
+ import { useEffect, useState } from 'react';
19
+ import {
20
+ readLegendQueryCubeEntry,
21
+ stripLegendQueryCubeEntry,
22
+ } from '../../stores/cube/LegendQueryCubeEntry.js';
19
23
  import { LegendQueryCubeHost } from '../../stores/cube/LegendQueryCubeHost.js';
20
24
  import { useLegendQueryApplicationStore } from '../LegendQueryFrameworkProvider.js';
21
25
 
@@ -23,5 +27,14 @@ import { useLegendQueryApplicationStore } from '../LegendQueryFrameworkProvider.
23
27
  export const LegendQueryCubePage: React.FC = () => {
24
28
  const applicationStore = useLegendQueryApplicationStore();
25
29
  const [host] = useState(() => new LegendQueryCubeHost(applicationStore));
26
- return <CubeEditor host={host} />;
30
+ // read once, as the page opens; the address loses it once shown
31
+ const [initialSource] = useState(() =>
32
+ readLegendQueryCubeEntry(applicationStore.navigationService.navigator),
33
+ );
34
+ useEffect(
35
+ () =>
36
+ stripLegendQueryCubeEntry(applicationStore.navigationService.navigator),
37
+ [applicationStore],
38
+ );
39
+ return <CubeEditor host={host} initialSource={initialSource} />;
27
40
  };
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Copyright (c) 2026-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ import type { NavigationService } from '@finos/legend-application';
18
+ import type { CubeEntrySource } from '@finos/legend-cube-builder';
19
+
20
+ /** The Cube page's address parameters (spec §17.15) */
21
+ export enum LEGEND_QUERY_CUBE_PARAMETER {
22
+ SOURCE_TYPE = 'sourceType',
23
+ SOURCE_ID = 'sourceId',
24
+ QUERY_ID = 'queryId',
25
+ }
26
+
27
+ /** The page's address parameters, each decoded once, as a link writes them */
28
+ const readParameters = (
29
+ navigator: NavigationService['navigator'],
30
+ ): URLSearchParams => new URL(navigator.getCurrentAddress()).searchParams;
31
+
32
+ /**
33
+ * The source a link asks the Cube page to start with (spec §17.15,
34
+ * QUESTIONS.md U9): `?sourceType=…&sourceId=…`. A saved query (`?queryId=`)
35
+ * wins; it opens once Cube saves queries (M8). Reads only: the page takes
36
+ * the parameters out of the address once it is shown
37
+ * (`stripLegendQueryCubeEntry`).
38
+ */
39
+ export const readLegendQueryCubeEntry = (
40
+ navigator: NavigationService['navigator'],
41
+ ): CubeEntrySource | undefined => {
42
+ const parameters = readParameters(navigator);
43
+ const sourceType = parameters.get(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_TYPE);
44
+ const sourceId = parameters.get(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_ID);
45
+ return !parameters.has(LEGEND_QUERY_CUBE_PARAMETER.QUERY_ID) &&
46
+ sourceType &&
47
+ sourceId
48
+ ? { sourceType, sourceId }
49
+ : undefined;
50
+ };
51
+
52
+ /**
53
+ * Takes a link's source out of the address, whether or not it resolves,
54
+ * keeping the address's other parameters and its hash, a saved query's id
55
+ * among them (U9: the address then names the cube shown)
56
+ */
57
+ export const stripLegendQueryCubeEntry = (
58
+ navigator: NavigationService['navigator'],
59
+ ): void => {
60
+ const parameters = readParameters(navigator);
61
+ if (
62
+ !parameters.has(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_TYPE) &&
63
+ !parameters.has(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_ID)
64
+ ) {
65
+ return;
66
+ }
67
+ // only the source's parameters: the rest, a saved query's id included, stay
68
+ parameters.delete(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_TYPE);
69
+ parameters.delete(LEGEND_QUERY_CUBE_PARAMETER.SOURCE_ID);
70
+ const rest = parameters.toString();
71
+ navigator.updateCurrentLocation(
72
+ `${navigator.getCurrentLocation()}${rest ? `?${rest}` : ''}${new URL(navigator.getCurrentAddress()).hash}`,
73
+ );
74
+ };
@@ -15,12 +15,36 @@
15
15
  */
16
16
 
17
17
  import {
18
+ buildCubeConnectionExplorer,
19
+ buildCubeDataProductCatalog,
18
20
  buildCubeEngine,
21
+ buildCubeIngestCatalog,
22
+ buildCubeLakehouseEnvironment,
23
+ buildCubeProjectCatalog,
24
+ buildCubeServiceCatalog,
25
+ CubeDataProductEnvironmentType,
26
+ CubeEngineClientSettings,
27
+ getCubeRememberedWarehouse,
28
+ type CubeConnectionExplorer,
29
+ type CubeDataProductCatalog,
19
30
  type CubeEngine,
31
+ type CubeIngestCatalog,
32
+ type CubeLakehouseServices,
33
+ type CubeProjectCatalog,
34
+ type CubeServiceCatalog,
20
35
  type CubeEngineConfig,
21
36
  type CubeHost,
22
37
  LocalModelCatalog,
23
38
  } from '@finos/legend-cube-builder';
39
+ import { DepotServerClient } from '@finos/legend-server-depot';
40
+ import {
41
+ LakehouseContractServerClient,
42
+ LakehouseIngestServerClient,
43
+ LakehousePlatformServerClient,
44
+ } from '@finos/legend-server-lakehouse';
45
+ import { MarketplaceServerClient } from '@finos/legend-server-marketplace';
46
+ import { EXTERNAL_APPLICATION_NAVIGATION__generateMarketplaceDataProductUrl } from '../../__lib__/LegendQueryNavigation.js';
47
+ import { LegendQueryUserDataHelper } from '../../__lib__/LegendQueryUserDataHelper.js';
24
48
  import type { LegendQueryApplicationConfig } from '../../application/LegendQueryApplicationConfig.js';
25
49
  import type { LegendQueryApplicationStore } from '../LegendQueryBaseStore.js';
26
50
 
@@ -35,27 +59,176 @@ export const buildLegendQueryCubeEngineConfig = (
35
59
  useCookieAuthOnly: config.engineUseCookieAuthOnly,
36
60
  });
37
61
 
62
+ /**
63
+ * What Cube needs to read and run data products (PLAN §6.8), with Query's
64
+ * lakehouse and depot, configured as Query's own: none when Query has no
65
+ * lakehouse, so an open-source deployment without one offers no data
66
+ * products. With a marketplace server too, its search is used
67
+ */
68
+ export const buildLegendQueryCubeLakehouseServices = (
69
+ applicationStore: LegendQueryApplicationStore,
70
+ ): CubeLakehouseServices | undefined => {
71
+ const { config, tracerService } = applicationStore;
72
+ if (!config.lakehouseContractUrl || !config.depotServerUrl) {
73
+ return undefined;
74
+ }
75
+ const contractServerClient = new LakehouseContractServerClient({
76
+ baseUrl: config.lakehouseContractUrl,
77
+ });
78
+ contractServerClient.setTracerService(tracerService);
79
+ const depotServerClient = new DepotServerClient({
80
+ serverUrl: config.depotServerUrl,
81
+ });
82
+ depotServerClient.setTracerService(tracerService);
83
+ let marketplaceServerClient: MarketplaceServerClient | undefined;
84
+ if (config.marketplaceServerUrl) {
85
+ marketplaceServerClient = new MarketplaceServerClient({
86
+ serverUrl: config.marketplaceServerUrl,
87
+ // the client only stores it, never reading it, and Cube calls no subscription route
88
+ subscriptionUrl: '',
89
+ });
90
+ marketplaceServerClient.setTracerService(tracerService);
91
+ }
92
+ // ingest data sets need the platform, which names the ingest servers; the
93
+ // ingest client has no server of its own: each call names one
94
+ let platformServerClient: LakehousePlatformServerClient | undefined;
95
+ let ingestServerClient: LakehouseIngestServerClient | undefined;
96
+ if (config.lakehousePlatformUrl) {
97
+ platformServerClient = new LakehousePlatformServerClient(
98
+ config.lakehousePlatformUrl,
99
+ );
100
+ platformServerClient.setTracerService(tracerService);
101
+ ingestServerClient = new LakehouseIngestServerClient(undefined);
102
+ ingestServerClient.setTracerService(tracerService);
103
+ }
104
+ return {
105
+ platformServerClient,
106
+ ingestServerClient,
107
+ contractServerClient,
108
+ depotServerClient,
109
+ marketplaceServerClient,
110
+ getAccessToken: () => applicationStore.getAccessToken(),
111
+ getCurrentUser: () => applicationStore.identityService.currentUser,
112
+ // the environment Query remembers for the viewer, as Query's editor uses it
113
+ getPreferredEnvironment: () =>
114
+ LegendQueryUserDataHelper.getLakehouseUserInfo(
115
+ applicationStore.userDataService,
116
+ )?.env,
117
+ // the stereotype Studio and Marketplace mark groups open to everyone with
118
+ enterpriseStereotype: config.options.dataProductConfig?.publicStereotype
119
+ ? {
120
+ profile: config.options.dataProductConfig.publicStereotype.profile,
121
+ value: config.options.dataProductConfig.publicStereotype.stereotype,
122
+ }
123
+ : undefined,
124
+ // the marketplace of the deployment's class, where its deployment is;
125
+ // Query's own links choose by a SNAPSHOT version instead
126
+ getMarketplaceLink: (target) => {
127
+ const marketplaceUrl =
128
+ target.environmentType ===
129
+ CubeDataProductEnvironmentType.PRODUCTION_PARALLEL
130
+ ? config.marketplaceProductionParallelUrl
131
+ : config.marketplaceApplicationUrl;
132
+ return marketplaceUrl
133
+ ? EXTERNAL_APPLICATION_NAVIGATION__generateMarketplaceDataProductUrl(
134
+ marketplaceUrl,
135
+ target.dataProductId,
136
+ target.deploymentId,
137
+ target.accessPointGroup,
138
+ )
139
+ : undefined;
140
+ },
141
+ };
142
+ };
143
+
144
+ /** The published projects in Query's depot, or none without a depot */
145
+ export const buildLegendQueryCubeProjectCatalog = (
146
+ applicationStore: LegendQueryApplicationStore,
147
+ ): CubeProjectCatalog | undefined => {
148
+ const { config, tracerService } = applicationStore;
149
+ if (!config.depotServerUrl) {
150
+ return undefined;
151
+ }
152
+ const depotServerClient = new DepotServerClient({
153
+ serverUrl: config.depotServerUrl,
154
+ });
155
+ depotServerClient.setTracerService(tracerService);
156
+ return buildCubeProjectCatalog(depotServerClient);
157
+ };
158
+
38
159
  /**
39
160
  * Legend Query as the host of the Cube page (PLAN §3.5): Query's engine and
40
- * application store, and the bundled models. One per visit to the page.
161
+ * application store, the bundled models, direct database connections read
162
+ * through Query's engine, and, when Query has a lakehouse, its deployed data
163
+ * products (PLAN §6.8). One per visit to the page.
41
164
  */
42
165
  export class LegendQueryCubeHost implements CubeHost {
43
166
  readonly applicationStore: LegendQueryApplicationStore;
44
167
  readonly engine: CubeEngine;
45
168
  readonly modelCatalog: LocalModelCatalog;
169
+ readonly connectionExplorer: CubeConnectionExplorer;
170
+ readonly dataProductCatalog: CubeDataProductCatalog | undefined;
171
+ readonly ingestCatalog: CubeIngestCatalog | undefined;
172
+ readonly projectCatalog: CubeProjectCatalog | undefined;
173
+ readonly serviceCatalog: CubeServiceCatalog;
174
+ /** The engine URL and compression Cube's engine clients share, which Dev Settings changes */
175
+ readonly engineClientSettings: CubeEngineClientSettings;
46
176
 
47
- /** Tests give an engine; otherwise it is built from Query's config */
177
+ /**
178
+ * Tests give an engine, an explorer and a project catalog; otherwise each
179
+ * is built from Query's config
180
+ */
48
181
  constructor(
49
182
  applicationStore: LegendQueryApplicationStore,
50
183
  engine?: CubeEngine,
184
+ connectionExplorer?: CubeConnectionExplorer,
185
+ projectCatalog?: CubeProjectCatalog,
51
186
  ) {
52
187
  this.applicationStore = applicationStore;
188
+ const config = buildLegendQueryCubeEngineConfig(applicationStore.config);
189
+ this.engineClientSettings = new CubeEngineClientSettings(config);
190
+ const lakehouse = buildLegendQueryCubeLakehouseServices(applicationStore);
191
+ this.ingestCatalog = lakehouse
192
+ ? buildCubeIngestCatalog(
193
+ config,
194
+ applicationStore.tracerService,
195
+ lakehouse,
196
+ this.engineClientSettings,
197
+ )
198
+ : undefined;
53
199
  this.engine =
54
200
  engine ??
55
- buildCubeEngine(
56
- buildLegendQueryCubeEngineConfig(applicationStore.config),
201
+ buildCubeEngine(config, applicationStore.tracerService, {
202
+ ingestCatalog: this.ingestCatalog,
203
+ lakehouseEnvironment: lakehouse
204
+ ? buildCubeLakehouseEnvironment(lakehouse)
205
+ : undefined,
206
+ getRememberedWarehouse: () =>
207
+ getCubeRememberedWarehouse(applicationStore.userDataService),
208
+ clientSettings: this.engineClientSettings,
209
+ });
210
+ this.dataProductCatalog = lakehouse
211
+ ? buildCubeDataProductCatalog(lakehouse)
212
+ : undefined;
213
+ this.modelCatalog = new LocalModelCatalog(this.engine);
214
+ // its own client, configured as the engine's
215
+ this.connectionExplorer =
216
+ connectionExplorer ??
217
+ buildCubeConnectionExplorer(
218
+ config,
57
219
  applicationStore.tracerService,
220
+ this.engineClientSettings,
58
221
  );
59
- this.modelCatalog = new LocalModelCatalog(this.engine);
222
+ // the published projects in Query's depot (PLAN §6.3); it reads nothing
223
+ // until the source dialog's Project tab opens
224
+ this.projectCatalog =
225
+ projectCatalog ?? buildLegendQueryCubeProjectCatalog(applicationStore);
226
+ // the services in the registry of Query's engine (PLAN §6.4), in
227
+ // progress; it reads nothing until the source dialog's Service tab opens
228
+ this.serviceCatalog = buildCubeServiceCatalog(
229
+ config,
230
+ applicationStore.tracerService,
231
+ this.engineClientSettings,
232
+ );
60
233
  }
61
234
  }
package/tsconfig.json CHANGED
@@ -82,6 +82,7 @@
82
82
  "./src/stores/UpdateExistingServiceQuerySetupStore.ts",
83
83
  "./src/stores/__test-utils__/DataSpaceQueryBuilderStateTestUtils.ts",
84
84
  "./src/stores/__test-utils__/LegendQueryApplicationTestUtils.ts",
85
+ "./src/stores/cube/LegendQueryCubeEntry.ts",
85
86
  "./src/stores/cube/LegendQueryCubeHost.ts",
86
87
  "./src/stores/data-cube/ExistingQueryDataCubeViewer.ts",
87
88
  "./src/stores/data-product/query-builder/DataProductArtifactHelper.ts",