@finos/legend-application-marketplace 0.0.51 → 0.0.53

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 (57) hide show
  1. package/lib/application/LegendMarketplaceApplicationPlugin.d.ts +12 -0
  2. package/lib/application/LegendMarketplaceApplicationPlugin.d.ts.map +1 -1
  3. package/lib/application/LegendMarketplaceApplicationPlugin.js.map +1 -1
  4. package/lib/application/extensions/Core_LegendMarketplaceApplicationPlugin.d.ts +2 -1
  5. package/lib/application/extensions/Core_LegendMarketplaceApplicationPlugin.d.ts.map +1 -1
  6. package/lib/application/extensions/Core_LegendMarketplaceApplicationPlugin.js +77 -1
  7. package/lib/application/extensions/Core_LegendMarketplaceApplicationPlugin.js.map +1 -1
  8. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.d.ts +6 -0
  9. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.d.ts.map +1 -1
  10. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js +106 -0
  11. package/lib/components/__test-utils__/LegendMarketplaceStoreTestUtils.js.map +1 -1
  12. package/lib/components/__test-utils__/TEST_DATA__LakehouseData.d.ts +34 -0
  13. package/lib/components/__test-utils__/TEST_DATA__LakehouseData.d.ts.map +1 -0
  14. package/lib/components/__test-utils__/TEST_DATA__LakehouseData.js +268 -0
  15. package/lib/components/__test-utils__/TEST_DATA__LakehouseData.js.map +1 -0
  16. package/lib/index.css +2 -2
  17. package/lib/index.css.map +1 -1
  18. package/lib/index.d.ts +2 -1
  19. package/lib/index.d.ts.map +1 -1
  20. package/lib/index.js +1 -0
  21. package/lib/index.js.map +1 -1
  22. package/lib/package.json +1 -1
  23. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.d.ts.map +1 -1
  24. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js +1 -1
  25. package/lib/pages/Lakehouse/MarketplaceLakehouseHome.js.map +1 -1
  26. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.d.ts.map +1 -1
  27. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js +30 -52
  28. package/lib/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.js.map +1 -1
  29. package/lib/stores/lakehouse/DataProductViewerState.d.ts +2 -2
  30. package/lib/stores/lakehouse/DataProductViewerState.d.ts.map +1 -1
  31. package/lib/stores/lakehouse/DataProductViewerState.js +6 -14
  32. package/lib/stores/lakehouse/DataProductViewerState.js.map +1 -1
  33. package/lib/stores/lakehouse/MarketplaceLakehouseStore.d.ts.map +1 -1
  34. package/lib/stores/lakehouse/MarketplaceLakehouseStore.js +4 -2
  35. package/lib/stores/lakehouse/MarketplaceLakehouseStore.js.map +1 -1
  36. package/lib/stores/lakehouse/admin/LakehouseAdminStore.d.ts.map +1 -1
  37. package/lib/stores/lakehouse/admin/LakehouseAdminStore.js +1 -1
  38. package/lib/stores/lakehouse/admin/LakehouseAdminStore.js.map +1 -1
  39. package/lib/stores/lakehouse/dataProducts/DataProducts.js +1 -3
  40. package/lib/stores/lakehouse/dataProducts/DataProducts.js.map +1 -1
  41. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts.map +1 -1
  42. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js +1 -1
  43. package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js.map +1 -1
  44. package/package.json +12 -12
  45. package/src/application/LegendMarketplaceApplicationPlugin.ts +20 -0
  46. package/src/application/extensions/Core_LegendMarketplaceApplicationPlugin.tsx +181 -1
  47. package/src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx +203 -0
  48. package/src/components/__test-utils__/TEST_DATA__LakehouseData.ts +305 -0
  49. package/src/index.ts +5 -1
  50. package/src/pages/Lakehouse/MarketplaceLakehouseHome.tsx +1 -0
  51. package/src/pages/Lakehouse/entitlements/EntitlementsDataContractCreator.tsx +59 -89
  52. package/src/stores/lakehouse/DataProductViewerState.ts +19 -22
  53. package/src/stores/lakehouse/MarketplaceLakehouseStore.ts +11 -2
  54. package/src/stores/lakehouse/admin/LakehouseAdminStore.ts +4 -2
  55. package/src/stores/lakehouse/dataProducts/DataProducts.ts +3 -3
  56. package/src/stores/lakehouse/entitlements/EntitlementsDashboardState.ts +4 -2
  57. package/tsconfig.json +1 -0
