@finos/legend-graph 32.6.1 → 32.6.3
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/BasicModel.d.ts.map +1 -1
- package/lib/graph/BasicModel.js +1 -0
- package/lib/graph/BasicModel.js.map +1 -1
- package/lib/graph/Core_HashUtils.d.ts +7 -0
- package/lib/graph/Core_HashUtils.d.ts.map +1 -1
- package/lib/graph/Core_HashUtils.js +7 -0
- package/lib/graph/Core_HashUtils.js.map +1 -1
- package/lib/graph/MetaModelConst.d.ts +9 -1
- package/lib/graph/MetaModelConst.d.ts.map +1 -1
- package/lib/graph/MetaModelConst.js +9 -0
- package/lib/graph/MetaModelConst.js.map +1 -1
- package/lib/graph/metamodel/pure/data/DataResolver.d.ts +32 -0
- package/lib/graph/metamodel/pure/data/DataResolver.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/data/DataResolver.js +40 -0
- package/lib/graph/metamodel/pure/data/DataResolver.js.map +1 -0
- package/lib/graph/metamodel/pure/data/EmbeddedData.d.ts +1 -1
- package/lib/graph/metamodel/pure/data/EmbeddedData.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/data/EmbeddedData.js +2 -2
- package/lib/graph/metamodel/pure/data/EmbeddedData.js.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.d.ts +6 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js +3 -0
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductAccessPointTest.d.ts +22 -0
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductAccessPointTest.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductAccessPointTest.js +31 -0
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductAccessPointTest.js.map +1 -0
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductTestSuite.d.ts +23 -0
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductTestSuite.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductTestSuite.js +31 -0
- package/lib/graph/metamodel/pure/dataProduct/test/DataProductTestSuite.js.map +1 -0
- package/lib/graph/metamodel/pure/packageableElements/relation/Accessor.d.ts +9 -2
- package/lib/graph/metamodel/pure/packageableElements/relation/Accessor.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/relation/Accessor.js +18 -1
- package/lib/graph/metamodel/pure/packageableElements/relation/Accessor.js.map +1 -1
- package/lib/graph/metamodel/pure/test/assertion/EqualToRelation.d.ts +23 -0
- package/lib/graph/metamodel/pure/test/assertion/EqualToRelation.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/test/assertion/EqualToRelation.js +32 -0
- package/lib/graph/metamodel/pure/test/assertion/EqualToRelation.js.map +1 -0
- package/lib/graph/metamodel/pure/test/assertion/TestAssertion.d.ts +2 -0
- package/lib/graph/metamodel/pure/test/assertion/TestAssertion.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/test/assertion/TestAssertion.js.map +1 -1
- package/lib/graph/metamodel/pure/test/assertion/status/EqualToRelationAssertFail.d.ts +21 -0
- package/lib/graph/metamodel/pure/test/assertion/status/EqualToRelationAssertFail.d.ts.map +1 -0
- package/lib/graph/metamodel/pure/test/assertion/status/EqualToRelationAssertFail.js +21 -0
- package/lib/graph/metamodel/pure/test/assertion/status/EqualToRelationAssertFail.js.map +1 -0
- package/lib/graph-manager/AbstractPureGraphManager.d.ts +8 -2
- package/lib/graph-manager/AbstractPureGraphManager.d.ts.map +1 -1
- package/lib/graph-manager/AbstractPureGraphManager.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.d.ts +7 -2
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.js +38 -4
- package/lib/graph-manager/action/changeDetection/DataProductObserveHelper.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js +1 -1
- package/lib/graph-manager/action/changeDetection/PackageableElementObserver.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/Testable_ObserverHelper.d.ts +2 -0
- package/lib/graph-manager/action/changeDetection/Testable_ObserverHelper.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/Testable_ObserverHelper.js +15 -0
- package/lib/graph-manager/action/changeDetection/Testable_ObserverHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts +8 -2
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js +58 -5
- package/lib/graph-manager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/helpers/V1_AccessorHelper.d.ts +23 -1
- package/lib/graph-manager/protocol/pure/v1/helpers/V1_AccessorHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/helpers/V1_AccessorHelper.js +163 -5
- package/lib/graph-manager/protocol/pure/v1/helpers/V1_AccessorHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_DataResolver.d.ts +31 -0
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_DataResolver.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_DataResolver.js +40 -0
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_DataResolver.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_EmbeddedData.d.ts +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_EmbeddedData.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_EmbeddedData.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/model/data/V1_EmbeddedData.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.js +2 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_AccessPointTest.d.ts +22 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_AccessPointTest.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_AccessPointTest.js +31 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_AccessPointTest.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_DataProductTestSuite.d.ts +23 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_DataProductTestSuite.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_DataProductTestSuite.js +31 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_DataProductTestSuite.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/ingest/V1_IngestDefinition.d.ts +19 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/ingest/V1_IngestDefinition.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/ingest/V1_IngestDefinition.js +20 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/ingest/V1_IngestDefinition.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/V1_EqualToRelation.d.ts +23 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/V1_EqualToRelation.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/V1_EqualToRelation.js +32 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/V1_EqualToRelation.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/V1_TestAssertion.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/V1_TestAssertion.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/V1_TestAssertion.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/status/V1_EqualToRelationAssertFail.d.ts +23 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/status/V1_EqualToRelationAssertFail.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/status/V1_EqualToRelationAssertFail.js +32 -0
- package/lib/graph-manager/protocol/pure/v1/model/test/assertion/status/V1_EqualToRelationAssertFail.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.d.ts +6 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.js +31 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataResolverTransformer.d.ts +20 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataResolverTransformer.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataResolverTransformer.js +35 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataResolverTransformer.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_TestTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_TestTransformer.js +20 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_TestTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +4 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.d.ts +3 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.js +29 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataResolverBuilderHelper.d.ts +20 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataResolverBuilderHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataResolverBuilderHelper.js +34 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataResolverBuilderHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.js +21 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.js +23 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js +17 -3
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.js +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.js +25 -3
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataResolverSerializationHelper.d.ts +21 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataResolverSerializationHelper.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataResolverSerializationHelper.js +59 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataResolverSerializationHelper.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.d.ts +3 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.js +36 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.d.ts +4 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js +27 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js.map +1 -1
- package/lib/index.d.ts +15 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +15 -5
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +3 -3
- package/src/graph/BasicModel.ts +1 -0
- package/src/graph/Core_HashUtils.ts +7 -0
- package/src/graph/MetaModelConst.ts +10 -0
- package/src/graph/metamodel/pure/data/DataResolver.ts +49 -0
- package/src/graph/metamodel/pure/data/EmbeddedData.ts +2 -2
- package/src/graph/metamodel/pure/dataProduct/DataProduct.ts +7 -1
- package/src/graph/metamodel/pure/dataProduct/test/DataProductAccessPointTest.ts +33 -0
- package/src/graph/metamodel/pure/dataProduct/test/DataProductTestSuite.ts +34 -0
- package/src/graph/metamodel/pure/packageableElements/relation/Accessor.ts +21 -3
- package/src/graph/metamodel/pure/test/assertion/EqualToRelation.ts +36 -0
- package/src/graph/metamodel/pure/test/assertion/TestAssertion.ts +2 -0
- package/src/graph/metamodel/pure/test/assertion/status/EqualToRelationAssertFail.ts +22 -0
- package/src/graph-manager/AbstractPureGraphManager.ts +29 -3
- package/src/graph-manager/action/changeDetection/DataProductObserveHelper.ts +58 -4
- package/src/graph-manager/action/changeDetection/PackageableElementObserver.ts +1 -1
- package/src/graph-manager/action/changeDetection/Testable_ObserverHelper.ts +17 -0
- package/src/graph-manager/protocol/pure/v1/V1_PureGraphManager.ts +104 -5
- package/src/graph-manager/protocol/pure/v1/helpers/V1_AccessorHelper.ts +352 -5
- package/src/graph-manager/protocol/pure/v1/model/data/V1_DataResolver.ts +51 -0
- package/src/graph-manager/protocol/pure/v1/model/data/V1_EmbeddedData.ts +2 -2
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.ts +3 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_AccessPointTest.ts +33 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/test/V1_DataProductTestSuite.ts +34 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/ingest/V1_IngestDefinition.ts +24 -0
- package/src/graph-manager/protocol/pure/v1/model/test/assertion/V1_EqualToRelation.ts +39 -0
- package/src/graph-manager/protocol/pure/v1/model/test/assertion/V1_TestAssertion.ts +2 -0
- package/src/graph-manager/protocol/pure/v1/model/test/assertion/status/V1_EqualToRelationAssertFail.ts +37 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.ts +47 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataResolverTransformer.ts +55 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_TestTransformer.ts +25 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +6 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.ts +46 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataResolverBuilderHelper.ts +54 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.ts +28 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.ts +40 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.ts +48 -4
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataElementSerializationHelper.ts +1 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.ts +64 -8
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataResolverSerializationHelper.ts +97 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_IngestSerializationHelper.ts +64 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts +35 -1
- package/src/index.ts +26 -1
- package/tsconfig.json +13 -0
|
@@ -85,6 +85,7 @@ export enum ATOMIC_TEST_TYPE {
|
|
|
85
85
|
Service_Test = 'serviceTest',
|
|
86
86
|
Mapping_Test = 'mappingTest',
|
|
87
87
|
Function_Test = 'functionTest',
|
|
88
|
+
DataProduct_AccessPoint_Test = 'accessPointTest',
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
// NOTE: the list of auto-import are kept in `m3.pure` file in `finos/legend-pure`,
|
|
@@ -210,6 +211,15 @@ export const DATE_FORMAT = 'yyyy-MM-dd';
|
|
|
210
211
|
|
|
211
212
|
// Generation Const
|
|
212
213
|
export const DEFAULT_GENERATION_PACKAGE = 'generated';
|
|
214
|
+
|
|
215
|
+
export enum MILESTONE_INGEST_COLUMNS {
|
|
216
|
+
INGEST_LAKE_IN_ID = 'LAKE_IN_ID',
|
|
217
|
+
INGEST_LAKE_OUT_ID = 'LAKE_OUT_ID',
|
|
218
|
+
INGEST_LAKE_DIGEST = 'LAKE_DIGEST',
|
|
219
|
+
INGEST_LAKE_FROM = 'LAKE_FROM',
|
|
220
|
+
INGEST_LAKE_THRU = 'LAKE_THRU',
|
|
221
|
+
}
|
|
222
|
+
|
|
213
223
|
// Query
|
|
214
224
|
export const QUERY_PROFILE_TAG_CLASS = 'class';
|
|
215
225
|
export const QUERY_PROFILE_PATH = 'meta::pure::profiles::query';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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
|
+
|
|
17
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
18
|
+
import type { PackageableElementReference } from '../packageableElements/PackageableElementReference.js';
|
|
19
|
+
import type { EmbeddedData } from './EmbeddedData.js';
|
|
20
|
+
import { CORE_HASH_STRUCTURE } from '../../../Core_HashUtils.js';
|
|
21
|
+
import type { PackageableElement } from '../packageableElements/PackageableElement.js';
|
|
22
|
+
|
|
23
|
+
export abstract class DataResolver implements Hashable {
|
|
24
|
+
abstract get hashCode(): string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class BaseDataResolver extends DataResolver implements Hashable {
|
|
28
|
+
data!: EmbeddedData;
|
|
29
|
+
element!: PackageableElementReference<PackageableElement>;
|
|
30
|
+
|
|
31
|
+
get hashCode(): string {
|
|
32
|
+
return hashArray([
|
|
33
|
+
CORE_HASH_STRUCTURE.BASE_DATA_RESOLVER,
|
|
34
|
+
this.data,
|
|
35
|
+
this.element.valueForSerialization ?? '',
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class ReferenceDataResolver extends DataResolver implements Hashable {
|
|
41
|
+
element!: PackageableElementReference<PackageableElement>;
|
|
42
|
+
|
|
43
|
+
get hashCode(): string {
|
|
44
|
+
return hashArray([
|
|
45
|
+
CORE_HASH_STRUCTURE.REFERENCE_DATA_RESOLVER,
|
|
46
|
+
this.element.valueForSerialization ?? '',
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -135,15 +135,15 @@ export class RelationRowTestData implements Hashable {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
export class RelationElement implements Hashable {
|
|
138
|
-
paths!: string[];
|
|
139
138
|
columns!: string[];
|
|
139
|
+
paths!: string[];
|
|
140
140
|
rows: RelationRowTestData[] = [];
|
|
141
141
|
|
|
142
142
|
get hashCode(): string {
|
|
143
143
|
return hashArray([
|
|
144
144
|
CORE_HASH_STRUCTURE.RELATION_ELEMENT,
|
|
145
|
-
hashArray(this.paths),
|
|
146
145
|
hashArray(this.columns),
|
|
146
|
+
hashArray(this.paths),
|
|
147
147
|
hashArray(this.rows),
|
|
148
148
|
]);
|
|
149
149
|
}
|
|
@@ -38,10 +38,13 @@ import type { Class } from '../packageableElements/domain/Class.js';
|
|
|
38
38
|
import type { Enumeration } from '../packageableElements/domain/Enumeration.js';
|
|
39
39
|
import type { Association } from '../packageableElements/domain/Association.js';
|
|
40
40
|
import type { EmbeddedData } from '../data/EmbeddedData.js';
|
|
41
|
+
import type { DataProductTestSuite } from './test/DataProductTestSuite.js';
|
|
42
|
+
import type { Testable } from '../test/Testable.js';
|
|
41
43
|
import { ConcreteFunctionDefinition } from '../packageableElements/function/ConcreteFunctionDefinition.js';
|
|
42
44
|
import { generateFunctionPrettyName } from '../../../helpers/PureLanguageHelper.js';
|
|
43
45
|
import type { StereotypeReference } from '../packageableElements/domain/StereotypeReference.js';
|
|
44
46
|
import type { AppDirNode } from '../packageableElements/ingest/IngestDefinition.js';
|
|
47
|
+
import type { RelationType } from '../packageableElements/relation/RelationType.js';
|
|
45
48
|
|
|
46
49
|
export abstract class AccessPoint implements Hashable {
|
|
47
50
|
id: string;
|
|
@@ -101,6 +104,7 @@ export class LakehouseAccessPoint extends AccessPoint {
|
|
|
101
104
|
classification: string | undefined;
|
|
102
105
|
func: RawLambda;
|
|
103
106
|
reproducible: boolean | undefined;
|
|
107
|
+
__internal__RelationType: RelationType | undefined;
|
|
104
108
|
|
|
105
109
|
constructor(
|
|
106
110
|
id: string,
|
|
@@ -507,7 +511,7 @@ export class AppDirOwner extends DataProductOwner implements Hashable {
|
|
|
507
511
|
}
|
|
508
512
|
}
|
|
509
513
|
|
|
510
|
-
export class DataProduct extends PackageableElement {
|
|
514
|
+
export class DataProduct extends PackageableElement implements Testable {
|
|
511
515
|
title: string | undefined;
|
|
512
516
|
description: string | undefined;
|
|
513
517
|
icon: DataProductIcon | undefined;
|
|
@@ -518,6 +522,7 @@ export class DataProduct extends PackageableElement {
|
|
|
518
522
|
sampleValues: EmbeddedData[] | undefined;
|
|
519
523
|
operationalMetadata: DataProductOperationalMetadata | undefined;
|
|
520
524
|
owner: DataProductOwner | undefined;
|
|
525
|
+
tests: DataProductTestSuite[] = [];
|
|
521
526
|
|
|
522
527
|
override accept_PackageableElementVisitor<T>(
|
|
523
528
|
visitor: PackageableElementVisitor<T>,
|
|
@@ -540,6 +545,7 @@ export class DataProduct extends PackageableElement {
|
|
|
540
545
|
hashArray(this.sampleValues ?? []),
|
|
541
546
|
this.operationalMetadata ?? '',
|
|
542
547
|
this.owner ?? '',
|
|
548
|
+
hashArray(this.tests),
|
|
543
549
|
]);
|
|
544
550
|
}
|
|
545
551
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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
|
+
|
|
17
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
18
|
+
import { AtomicTest } from '../../test/Test.js';
|
|
19
|
+
import { CORE_HASH_STRUCTURE } from '../../../../Core_HashUtils.js';
|
|
20
|
+
|
|
21
|
+
export class DataProductAccessPointTest extends AtomicTest implements Hashable {
|
|
22
|
+
accessPointId!: string;
|
|
23
|
+
|
|
24
|
+
get hashCode(): string {
|
|
25
|
+
return hashArray([
|
|
26
|
+
CORE_HASH_STRUCTURE.DATA_PRODUCT_ACCESS_POINT_TEST,
|
|
27
|
+
this.id,
|
|
28
|
+
this.doc ?? '',
|
|
29
|
+
this.accessPointId,
|
|
30
|
+
hashArray(this.assertions),
|
|
31
|
+
]);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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
|
+
|
|
17
|
+
import { hashArray, type Hashable } from '@finos/legend-shared';
|
|
18
|
+
import { TestSuite } from '../../test/Test.js';
|
|
19
|
+
import type { DataResolver } from '../../data/DataResolver.js';
|
|
20
|
+
import { CORE_HASH_STRUCTURE } from '../../../../Core_HashUtils.js';
|
|
21
|
+
|
|
22
|
+
export class DataProductTestSuite extends TestSuite implements Hashable {
|
|
23
|
+
testData: DataResolver[] | undefined;
|
|
24
|
+
|
|
25
|
+
override get hashCode(): string {
|
|
26
|
+
return hashArray([
|
|
27
|
+
CORE_HASH_STRUCTURE.DATA_PRODUCT_TEST_SUITE,
|
|
28
|
+
this.id,
|
|
29
|
+
this.doc ?? '',
|
|
30
|
+
this.testData?.length ? hashArray(this.testData) : '',
|
|
31
|
+
hashArray(this.tests),
|
|
32
|
+
]);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
import { hashArray, isNonNullable, type Hashable } from '@finos/legend-shared';
|
|
18
18
|
import type { RelationType } from './RelationType.js';
|
|
19
|
-
import
|
|
20
|
-
import
|
|
19
|
+
import { DataProduct } from '../../dataProduct/DataProduct.js';
|
|
20
|
+
import { IngestDefinition } from '../ingest/IngestDefinition.js';
|
|
21
21
|
import type { Database } from '../store/relational/model/Database.js';
|
|
22
22
|
import { InstanceValue } from '../../valueSpecification/InstanceValue.js';
|
|
23
23
|
import { Multiplicity } from '../domain/Multiplicity.js';
|
|
@@ -93,7 +93,7 @@ export class IngestionAccessor extends Accessor {
|
|
|
93
93
|
return 'Ingestion Source';
|
|
94
94
|
}
|
|
95
95
|
override get accessorLabel(): string {
|
|
96
|
-
return '
|
|
96
|
+
return 'Dataset';
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
override get schemaLabel(): string | undefined {
|
|
@@ -116,6 +116,24 @@ export class RelationalStoreAccessor extends Accessor implements Hashable {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
/**
|
|
120
|
+
* Returns the accessor item label for the given element owner.
|
|
121
|
+
* Labels mirror the corresponding Accessor subclass `accessorLabel` getters,
|
|
122
|
+
* which are the authoritative source but require a full Accessor instance to
|
|
123
|
+
* call. Use this helper when only the owner element is available.
|
|
124
|
+
*/
|
|
125
|
+
export const getAccessorItemLabelForElement = (
|
|
126
|
+
element: AccessorOwner,
|
|
127
|
+
): string => {
|
|
128
|
+
if (element instanceof DataProduct) {
|
|
129
|
+
return 'Access Point'; // DataProductAccessor.accessorLabel
|
|
130
|
+
}
|
|
131
|
+
if (element instanceof IngestDefinition) {
|
|
132
|
+
return 'Data Set'; // IngestionAccessor.accessorLabel
|
|
133
|
+
}
|
|
134
|
+
return 'Table'; // RelationalStoreAccessor.accessorLabel
|
|
135
|
+
};
|
|
136
|
+
|
|
119
137
|
export class AccessorInstanceValue extends InstanceValue implements Hashable {
|
|
120
138
|
override values: Accessor[] = [];
|
|
121
139
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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
|
+
|
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
|
18
|
+
import { CORE_HASH_STRUCTURE } from '../../../../../graph/Core_HashUtils.js';
|
|
19
|
+
import type { RelationElement } from '../../data/EmbeddedData.js';
|
|
20
|
+
import { type TestAssertionVisitor, TestAssertion } from './TestAssertion.js';
|
|
21
|
+
|
|
22
|
+
export class EqualToRelation extends TestAssertion {
|
|
23
|
+
expected!: RelationElement;
|
|
24
|
+
|
|
25
|
+
get hashCode(): string {
|
|
26
|
+
return hashArray([
|
|
27
|
+
CORE_HASH_STRUCTURE.EQUAL_TO_RELATION,
|
|
28
|
+
this.id,
|
|
29
|
+
this.expected,
|
|
30
|
+
]);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
accept_TestAssertionVisitor<T>(visitor: TestAssertionVisitor<T>): T {
|
|
34
|
+
return visitor.visit_EqualToRelation(this);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -18,6 +18,7 @@ import type { Hashable } from '@finos/legend-shared';
|
|
|
18
18
|
import type { AtomicTest } from '../Test.js';
|
|
19
19
|
import type { EqualTo } from './EqualTo.js';
|
|
20
20
|
import type { EqualToJson } from './EqualToJson.js';
|
|
21
|
+
import type { EqualToRelation } from './EqualToRelation.js';
|
|
21
22
|
import type { EqualToTDS } from './EqualToTDS.js';
|
|
22
23
|
|
|
23
24
|
export abstract class TestAssertion implements Hashable {
|
|
@@ -33,4 +34,5 @@ export interface TestAssertionVisitor<T> {
|
|
|
33
34
|
visit_EqualTo(equal: EqualTo): T;
|
|
34
35
|
visit_EqualToJSON(equal: EqualToJson): T;
|
|
35
36
|
visit_EqualToTDS(equal: EqualToTDS): T;
|
|
37
|
+
visit_EqualToRelation(equal: EqualToRelation): T;
|
|
36
38
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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
|
+
|
|
17
|
+
import { AssertFail } from './AssertFail.js';
|
|
18
|
+
|
|
19
|
+
export class EqualToRelationAssertFail extends AssertFail {
|
|
20
|
+
expected!: string;
|
|
21
|
+
actual!: string;
|
|
22
|
+
}
|
|
@@ -130,8 +130,15 @@ import type {
|
|
|
130
130
|
import type { DeployProjectResponse } from './action/dev-metadata/DeployProjectResponse.js';
|
|
131
131
|
import type { DataProductAnalysisQueryResult } from './action/analytics/data-product/DataProductAnalysis.js';
|
|
132
132
|
import type { MetadataRequestOptions } from './action/dev-metadata/MetadataRequestOptions.js';
|
|
133
|
-
import type {
|
|
134
|
-
|
|
133
|
+
import type {
|
|
134
|
+
DataProduct,
|
|
135
|
+
DataProductAccessType,
|
|
136
|
+
} from '../graph/metamodel/pure/dataProduct/DataProduct.js';
|
|
137
|
+
import type {
|
|
138
|
+
Accessor,
|
|
139
|
+
DataProductAccessor,
|
|
140
|
+
} from '../graph/metamodel/pure/packageableElements/relation/Accessor.js';
|
|
141
|
+
import type { IngestDefinition } from '../graph/metamodel/pure/packageableElements/ingest/IngestDefinition.js';
|
|
135
142
|
|
|
136
143
|
export interface TEMPORARY__EngineSetupConfig {
|
|
137
144
|
env: string;
|
|
@@ -449,6 +456,19 @@ export abstract class AbstractPureGraphManager {
|
|
|
449
456
|
},
|
|
450
457
|
): Accessor | undefined;
|
|
451
458
|
|
|
459
|
+
abstract buildDataProductAccessor(
|
|
460
|
+
element: DataProduct,
|
|
461
|
+
graph: PureModel,
|
|
462
|
+
options?: {
|
|
463
|
+
tableName: string | undefined;
|
|
464
|
+
},
|
|
465
|
+
): Promise<DataProductAccessor | undefined>;
|
|
466
|
+
|
|
467
|
+
abstract collectAccessorsInRawLambda(
|
|
468
|
+
rawLambda: RawLambda,
|
|
469
|
+
graph: PureModel,
|
|
470
|
+
): Promise<Accessor[]>;
|
|
471
|
+
|
|
452
472
|
// ------------------------------------------- SDLC -------------------------------------------
|
|
453
473
|
|
|
454
474
|
abstract createSandboxProject(): Promise<{
|
|
@@ -797,7 +817,7 @@ export abstract class AbstractPureGraphManager {
|
|
|
797
817
|
sql: string,
|
|
798
818
|
): Promise<string>;
|
|
799
819
|
|
|
800
|
-
// ------------------------------------------- Function
|
|
820
|
+
// ------------------------------------------- Function ------------------------------------createDataProductAccessor-------
|
|
801
821
|
|
|
802
822
|
abstract getAvailableFunctionActivatorConfigurations(
|
|
803
823
|
coreModel: CoreModel,
|
|
@@ -819,6 +839,12 @@ export abstract class AbstractPureGraphManager {
|
|
|
819
839
|
graphData: GraphData,
|
|
820
840
|
): Promise<DeploymentResult>;
|
|
821
841
|
|
|
842
|
+
// --------------------------------------------- Ingeset Defintion --------------------------------------
|
|
843
|
+
|
|
844
|
+
abstract getIngestDefinitionDatasetNames(
|
|
845
|
+
ingestDefinition: IngestDefinition,
|
|
846
|
+
): string[];
|
|
847
|
+
|
|
822
848
|
// --------------------------------------------- Relational ---------------------------------------------
|
|
823
849
|
|
|
824
850
|
abstract generateModelsFromDatabaseSpecification(
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { makeObservable, observable, override } from 'mobx';
|
|
17
|
+
import { computed, makeObservable, observable, override } from 'mobx';
|
|
18
18
|
import {
|
|
19
19
|
type AccessPoint,
|
|
20
20
|
type AccessPointGroup,
|
|
@@ -35,16 +35,26 @@ import {
|
|
|
35
35
|
type DataProductOperationalMetadata,
|
|
36
36
|
AppDirOwner,
|
|
37
37
|
} from '../../../graph/metamodel/pure/dataProduct/DataProduct.js';
|
|
38
|
-
import {
|
|
38
|
+
import type { AppDirNode } from '../../../graph/metamodel/pure/packageableElements/ingest/IngestDefinition.js';
|
|
39
|
+
import {
|
|
40
|
+
type DataResolver,
|
|
41
|
+
BaseDataResolver,
|
|
42
|
+
ReferenceDataResolver,
|
|
43
|
+
} from '../../../graph/metamodel/pure/data/DataResolver.js';
|
|
44
|
+
import type { DataProductTestSuite } from '../../../graph/metamodel/pure/dataProduct/test/DataProductTestSuite.js';
|
|
39
45
|
import {
|
|
40
46
|
observe_Abstract_PackageableElement,
|
|
47
|
+
type ObserverContext,
|
|
41
48
|
observe_PackageableElementReference,
|
|
42
49
|
skipObserved,
|
|
50
|
+
skipObservedWithContext,
|
|
43
51
|
} from './CoreObserverHelper.js';
|
|
44
52
|
import {
|
|
45
53
|
observe_StereotypeReference,
|
|
46
54
|
observe_TaggedValue,
|
|
47
55
|
} from './DomainObserverHelper.js';
|
|
56
|
+
import { observe_EmbeddedData } from './DSL_Data_ObserverHelper.js';
|
|
57
|
+
import { observe_AtomicTest } from './Testable_ObserverHelper.js';
|
|
48
58
|
|
|
49
59
|
export const observe_AccessPoint = skipObserved(
|
|
50
60
|
(metamodel: AccessPoint): AccessPoint => {
|
|
@@ -252,8 +262,48 @@ export const observe_AppDirOwner = skipObserved(
|
|
|
252
262
|
},
|
|
253
263
|
);
|
|
254
264
|
|
|
255
|
-
export const
|
|
256
|
-
(metamodel:
|
|
265
|
+
export const observe_DataResolver = skipObservedWithContext(
|
|
266
|
+
(metamodel: DataResolver, context: ObserverContext) => {
|
|
267
|
+
if (metamodel instanceof BaseDataResolver) {
|
|
268
|
+
makeObservable(metamodel, {
|
|
269
|
+
element: observable,
|
|
270
|
+
data: observable,
|
|
271
|
+
hashCode: computed,
|
|
272
|
+
});
|
|
273
|
+
observe_PackageableElementReference(metamodel.element);
|
|
274
|
+
observe_EmbeddedData(metamodel.data, context);
|
|
275
|
+
} else if (metamodel instanceof ReferenceDataResolver) {
|
|
276
|
+
makeObservable(metamodel, {
|
|
277
|
+
element: observable,
|
|
278
|
+
hashCode: computed,
|
|
279
|
+
});
|
|
280
|
+
observe_PackageableElementReference(metamodel.element);
|
|
281
|
+
}
|
|
282
|
+
return metamodel;
|
|
283
|
+
},
|
|
284
|
+
);
|
|
285
|
+
|
|
286
|
+
export const observe_DataProductTestSuite = skipObservedWithContext(
|
|
287
|
+
(
|
|
288
|
+
metamodel: DataProductTestSuite,
|
|
289
|
+
context: ObserverContext,
|
|
290
|
+
): DataProductTestSuite => {
|
|
291
|
+
makeObservable(metamodel, {
|
|
292
|
+
id: observable,
|
|
293
|
+
tests: observable,
|
|
294
|
+
testData: observable,
|
|
295
|
+
hashCode: computed,
|
|
296
|
+
});
|
|
297
|
+
metamodel.tests.forEach((test) => observe_AtomicTest(test, context));
|
|
298
|
+
metamodel.testData?.forEach((testData) =>
|
|
299
|
+
observe_DataResolver(testData, context),
|
|
300
|
+
);
|
|
301
|
+
return metamodel;
|
|
302
|
+
},
|
|
303
|
+
);
|
|
304
|
+
|
|
305
|
+
export const observe_DataProduct = skipObservedWithContext(
|
|
306
|
+
(metamodel: DataProduct, context: ObserverContext): DataProduct => {
|
|
257
307
|
observe_Abstract_PackageableElement(metamodel);
|
|
258
308
|
|
|
259
309
|
makeObservable<DataProduct, '_elementHashCode'>(metamodel, {
|
|
@@ -266,6 +316,7 @@ export const observe_DataProduct = skipObserved(
|
|
|
266
316
|
type: observable,
|
|
267
317
|
operationalMetadata: observable,
|
|
268
318
|
owner: observable,
|
|
319
|
+
tests: observable,
|
|
269
320
|
});
|
|
270
321
|
|
|
271
322
|
if (metamodel.supportInfo) {
|
|
@@ -281,6 +332,9 @@ export const observe_DataProduct = skipObserved(
|
|
|
281
332
|
observe_AppDirOwner(metamodel.owner);
|
|
282
333
|
}
|
|
283
334
|
metamodel.accessPointGroups.forEach(observe_APG);
|
|
335
|
+
metamodel.tests.forEach((testSuite) =>
|
|
336
|
+
observe_DataProductTestSuite(testSuite, context),
|
|
337
|
+
);
|
|
284
338
|
return metamodel;
|
|
285
339
|
},
|
|
286
340
|
);
|
|
@@ -185,7 +185,7 @@ class PackageableElementObserver implements PackageableElementVisitor<void> {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
visit_DataProduct(element: DataProduct): void {
|
|
188
|
-
observe_DataProduct(element);
|
|
188
|
+
observe_DataProduct(element, this.observerContext);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
visit_Mapping(element: Mapping): void {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { computed, makeObservable, observable } from 'mobx';
|
|
18
|
+
import { DataProductAccessPointTest } from '../../../graph/metamodel/pure/dataProduct/test/DataProductAccessPointTest.js';
|
|
18
19
|
import { MappingTest } from '../../../graph/metamodel/pure/packageableElements/mapping/MappingTest.js';
|
|
19
20
|
import { MappingTestSuite } from '../../../graph/metamodel/pure/packageableElements/mapping/MappingTestSuite.js';
|
|
20
21
|
import { ServiceTest } from '../../../graph/metamodel/pure/packageableElements/service/ServiceTest.js';
|
|
@@ -41,6 +42,20 @@ import {
|
|
|
41
42
|
import { FunctionTest } from '../../../graph/metamodel/pure/packageableElements/function/test/FunctionTest.js';
|
|
42
43
|
import { observe_FunctionTest } from './DomainObserverHelper.js';
|
|
43
44
|
|
|
45
|
+
export const observe_DataProductAccessPointTest = skipObserved(
|
|
46
|
+
(metamodel: DataProductAccessPointTest): DataProductAccessPointTest => {
|
|
47
|
+
makeObservable(metamodel, {
|
|
48
|
+
id: observable,
|
|
49
|
+
doc: observable,
|
|
50
|
+
accessPointId: observable,
|
|
51
|
+
assertions: observable,
|
|
52
|
+
hashCode: computed,
|
|
53
|
+
});
|
|
54
|
+
metamodel.assertions.forEach(observe_TestAssertion);
|
|
55
|
+
return metamodel;
|
|
56
|
+
},
|
|
57
|
+
);
|
|
58
|
+
|
|
44
59
|
export const observe_EqualTo = skipObserved((metamodel: EqualTo): EqualTo => {
|
|
45
60
|
makeObservable(metamodel, {
|
|
46
61
|
id: observable,
|
|
@@ -87,6 +102,8 @@ export function observe_AtomicTest(
|
|
|
87
102
|
return observe_MappingTest(metamodel, context);
|
|
88
103
|
} else if (metamodel instanceof FunctionTest) {
|
|
89
104
|
return observe_FunctionTest(metamodel);
|
|
105
|
+
} else if (metamodel instanceof DataProductAccessPointTest) {
|
|
106
|
+
return observe_DataProductAccessPointTest(metamodel);
|
|
90
107
|
}
|
|
91
108
|
const extraAtomicTestBuilder = context.plugins.flatMap(
|
|
92
109
|
(plugin) =>
|