@finos/legend-graph 32.3.37 → 32.3.38
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/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts +0 -11
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js +43 -76
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.js +10 -14
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts +413 -283
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.ts +23 -21
|
@@ -29,7 +29,6 @@ import {
|
|
|
29
29
|
usingConstantValueSchema,
|
|
30
30
|
UnsupportedOperationError,
|
|
31
31
|
assertErrorThrown,
|
|
32
|
-
guaranteeNonNullable,
|
|
33
32
|
usingModelSchema,
|
|
34
33
|
} from '@finos/legend-shared';
|
|
35
34
|
import { V1_PureModelContextData } from '../../model/context/V1_PureModelContextData.js';
|
|
@@ -102,26 +101,29 @@ export const V1_entitiesToPureModelContextData = async (
|
|
|
102
101
|
TEMPORARY__entityPathIndex?.set(element.path, entity.path);
|
|
103
102
|
return element;
|
|
104
103
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
104
|
+
graph.elements = await Promise.all<V1_PackageableElement>(
|
|
105
|
+
entities.map(
|
|
106
|
+
(e) =>
|
|
107
|
+
new Promise((resolve, reject) =>
|
|
108
|
+
setTimeout(() => {
|
|
109
|
+
try {
|
|
110
|
+
resolve(
|
|
111
|
+
// NOTE: here we skip the check for classifier path, so there could be cases
|
|
112
|
+
// where the classifier path is different from the actua element protocol path
|
|
113
|
+
// we might need to do validation here. This can happen when the classifier
|
|
114
|
+
// path is changed in the backend. If we are to check for this, we might consider
|
|
115
|
+
// not throwing error but quitely print out warnings about elements that would not
|
|
116
|
+
// be built.
|
|
117
|
+
entityToElement(e),
|
|
118
|
+
);
|
|
119
|
+
} catch (error) {
|
|
120
|
+
assertErrorThrown(error);
|
|
121
|
+
reject(error);
|
|
122
|
+
}
|
|
123
|
+
}, 0),
|
|
124
|
+
),
|
|
125
|
+
),
|
|
126
|
+
);
|
|
125
127
|
}
|
|
126
128
|
} catch (error) {
|
|
127
129
|
assertErrorThrown(error);
|