@@ -15,6 +15,13 @@
15
15
  */
16
16
  import { LegendApplicationPlugin } from '@finos/legend-application';
17
17
  import type { LegendMarketplacePluginManager } from '../application/LegendMarketplacePluginManager.js';
18
+ import type { DataProductGroupAccessState } from '../stores/lakehouse/DataProductDataAccessState.js';
19
+ import type { V1_OrganizationalScope } from '@finos/legend-graph';
20
+ import type { LegendMarketplaceBaseStore } from '../stores/LegendMarketplaceBaseStore.js';
21
+ export type ContractConsumerTypeRendererConfig = {
22
+ type: string;
23
+ renderer: (marketplaceBaseStore: LegendMarketplaceBaseStore, accessGroupState: DataProductGroupAccessState, handleOrganizationalScopeChange: (consumer: V1_OrganizationalScope) => void, handleDescriptionChange: (description: string | undefined) => void, handleIsValidChange: (isValid: boolean) => void) => React.ReactNode;
24
+ };
18
25
  export declare abstract class LegendMarketplaceApplicationPlugin extends LegendApplicationPlugin {
19
26
  /**
20
27
  * This helps to better type-check for this empty abtract type
@@ -22,5 +29,10 @@ export declare abstract class LegendMarketplaceApplicationPlugin extends LegendA
22
29
  */
23
30
  private readonly _$nominalTypeBrand;
24
31
  install(pluginManager: LegendMarketplacePluginManager): void;
32
+ /**
33
+ * Renderers for contract consumer types to be used in the
34
+ * data contract creator dialog.
35
+ */
36
+ getContractConsumerTypeRendererConfigs?(): ContractConsumerTypeRendererConfig[];
25
37
  }
26
38
  //# sourceMappingURL=LegendMarketplaceApplicationPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendMarketplaceApplicationPlugin.d.ts","sourceRoot":"","sources":["../../src/application/LegendMarketplaceApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBA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AAI,kCAAkC,EAAE;CAChF"}
