Ensure property hierarchy is honoured #11123
Annotations
7 errors
packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx#L1406
expect(received).toStrictEqual(expected) // deep equality
- Expected - 6
+ Received + 6
@@ -47,11 +47,11 @@
"fullPath": "model::Colony",
},
],
},
],
- "property": "zipcode",
+ "property": "id",
},
],
"parameters": Array [
Object {
"_type": "var",
@@ -84,11 +84,11 @@
"fullPath": "model::Colony",
},
],
},
],
- "property": "streetName",
+ "property": "zipcode",
},
],
"parameters": Array [
Object {
"_type": "var",
@@ -121,11 +121,11 @@
"fullPath": "model::Colony",
},
],
},
],
- "property": "id",
+ "property": "streetName",
},
],
"parameters": Array [
Object {
"_type": "var",
@@ -142,19 +142,19 @@
"upperBound": 3,
},
"values": Array [
Object {
"_type": "string",
- "value": "Address/@(Colony)Zipcode",
+ "value": "Address/@(Colony)Id",
},
Object {
"_type": "string",
- "value": "Address/@(Colony)Street Name",
+ "value": "Address/@(Colony)Zipcode",
},
Object {
"_type": "string",
- "value": "Address/@(Colony)Id",
+ "value": "Address/@(Colony)Street Name",
},
],
},
],
},
at Object.toStrictEqual (packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx:1406:7)
|
packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx#L1465
expect(received).toStrictEqual(expected) // deep equality
- Expected - 6
+ Received + 6
@@ -53,11 +53,11 @@
"fullPath": "model::Colony",
},
],
},
],
- "property": "zipcode",
+ "property": "id",
},
],
"parameters": Array [
Object {
"_type": "var",
@@ -96,11 +96,11 @@
"fullPath": "model::Colony",
},
],
},
],
- "property": "streetName",
+ "property": "zipcode",
},
],
"parameters": Array [
Object {
"_type": "var",
@@ -139,11 +139,11 @@
"fullPath": "model::Colony",
},
],
},
],
- "property": "id",
+ "property": "streetName",
},
],
"parameters": Array [
Object {
"_type": "var",
@@ -160,19 +160,19 @@
"upperBound": 3,
},
"values": Array [
Object {
"_type": "string",
- "value": "Employees/Address/@(Colony)Zipcode",
+ "value": "Employees/Address/@(Colony)Id",
},
Object {
"_type": "string",
- "value": "Employees/Address/@(Colony)Street Name",
+ "value": "Employees/Address/@(Colony)Zipcode",
},
Object {
"_type": "string",
- "value": "Employees/Address/@(Colony)Id",
+ "value": "Employees/Address/@(Colony)Street Name",
},
],
},
],
},
at toStrictEqual (packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx:1465:9)
at node_modules/@testing-library/react/dist/act-compat.js:48:24
at act (node_modules/react/cjs/react.development.js:2512:16)
at node_modules/@testing-library/react/dist/act-compat.js:47:25
at Object.<anonymous> (packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx:1460:8)
|
packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx#L1520
expect(received).toStrictEqual(expected) // deep equality
- Expected - 6
+ Received + 6
@@ -36,25 +36,25 @@
"property": "address",
"subTrees": Array [
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
- "property": "zipcode",
+ "property": "id",
"subTrees": Array [],
"subTypeTrees": Array [],
},
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
- "property": "streetName",
+ "property": "zipcode",
"subTrees": Array [],
"subTypeTrees": Array [],
},
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
- "property": "id",
+ "property": "streetName",
"subTrees": Array [],
"subTypeTrees": Array [],
},
],
"subType": "model::Colony",
@@ -83,25 +83,25 @@
"property": "address",
"subTrees": Array [
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
- "property": "zipcode",
+ "property": "id",
"subTrees": Array [],
"subTypeTrees": Array [],
},
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
- "property": "streetName",
+ "property": "zipcode",
"subTrees": Array [],
"subTypeTrees": Array [],
},
Object {
"_type": "propertyGraphFetchTree",
"parameters": Array [],
- "property": "id",
+ "property": "streetName",
"subTrees": Array [],
"subTypeTrees": Array [],
},
],
"subType": "model::Colony",
at Object.toStrictEqual (packages/legend-query-builder/src/components/__tests__/QueryBuilderFetchStructure.test.tsx:1520:7)
|
packages/legend-query-builder/src/stores/__tests__/QueryBuilderExplorerTreeNodeMappingAnalysis.test.ts#L328
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"childNodes": [], "mappingData": {"mapped": true}, "name": "name"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "zip"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}], "mappingData": {"mapped": true}, "name": "model::AddressType2"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}], "mappingData": {"mapped": true}, "name": "model::AddressType3"}], "mappingData": {"mapped": true}, "name": "model::AddressType1"}], "mappingData": {"mapped": true}, "name": "address"}]
Received:
[{"childNodes": [], "mappingData": {"mapped": true}, "name": "name"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "zip"}], "mappingData": {"mapped": true}, "name": "model::AddressType2"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}], "mappingData": {"mapped": true}, "name": "model::AddressType3"}], "mappingData": {"mapped": true}, "name": "model::AddressType1"}], "mappingData": {"mapped": true}, "name": "address"}]
at toIncludeSameMembers (packages/legend-query-builder/src/stores/__tests__/QueryBuilderExplorerTreeNodeMappingAnalysis.test.ts:328:9)
|
packages/legend-query-builder/src/stores/__tests__/QueryBuilderExplorerTreeNodeMappingAnalysis.test.ts#L328
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"childNodes": [{"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "position"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "name"}], "mappingData": {"mapped": true}, "name": "firm"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "rank"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "subName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "firm"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "rank"}], "mappingData": {"mapped": true}, "name": "model::SubPosition"}], "mappingData": {"mapped": true}, "name": "position"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "name"}]
Received:
[{"childNodes": [{"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "position"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "name"}], "mappingData": {"mapped": true}, "name": "firm"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "rank"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "firm"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "rank"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "subName"}], "mappingData": {"mapped": true}, "name": "model::SubPosition"}], "mappingData": {"mapped": true}, "name": "position"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "name"}]
at toIncludeSameMembers (packages/legend-query-builder/src/stores/__tests__/QueryBuilderExplorerTreeNodeMappingAnalysis.test.ts:328:9)
|
packages/legend-query-builder/src/stores/__tests__/QueryBuilderExplorerTreeNodeMappingAnalysis.test.ts#L328
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "firstName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "lastName"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [{"childNodes": [Array], "mappingData": [Object], "name": "id"}, {"childNodes": [Array], "mappingData": [Object], "name": "zipcode"}, {"childNodes": [Array], "mappingData": [Object], "name": "streetName"}], "mappingData": {"mapped": true}, "name": "model::Colony"}], "mappingData": {"mapped": true}, "name": "model::Street"}], "mappingData": {"mapped": true}, "name": "address"}], "mappingData": {"mapped": true}, "name": "employees"}, {"childNodes": [], "mappingData": {"mapped": false}, "name": "legalName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "Name"}]
Received:
[{"childNodes": [], "mappingData": {"mapped": false}, "name": "legalName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "Name"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "firstName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "lastName"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [{"childNodes": [], "mappingData": {"mapped": true}, "name": "streetName"}, {"childNodes": [], "mappingData": {"mapped": true}, "name": "zipcode"}, {"childNodes": [{"childNodes": [Array], "mappingData": [Object], "name": "zipcode"}, {"childNodes": [Array], "mappingData": [Object], "name": "streetName"}, {"childNodes": [Array], "mappingData": [Object], "name": "id"}], "mappingData": {"mapped": true}, "name": "model::Colony"}], "mappingData": {"mapped": true}, "name": "model::Street"}], "mappingData": {"mapped": true}, "name": "address"}], "mappingData": {"mapped": true}, "name": "employees"}]
at toIncludeSameMembers (packages/legend-query-builder/src/stores/__tests__/QueryBuilderExplorerTreeNodeMappingAnalysis.test.ts:328:9)
|
|
This job failed
Loading