@finos/legend-application-marketplace 0.2.16 → 0.2.19
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.
- package/lib/components/Header/LegendMarketplaceIconToolbar.d.ts.map +1 -1
- package/lib/components/Header/LegendMarketplaceIconToolbar.js +2 -2
- package/lib/components/Header/LegendMarketplaceIconToolbar.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/pages/Lakehouse/admin/LakehouseAdminContractsDashboard.d.ts.map +1 -1
- package/lib/pages/Lakehouse/admin/LakehouseAdminContractsDashboard.js +7 -2
- package/lib/pages/Lakehouse/admin/LakehouseAdminContractsDashboard.js.map +1 -1
- package/lib/pages/Lakehouse/admin/LakehouseAdminSubscriptionsDashboard.d.ts.map +1 -1
- package/lib/pages/Lakehouse/admin/LakehouseAdminSubscriptionsDashboard.js +7 -2
- package/lib/pages/Lakehouse/admin/LakehouseAdminSubscriptionsDashboard.js.map +1 -1
- package/lib/pages/Lakehouse/entitlements/LakehouseDataContract.d.ts.map +1 -1
- package/lib/pages/Lakehouse/entitlements/LakehouseDataContract.js +2 -0
- package/lib/pages/Lakehouse/entitlements/LakehouseDataContract.js.map +1 -1
- package/lib/stores/LegendMarketplaceBaseStore.d.ts +2 -0
- package/lib/stores/LegendMarketplaceBaseStore.d.ts.map +1 -1
- package/lib/stores/LegendMarketplaceBaseStore.js +4 -0
- package/lib/stores/LegendMarketplaceBaseStore.js.map +1 -1
- package/lib/stores/lakehouse/PendingTasksCache.d.ts +46 -0
- package/lib/stores/lakehouse/PendingTasksCache.d.ts.map +1 -0
- package/lib/stores/lakehouse/PendingTasksCache.js +75 -0
- package/lib/stores/lakehouse/PendingTasksCache.js.map +1 -0
- package/lib/stores/lakehouse/admin/LakehouseAdminStore.d.ts +2 -2
- package/lib/stores/lakehouse/admin/LakehouseAdminStore.d.ts.map +1 -1
- package/lib/stores/lakehouse/admin/LakehouseAdminStore.js +4 -4
- package/lib/stores/lakehouse/admin/LakehouseAdminStore.js.map +1 -1
- package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.d.ts.map +1 -1
- package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js +3 -1
- package/lib/stores/lakehouse/entitlements/EntitlementsDashboardState.js.map +1 -1
- package/package.json +10 -10
- package/src/components/Header/LegendMarketplaceIconToolbar.tsx +5 -6
- package/src/pages/Lakehouse/admin/LakehouseAdminContractsDashboard.tsx +8 -3
- package/src/pages/Lakehouse/admin/LakehouseAdminSubscriptionsDashboard.tsx +8 -3
- package/src/pages/Lakehouse/entitlements/LakehouseDataContract.tsx +2 -0
- package/src/stores/LegendMarketplaceBaseStore.ts +7 -0
- package/src/stores/lakehouse/PendingTasksCache.ts +97 -0
- package/src/stores/lakehouse/admin/LakehouseAdminStore.ts +4 -4
- package/src/stores/lakehouse/entitlements/EntitlementsDashboardState.ts +3 -1
- package/tsconfig.json +1 -0
|
@@ -52,14 +52,14 @@ export class LakehouseAdminStore {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
createContractsServerSideDatasource(
|
|
55
|
-
|
|
55
|
+
tokenProvider: () => string | undefined,
|
|
56
56
|
): DataGridServerSideDatasource {
|
|
57
57
|
return {
|
|
58
58
|
getRows: (
|
|
59
59
|
params: DataGridServerSideGetRowsParams<V1_LiteDataContract>,
|
|
60
60
|
) => {
|
|
61
61
|
// eslint-disable-next-line no-void
|
|
62
|
-
void this.fetchContractsPage(params,
|
|
62
|
+
void this.fetchContractsPage(params, tokenProvider());
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
65
|
}
|
|
@@ -116,14 +116,14 @@ export class LakehouseAdminStore {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
createSubscriptionsServerSideDatasource(
|
|
119
|
-
|
|
119
|
+
tokenProvider: () => string | undefined,
|
|
120
120
|
): DataGridServerSideDatasource {
|
|
121
121
|
return {
|
|
122
122
|
getRows: (
|
|
123
123
|
params: DataGridServerSideGetRowsParams<V1_DataSubscription>,
|
|
124
124
|
) => {
|
|
125
125
|
// eslint-disable-next-line no-void
|
|
126
|
-
void this.fetchSubscriptionsPage(params,
|
|
126
|
+
void this.fetchSubscriptionsPage(params, tokenProvider());
|
|
127
127
|
},
|
|
128
128
|
};
|
|
129
129
|
}
|
|
@@ -342,7 +342,7 @@ export class EntitlementsDashboardState {
|
|
|
342
342
|
): GeneratorFn<V1_ContractUserEventRecord[]> {
|
|
343
343
|
try {
|
|
344
344
|
const rawTasks =
|
|
345
|
-
(yield this.lakehouseEntitlementsStore.
|
|
345
|
+
(yield this.lakehouseEntitlementsStore.marketplaceBaseStore.pendingTasksCache.fetch(
|
|
346
346
|
TEST_USER,
|
|
347
347
|
token,
|
|
348
348
|
)) as PlainObject<V1_PendingTasksResponse>;
|
|
@@ -902,6 +902,7 @@ export class EntitlementsDashboardState {
|
|
|
902
902
|
}
|
|
903
903
|
task.status = change.status;
|
|
904
904
|
this.pendingTasks = [...(this.pendingTasks ?? [])];
|
|
905
|
+
this.lakehouseEntitlementsStore.marketplaceBaseStore.pendingTasksCache.invalidate();
|
|
905
906
|
this.lakehouseEntitlementsStore.applicationStore.notificationService.notifySuccess(
|
|
906
907
|
`Task has been Approved`,
|
|
907
908
|
);
|
|
@@ -940,6 +941,7 @@ export class EntitlementsDashboardState {
|
|
|
940
941
|
}
|
|
941
942
|
task.status = change.status;
|
|
942
943
|
this.pendingTasks = [...(this.pendingTasks ?? [])];
|
|
944
|
+
this.lakehouseEntitlementsStore.marketplaceBaseStore.pendingTasksCache.invalidate();
|
|
943
945
|
this.lakehouseEntitlementsStore.applicationStore.notificationService.notifySuccess(
|
|
944
946
|
`Task has been denied`,
|
|
945
947
|
);
|
package/tsconfig.json
CHANGED
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"./src/stores/lakehouse/LegendMarketplaceFieldSearchResultsStore.ts",
|
|
76
76
|
"./src/stores/lakehouse/LegendMarketplaceProductViewerStore.ts",
|
|
77
77
|
"./src/stores/lakehouse/LegendMarketplaceSearchResultsStore.ts",
|
|
78
|
+
"./src/stores/lakehouse/PendingTasksCache.ts",
|
|
78
79
|
"./src/stores/lakehouse/admin/LakehouseAdminStore.ts",
|
|
79
80
|
"./src/stores/lakehouse/dataProducts/ProductCardState.ts",
|
|
80
81
|
"./src/stores/lakehouse/entitlements/EntitlementsDashboardState.ts",
|