@@ -1 +1 @@
1
- {"version":3,"file":"LegendMarketplaceApplicationPlugin.js","sourceRoot":"","sources":["../../src/application/LegendMarketplaceApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAGpE,MAAM,OAAgB,kCAAmC,SAAQ,uBAAuB;IACtF;;;OAGG;IACc,kBAAkB,CAAwC;IAE3E,OAAO,CAAC,aAA6C;QACnD,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
1
+ {"version":3,"file":"LegendMarketplaceApplicationPlugin.js","sourceRoot":"","sources":["../../src/application/LegendMarketplaceApplicationPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAiBpE,MAAM,OAAgB,kCAAmC,SAAQ,uBAAuB;IACtF;;;OAGG;IACc,kBAAkB,CAAwC;IAE3E,OAAO,CAAC,aAA6C;QACnD,aAAa,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CAOF"}
@@ -13,9 +13,10 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { LegendMarketplaceApplicationPlugin } from '../LegendMarketplaceApplicationPlugin.js';
16
+ import { LegendMarketplaceApplicationPlugin, type ContractConsumerTypeRendererConfig } from '../LegendMarketplaceApplicationPlugin.js';
17
17
  export declare class Core_LegendMarketplaceApplicationPlugin extends LegendMarketplaceApplicationPlugin {
18
18
  static NAME: string;
19
19
  constructor();
20
+ getContractConsumerTypeRendererConfigs(): ContractConsumerTypeRendererConfig[];
20
21
  }
21
22
  //# sourceMappingURL=Core_LegendMarketplaceApplicationPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Core_LegendMarketplaceApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplaceApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAE9F,qBAAa,uCAAwC,SAAQ,kCAAkC;IAC7F,MAAM,CAAC,IAAI,SAAuD;;CAKnE"}
1
+ {"version":3,"file":"Core_LegendMarketplaceApplicationPlugin.d.ts","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplaceApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,EACL,kCAAkC,EAClC,KAAK,kCAAkC,EACxC,MAAM,0CAA0C,CAAC;AAYlD,qBAAa,uCAAwC,SAAQ,kCAAkC;IAC7F,MAAM,CAAC,IAAI,SAAuD;;IAMzD,sCAAsC,IAAI,kCAAkC,EAAE;CAgKxF"}
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  /**
2
3
  * Copyright (c) 2020-present, Goldman Sachs
3
4
  *
@@ -13,12 +14,87 @@
13
14
  * See the License for the specific language governing permissions and
14
15
  * limitations under the License.
15
16
  */
17
+ import { V1_AdhocTeam, V1_User, V1_UserType, } from '@finos/legend-graph';
16
18
  import packageJson from '../../../package.json' with { type: 'json' };
17
- import { LegendMarketplaceApplicationPlugin } from '../LegendMarketplaceApplicationPlugin.js';
19
+ import { LegendMarketplaceApplicationPlugin, } from '../LegendMarketplaceApplicationPlugin.js';
20
+ import { UserSearchInput } from '@finos/legend-art';
21
+ import React, { useEffect, useState } from 'react';
22
+ import { LegendUser } from '@finos/legend-shared';
23
+ import { getUserById } from '../../stores/lakehouse/LakehouseUtils.js';
24
+ import { DataProductGroupAccess, } from '../../stores/lakehouse/DataProductDataAccessState.js';
25
+ import { TextField } from '@mui/material';
18
26
  export class Core_LegendMarketplaceApplicationPlugin extends LegendMarketplaceApplicationPlugin {
19
27
  static NAME = packageJson.extensions.applicationMarketplacePlugin;
20
28
  constructor() {
21
29
  super(Core_LegendMarketplaceApplicationPlugin.NAME, packageJson.version);
22
30
  }
31
+ getContractConsumerTypeRendererConfigs() {
32
+ const buildAdhocUser = (user) => {
33
+ const _user = new V1_User();
34
+ _user.name = user;
35
+ _user.userType = V1_UserType.WORKFORCE_USER;
36
+ const _adhocTeam = new V1_AdhocTeam();
37
+ _adhocTeam.users = [_user];
38
+ return _adhocTeam;
39
+ };
40
+ const CommonRenderer = (props) => {
41
+ const { label, marketplaceBaseStore, accessGroupState, handleOrganizationalScopeChange, handleDescriptionChange, handleIsValidChange, enableUserSearch, } = props;
42
+ const [description, setDescription] = useState('');
43
+ const [user, setUser] = useState(new LegendUser());
44
+ const [loadingCurrentUser, setLoadingCurrentUser] = useState(false);
45
+ // Update parent state whenever local state changes
46
+ useEffect(() => {
47
+ handleOrganizationalScopeChange(buildAdhocUser(user.id));
48
+ handleDescriptionChange(description);
49
+ handleIsValidChange(user.id !== '' && description.trim() !== '');
50
+ }, [
51
+ user,
52
+ description,
53
+ handleOrganizationalScopeChange,
54
+ handleDescriptionChange,
55
+ handleIsValidChange,
56
+ ]);
57
+ useEffect(() => {
58
+ const fetchCurrentUser = async () => {
59
+ if (marketplaceBaseStore.userSearchService) {
60
+ setLoadingCurrentUser(true);
61
+ try {
62
+ const currentUser = await getUserById(marketplaceBaseStore.applicationStore.identityService
63
+ .currentUser, marketplaceBaseStore.userSearchService);
64
+ if (currentUser) {
65
+ setUser(currentUser);
66
+ }
67
+ }
68
+ finally {
69
+ setLoadingCurrentUser(false);
70
+ }
71
+ }
72
+ };
73
+ // We should only fetch the current user if the current user is not already entitled.
74
+ // If the current user is already entitled, we can assume they are requesting access for another user or system account.
75
+ if (accessGroupState.access === DataProductGroupAccess.NO_ACCESS) {
76
+ // eslint-disable-next-line no-void
77
+ void fetchCurrentUser();
78
+ }
79
+ }, [
80
+ accessGroupState.access,
81
+ marketplaceBaseStore.applicationStore.identityService.currentUser,
82
+ marketplaceBaseStore.userSearchService,
83
+ ]);
84
+ return (_jsxs(_Fragment, { children: [_jsx(UserSearchInput, { className: "marketplace-lakehouse-entitlements__data-contract-creator__user-input", userValue: user, setUserValue: (_user) => setUser(_user), userSearchService: enableUserSearch
85
+ ? marketplaceBaseStore.userSearchService
86
+ : undefined, label: label, required: true, variant: "outlined", fullWidth: true, initializing: loadingCurrentUser }, label), _jsx(TextField, { className: "marketplace-lakehouse-entitlements__data-contract-creator__business-justification-input", required: true, name: "business-justification", label: "Business Justification", variant: "outlined", fullWidth: true, value: description, onChange: (event) => setDescription(event.target.value) })] }));
87
+ };
88
+ return [
89
+ {
90
+ type: 'User',
91
+ renderer: (marketplaceBaseStore, accessGroupState, handleOrganizationalScopeChange, handleDescriptionChange, handleIsValidChange) => (_jsx(CommonRenderer, { label: "User", marketplaceBaseStore: marketplaceBaseStore, accessGroupState: accessGroupState, handleOrganizationalScopeChange: handleOrganizationalScopeChange, handleDescriptionChange: handleDescriptionChange, handleIsValidChange: handleIsValidChange, enableUserSearch: true }, "user")),
92
+ },
93
+ {
94
+ type: 'System Account',
95
+ renderer: (marketplaceBaseStore, accessGroupState, handleOrganizationalScopeChange, handleDescriptionChange, handleIsValidChange) => (_jsx(CommonRenderer, { label: "System Account", marketplaceBaseStore: marketplaceBaseStore, accessGroupState: accessGroupState, handleOrganizationalScopeChange: handleOrganizationalScopeChange, handleDescriptionChange: handleDescriptionChange, handleIsValidChange: handleIsValidChange, enableUserSearch: false }, "system-account")),
96
+ },
97
+ ];
98
+ }
23
99
  }
24
100
  //# sourceMappingURL=Core_LegendMarketplaceApplicationPlugin.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Core_LegendMarketplaceApplicationPlugin.js","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplaceApplicationPlugin.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAE9F,MAAM,OAAO,uCAAwC,SAAQ,kCAAkC;IAC7F,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAElE;QACE,KAAK,CAAC,uCAAuC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3E,CAAC"}
1
+ {"version":3,"file":"Core_LegendMarketplaceApplicationPlugin.js","sourceRoot":"","sources":["../../../src/application/extensions/Core_LegendMarketplaceApplicationPlugin.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,YAAY,EACZ,OAAO,EACP,WAAW,GAEZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,WAAW,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtE,OAAO,EACL,kCAAkC,GAEnC,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAoB,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AACvE,OAAO,EACL,sBAAsB,GAEvB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG1C,MAAM,OAAO,uCAAwC,SAAQ,kCAAkC;IAC7F,MAAM,CAAC,IAAI,GAAG,WAAW,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAElE;QACE,KAAK,CAAC,uCAAuC,CAAC,IAAI,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC3E,CAAC;IAEQ,sCAAsC;QAC7C,MAAM,cAAc,GAAG,CAAC,IAA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AC,UAAU,EAClB,SAAS,EAAE,IAAI,EACf,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,CAAC,KAAoC,EAAE,EAAE,CACjD,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,GAEpC,IACD,CACJ,CAAC;QACJ,CAAC,CAAC;QAEF,OAAO;YACL;gBACE,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,CACR,oBAAgD,EAChD,gBAA6C,EAC7C,+BAES,EACT,uBAAkE,EAClE,mBAA+C,EAC/C,EAAE,CAAC,CACH,KAAC,cAAc,IAEb,KAAK,EAAC,MAAM,EACZ,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,+BAA+B,EAAE,+BAA+B,EAChE,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,IAAI,IAPlB,MAAM,CAQV,CACH;aACF;YACD;gBACE,IAAI,EAAE,gBAAgB;gBACtB,QAAQ,EAAE,CACR,oBAAgD,EAChD,gBAA6C,EAC7C,+BAES,EACT,uBAAkE,EAClE,mBAA+C,EAC/C,EAAE,CAAC,CACH,KAAC,cAAc,IAEb,KAAK,EAAC,gBAAgB,EACtB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,+BAA+B,EAAE,+BAA+B,EAChE,uBAAuB,EAAE,uBAAuB,EAChD,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,KAAK,IAPnB,gBAAgB,CAQpB,CACH;aACF;SACF,CAAC;IACJ,CAAC"}
@@ -15,6 +15,7 @@
15
15
  */
16
16
  import { type RenderResult } from '@testing-library/react';
17
17
  import { type AbstractPlugin, type AbstractPreset } from '@finos/legend-shared';
18
+ import { MarketplaceLakehouseStore } from '../../stores/lakehouse/MarketplaceLakehouseStore.js';
18
19
  import { type LegendMarketplaceApplicationStore, LegendMarketplaceBaseStore } from '../../stores/LegendMarketplaceBaseStore.js';
19
20
  import { LegendMarketplacePluginManager } from '../../application/LegendMarketplacePluginManager.js';
20
21
  export declare const TEST__provideMockedLegendMarketplaceBaseStore: (customization?: {
@@ -27,4 +28,9 @@ export declare const TEST__provideMockedLegendMarketplaceBaseStore: (customizati
27
28
  export declare const TEST__setUpMarketplace: (MOCK__store: LegendMarketplaceBaseStore, route?: string) => Promise<{
28
29
  renderResult: RenderResult;
29
30
  }>;
31
+ export declare const TEST__setUpMarketplaceLakehouse: (MOCK__store: LegendMarketplaceBaseStore, route?: string) => Promise<{
32
+ renderResult: RenderResult<typeof import("@testing-library/dom/types/queries.js"), HTMLElement, HTMLElement>;
33
+ MOCK__store: LegendMarketplaceBaseStore;
34
+ MOCK__lakehouseStore: MarketplaceLakehouseStore;
35
+ }>;
30
36
  //# sourceMappingURL=LegendMarketplaceStoreTestUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendMarketplaceStoreTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAOhF,OAAO,EACL,KAAK,iCAAiC,EACtC,0BAA0B,EAC3B,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qDAAqD,CAAC;AAOrG,eAAO,MAAM,6CAA6C,GACjD,gBAAgB;IACrB,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC,gBAAgB,CAAC,EAAE,iCAAiC,CAAC;IACrD,aAAa,CAAC,EAAE,8BAA8B,CAAC;IAC/C,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;CACjC,KAAG,OAAO,CAAC,0BAA0B,CAyBrC,CAAC;AAEJ,eAAO,MAAM,sBAAsB,GACjC,aAAa,0BAA0B,EACvC,QAAQ,MAAM,KACb,OAAO,CAAC;IACT,YAAY,EAAE,YAAY,CAAC;CAC5B,CAsBA,CAAC"}
1
+ {"version":3,"file":"LegendMarketplaceStoreTestUtils.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAShF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAEhG,OAAO,EACL,KAAK,iCAAiC,EACtC,0BAA0B,EAC3B,MAAM,4CAA4C,CAAC;AAGpD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qDAAqD,CAAC;AAiDrG,eAAO,MAAM,6CAA6C,GACjD,gBAAgB;IACrB,IAAI,CAAC,EAAE,0BAA0B,CAAC;IAClC,gBAAgB,CAAC,EAAE,iCAAiC,CAAC;IACrD,aAAa,CAAC,EAAE,8BAA8B,CAAC;IAC/C,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;CACjC,KAAG,OAAO,CAAC,0BAA0B,CAyBrC,CAAC;AAEJ,eAAO,MAAM,sBAAsB,GACjC,aAAa,0BAA0B,EACvC,QAAQ,MAAM,KACb,OAAO,CAAC;IACT,YAAY,EAAE,YAAY,CAAC;CAC5B,CAsBA,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAC1C,aAAa,0BAA0B,EACvC,QAAQ,MAAM;;;;EAwJf,CAAC"}
@@ -17,9 +17,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
17
17
  import { render, waitFor } from '@testing-library/react';
18
18
  import {} from '@finos/legend-shared';
19
19
  import { createMock, createSpy } from '@finos/legend-shared/test';
20
+ import { jest } from '@jest/globals';
20
21
  import { ApplicationStore, ApplicationStoreProvider, } from '@finos/legend-application';
22
+ import { AuthProvider } from 'react-oidc-context';
23
+ import { CORE_PURE_PATH } from '@finos/legend-graph';
24
+ import { MarketplaceLakehouseStore } from '../../stores/lakehouse/MarketplaceLakehouseStore.js';
21
25
  import { TEST__BrowserEnvironmentProvider } from '@finos/legend-application/test';
22
26
  import { LegendMarketplaceBaseStore, } from '../../stores/LegendMarketplaceBaseStore.js';
27
+ import { useMarketplaceLakehouseStore } from '../../pages/Lakehouse/MarketplaceLakehouseStoreProvider.js';
23
28
  import { LEGEND_MARKETPLACE_TEST_ID } from '../../__lib__/LegendMarketplaceTesting.js';
24
29
  import { LegendMarketplacePluginManager } from '../../application/LegendMarketplacePluginManager.js';
25
30
  import { Core_LegendMarketplaceApplicationPlugin } from '../../application/extensions/Core_LegendMarketplaceApplicationPlugin.js';
@@ -27,6 +32,22 @@ import { TEST__getTestLegendMarketplaceApplicationConfig } from '../../applicati
27
32
  import { LegendMarketplaceFrameworkProvider } from '../../application/LegendMarketplaceFrameworkProvider.js';
28
33
  import searchResults from './TEST_DATA__SearchResults.json' with { type: 'json' };
29
34
  import { LegendMarketplaceWebApplicationRouter } from '../../application/LegendMarketplaceWebApplication.js';
35
+ import { mockSDLCDataProductSummaries, mockReleaseSDLCDataProduct, mockSnapshotSDLCDataProduct, mockSDLCDataProductWithoutTitle, mockDevIngestEnvironmentSummaryResponse, mockProdParallelIngestEnvironmentSummaryResponse, mockProdIngestEnvironmentSummaryResponse, mockDevSandboxDataProductResponse, mockProdParallelSandboxDataProductResponse, mockProdSandboxDataProductResponse, mockDevIngestEnvironmentResponse, mockProdParallelIngestEnvironmentResponse, mockProdIngestEnvironmentResponse, } from './TEST_DATA__LakehouseData.js';
36
+ jest.mock('@finos/legend-graph', () => {
37
+ const actual = jest.requireActual('@finos/legend-graph');
38
+ return {
39
+ ...actual,
40
+ getCurrentUserIDFromEngineServer: jest.fn(() => Promise.resolve('test-user-id')),
41
+ };
42
+ });
43
+ jest.mock('../../pages/Lakehouse/MarketplaceLakehouseStoreProvider.js', () => {
44
+ const actual = jest.requireActual('../../pages/Lakehouse/MarketplaceLakehouseStoreProvider.js');
45
+ return {
46
+ ...actual,
47
+ useMarketplaceLakehouseStore: jest.fn(),
48
+ MarketplaceLakehouseStoreProvider: ({ children, }) => children,
49
+ };
50
+ });
30
51
  export const TEST__provideMockedLegendMarketplaceBaseStore = async (customization) => {
31
52
  const pluginManager = customization?.pluginManager ?? LegendMarketplacePluginManager.create();
32
53
  pluginManager
@@ -53,4 +74,89 @@ export const TEST__setUpMarketplace = async (MOCK__store, route) => {
53
74
  renderResult,
54
75
  };
55
76
  };
77
+ export const TEST__setUpMarketplaceLakehouse = async (MOCK__store, route) => {
78
+ createSpy(MOCK__store.depotServerClient, 'getEntitiesSummaryByClassifier').mockImplementation(async (classifier) => {
79
+ if (classifier === CORE_PURE_PATH.DATA_PRODUCT) {
80
+ return mockSDLCDataProductSummaries;
81
+ }
82
+ return [];
83
+ });
84
+ createSpy(MOCK__store.depotServerClient, 'getVersionEntity').mockImplementation(async (groupId, artifactId, versionId, path) => {
85
+ if (path === 'test::dataproduct::TestSDLCDataProduct') {
86
+ if (versionId === '1.0.0') {
87
+ return {
88
+ classifierPath: CORE_PURE_PATH.DATA_PRODUCT,
89
+ content: mockReleaseSDLCDataProduct,
90
+ path: 'test::dataproduct::TestSDLCDataProduct',
91
+ };
92
+ }
93
+ else if (versionId === 'master-SNAPSHOT') {
94
+ return {
95
+ classifierPath: CORE_PURE_PATH.DATA_PRODUCT,
96
+ content: mockSnapshotSDLCDataProduct,
97
+ path: 'test::dataproduct::TestSDLCDataProduct',
98
+ };
99
+ }
100
+ throw new Error(`Unable to find SDLC data product: ${groupId}:${artifactId}:${versionId}:${path}`);
101
+ }
102
+ else if (path === 'test::dataproduct::AnotherSDLCDataProduct') {
103
+ return {
104
+ classifierPath: CORE_PURE_PATH.DATA_PRODUCT,
105
+ content: mockSDLCDataProductWithoutTitle,
106
+ path: 'test::dataproduct::AnotherSDLCDataProduct',
107
+ };
108
+ }
109
+ throw new Error(`Unable to find SDLC data product: ${groupId}:${artifactId}:${versionId}:${path}`);
110
+ });
111
+ createSpy(MOCK__store.lakehousePlatformServerClient, 'getIngestEnvironmentSummaries').mockResolvedValue([
112
+ mockDevIngestEnvironmentSummaryResponse,
113
+ mockProdParallelIngestEnvironmentSummaryResponse,
114
+ mockProdIngestEnvironmentSummaryResponse,
115
+ ]);
116
+ createSpy(MOCK__store.lakehousePlatformServerClient, 'findProducerServer').mockImplementation(async (did, level, token) => {
117
+ if (did === 123) {
118
+ return mockDevIngestEnvironmentSummaryResponse;
119
+ }
120
+ else if (did === 456) {
121
+ return mockProdParallelIngestEnvironmentSummaryResponse;
122
+ }
123
+ else if (did === 789) {
124
+ return mockProdIngestEnvironmentSummaryResponse;
125
+ }
126
+ throw new Error(`Unable to find environment with deployment ID: ${did}`);
127
+ });
128
+ createSpy(MOCK__store.lakehouseIngestServerClient, 'getDeployedIngestDefinitions').mockImplementation(async (ingestServerUrl, token) => {
129
+ if (ingestServerUrl === 'https://test-dev-ingest-server.com') {
130
+ return mockDevSandboxDataProductResponse;
131
+ }
132
+ else if (ingestServerUrl === 'https://test-prod-parallel-ingest-server.com') {
133
+ return mockProdParallelSandboxDataProductResponse;
134
+ }
135
+ else if (ingestServerUrl === 'https://test-prod-ingest-server.com') {
136
+ return mockProdSandboxDataProductResponse;
137
+ }
138
+ throw new Error(`Unable to find deployed definitions for URL: ${ingestServerUrl}`);
139
+ });
140
+ createSpy(MOCK__store.lakehouseIngestServerClient, 'getIngestEnvironment').mockImplementation(async (ingestServerUrl, token) => {
141
+ if (ingestServerUrl === 'https://test-dev-ingest-server.com') {
142
+ return mockDevIngestEnvironmentResponse;
143
+ }
144
+ else if (ingestServerUrl === 'https://test-prod-parallel-ingest-server.com') {
145
+ return mockProdParallelIngestEnvironmentResponse;
146
+ }
147
+ else if (ingestServerUrl === 'https://test-prod-ingest-server.com') {
148
+ return mockProdIngestEnvironmentResponse;
149
+ }
150
+ throw new Error(`Unable to find deployed definitions for URL: ${ingestServerUrl}`);
151
+ });
152
+ const MOCK__lakehouseStore = new MarketplaceLakehouseStore(MOCK__store, MOCK__store.lakehouseContractServerClient, MOCK__store.lakehousePlatformServerClient, MOCK__store.lakehouseIngestServerClient, MOCK__store.depotServerClient);
153
+ useMarketplaceLakehouseStore.mockReturnValue(MOCK__lakehouseStore);
154
+ const renderResult = render(_jsx(ApplicationStoreProvider, { store: MOCK__store.applicationStore, children: _jsx(AuthProvider, { children: _jsx(TEST__BrowserEnvironmentProvider, { initialEntries: ['/lakehouse'], baseUrl: "/lakehouse", children: _jsx(LegendMarketplaceFrameworkProvider, { children: _jsx(LegendMarketplaceWebApplicationRouter, {}) }) }) }) }));
155
+ await waitFor(() => renderResult.getByTestId(LEGEND_MARKETPLACE_TEST_ID.HEADER));
156
+ return {
157
+ renderResult,
158
+ MOCK__store,
159
+ MOCK__lakehouseStore,
160
+ };
161
+ };
56
162
  //# sourceMappingURL=LegendMarketplaceStoreTestUtils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegendMarketplaceStoreTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAA4C,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAEL,0BAA0B,GAC3B,MAAM,4CAA4C,CAAC;AACp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sB,GAAG,KAAK,EACzC,WAAuC,EACvC,KAAc,EAGb,EAAE;IACH,SAAS,CACP,WAAW,CAAC,uBAAuB,EACnC,gBAAgB,CACjB,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAEnC,MAAM,YAAY,GAAG,MAAM,CACzB,KAAC,wBAAwB,IAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,YAC3D,KAAC,gCAAgC,IAAC,cAAc,EAAE,CAAC,KAAK,IAAI,GAAG,CAAC,YAC9D,KAAC,kCAAkC,cACjC,KAAC,qCAAqC,KAAG,GACN,GACJ,GACV,CAC5B,CAAC;IACF,MAAM,OAAO,CAAC,GAAG,EAAE,CACjB,YAAY,CAAC,WAAW,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAC5D,CAAC;IAEF,OAAO;QACL,YAAY;KACb,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"LegendMarketplaceStoreTestUtils.js","sourceRoot":"","sources":["../../../src/components/__test-utils__/LegendMarketplaceStoreTestUtils.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAqB,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAA4C,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EACL,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAEL,0BAA0B,GAC3B,MAAM,4CAA4C,CAAC;AACp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 * Copyright (c) 2020-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 PlainObject } from '@finos/legend-shared';
17
+ import { type IngestDeploymentServerConfig } from '@finos/legend-server-lakehouse';
18
+ import { type StoredSummaryEntity } from '@finos/legend-server-depot';
19
+ import { type V1_AWSSnowflakeIngestEnvironment, type V1_SandboxDataProductDeploymentResponse } from '@finos/legend-graph';
20
+ import type { Entity } from '@finos/legend-storage';
21
+ export declare const mockSDLCDataProductSummaries: PlainObject<StoredSummaryEntity>[];
22
+ export declare const mockReleaseSDLCDataProduct: PlainObject<Entity>;
23
+ export declare const mockSnapshotSDLCDataProduct: PlainObject<Entity>;
24
+ export declare const mockSDLCDataProductWithoutTitle: PlainObject<Entity>;
25
+ export declare const mockDevIngestEnvironmentSummaryResponse: PlainObject<IngestDeploymentServerConfig>;
26
+ export declare const mockProdParallelIngestEnvironmentSummaryResponse: PlainObject<IngestDeploymentServerConfig>;
27
+ export declare const mockProdIngestEnvironmentSummaryResponse: PlainObject<IngestDeploymentServerConfig>;
28
+ export declare const mockDevSandboxDataProductResponse: PlainObject<V1_SandboxDataProductDeploymentResponse>;
29
+ export declare const mockProdParallelSandboxDataProductResponse: PlainObject<V1_SandboxDataProductDeploymentResponse>;
30
+ export declare const mockProdSandboxDataProductResponse: PlainObject<V1_SandboxDataProductDeploymentResponse>;
31
+ export declare const mockDevIngestEnvironmentResponse: PlainObject<V1_AWSSnowflakeIngestEnvironment>;
32
+ export declare const mockProdParallelIngestEnvironmentResponse: PlainObject<V1_AWSSnowflakeIngestEnvironment>;
33
+ export declare const mockProdIngestEnvironmentResponse: PlainObject<V1_AWSSnowflakeIngestEnvironment>;
34
+ //# sourceMappingURL=TEST_DATA__LakehouseData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TEST_DATA__LakehouseData.d.ts","sourceRoot":"","sources":["../../../src/components/__test-utils__/TEST_DATA__LakehouseData.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,KAAK,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,KAAK,gCAAgC,EACrC,KAAK,uCAAuC,EAE7C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD,eAAO,MAAM,4BAA4B,EAAE,WAAW,CAAC,mBAAmB,CAAC,EAuBxE,CAAC;AAEJ,eAAO,MAAM,0BAA0B,EAAE,WAAW,CAAC,MAAM,CAoC1D,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAS3D,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,WAAW,CAAC,MAAM,CAS/D,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,WAAW,CAAC,4BAA4B,CAK3F,CAAC;AAEJ,eAAO,MAAM,gDAAgD,EAAE,WAAW,CAAC,4BAA4B,CAKpG,CAAC;AAEJ,eAAO,MAAM,wCAAwC,EAAE,WAAW,CAAC,4BAA4B,CAK5F,CAAC;AAEJ,eAAO,MAAM,iCAAiC,EAAE,WAAW,CAAC,uCAAuC,CAoChG,CAAC;AAEJ,eAAO,MAAM,0CAA0C,EAAE,WAAW,CAAC,uCAAuC,CAoCzG,CAAC;AAEJ,eAAO,MAAM,kCAAkC,EAAE,W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