perf(db-mongodb): use aggregations for relationship querying #13230
main.yml
on: pull_request
changes
3s
lint
57s
Matrix: tests-e2e
Matrix: tests-int
Matrix: build-templates
Publish Canary
0s
Annotations
15 errors and 19 warnings
lint:
test/relationships/int.spec.ts#L907
Test has no assertions
|
lint
Process completed with exit code 1.
|
e2e-fields-relationship
Final attempt failed. Child_process exited with error code 1
|
e2e-fields__collections__Relationship
Final attempt failed. Child_process exited with error code 1
|
Fields › number › should properly query numbers with exists operator:
test/fields/int.spec.ts#L773
expect(received).toBe(expected) // Object.is equality
Expected: 4
Received: 5
at Object.toBe (fields/int.spec.ts:773:38)
|
Fields › json › querying › should query nested properties - exists:
test/fields/int.spec.ts#L2554
expect(received).not.toContain(expected) // indexOf
Expected value: not "67562614d71ee06b3ac1b80d"
Received array: ["67562614d71ee06b3ac1b826", "67562614d71ee06b3ac1b821", "67562614d71ee06b3ac1b81c", "67562614d71ee06b3ac1b817", "67562614d71ee06b3ac1b812", "67562614d71ee06b3ac1b80d", "67562614d71ee06b3ac1b808", "675625a8d71ee06b3ac17f26"]
at Object.toContain (fields/int.spec.ts:2554:28)
|
Fields › json › querying › should query - exists:
test/fields/int.spec.ts#L2586
expect(received).not.toContain(expected) // indexOf
Expected value: not "67562615d71ee06b3ac1b8e9"
Received array: ["67562615d71ee06b3ac1b8ee", "67562615d71ee06b3ac1b8e9", "67562615d71ee06b3ac1b8e4", "67562615d71ee06b3ac1b8df", "67562615d71ee06b3ac1b8da", "67562615d71ee06b3ac1b8d5", "67562615d71ee06b3ac1b8d0", "67562615d71ee06b3ac1b8cb", "67562615d71ee06b3ac1b8c6", "675625a8d71ee06b3ac17f26"]
at Object.toContain (fields/int.spec.ts:2586:34)
|
Fields › json › querying › exists should not return null values:
test/fields/int.spec.ts#L2618
expect(received).toHaveLength(expected)
Expected length: 0
Received length: 1
Received array: [{"array": [], "createdAt": "2024-12-08T23:04:54.877Z", "id": "67562616d71ee06b3ac1b9b3", "select": "one", "selectHasMany": [], "settings": {"category": []}, "updatedAt": "2024-12-08T23:04:54.877Z"}]
at Object.toHaveLength (fields/int.spec.ts:2618:40)
|
Fields › clearable fields - exists › exists should not return null values:
test/fields/int.spec.ts#L2868
expect(received).toHaveLength(expected)
Expected length: 0
Received length: 1
Received array: [{"array": [], "createdAt": "2024-12-08T23:05:03.660Z", "id": "6756261fd71ee06b3ac1bfb0", "select": "one", "selectHasMany": [], "settings": {"category": []}, "updatedAt": "2024-12-08T23:05:03.660Z"}]
at Object.toHaveLength (fields/int.spec.ts:2868:38)
|
collections-rest › Querying › Operators › exists - true:
test/collections-rest/int.spec.ts#L989
expect(received).toEqual(expected) // deep equality
Expected: 1
Received: 2
at Object.toEqual (collections-rest/int.spec.ts:989:34)
|
collections-rest › Querying › Operators › exists - false:
test/collections-rest/int.spec.ts#L1008
expect(received).toEqual(expected) // deep equality
Expected: 1
Received: 2
at Object.toEqual (collections-rest/int.spec.ts:1008:34)
|
Relationships › Querying › Relationships › should allow querying by relationship id field:
test/relationships/int.spec.ts#L333
expect(received).toEqual(expected) // deep equality
Expected: 3
Received: 2
at Object.toEqual (relationships/int.spec.ts:333:33)
|
Relationships › Querying › Nested Querying › should allow querying several times:
test/relationships/int.spec.ts#L967
expect(received).toHaveLength(expected)
Expected length: 1
Received length: 10
Received array: [{"createdAt": "2024-12-08T23:06:21.253Z", "id": "6756266d17b7a545ba32e0ab", "name": "first", "relation": {"createdAt": "2024-12-08T23:06:21.245Z", "id": "6756266d17b7a545ba32e0a8", "name": "second", "relation": {"createdAt": "2024-12-08T23:06:21.239Z", "id": "6756266d17b7a545ba32e0a6", "name": "third", "updatedAt": "2024-12-08T23:06:21.239Z"}, "updatedAt": "2024-12-08T23:06:21.245Z"}, "updatedAt": "2024-12-08T23:06:21.253Z"}, {"createdAt": "2024-12-08T23:06:21.245Z", "id": "6756266d17b7a545ba32e0a8", "name": "second", "relation": {"createdAt": "2024-12-08T23:06:21.239Z", "id": "6756266d17b7a545ba32e0a6", "name": "third", "updatedAt": "2024-12-08T23:06:21.239Z"}, "updatedAt": "2024-12-08T23:06:21.245Z"}, {"createdAt": "2024-12-08T23:06:21.239Z", "id": "6756266d17b7a545ba32e0a6", "name": "third", "updatedAt": "2024-12-08T23:06:21.239Z"}, {"createdAt": "2024-12-08T23:06:21.159Z", "id": "6756266d17b7a545ba32e08e", "name": "chain1", "relation": {"createdAt": "2024-12-08T23:06:21.151Z", "id": "6756266d17b7a545ba32e08b", "name": "chain2", "relation": {"createdAt": "2024-12-08T23:06:21.146Z", "id": "6756266d17b7a545ba32e089", "name": "chain3", "relation": "6756266d17b7a545ba32e08e", "updatedAt": "2024-12-08T23:06:21.176Z"}, "updatedAt": "2024-12-08T23:06:21.151Z"}, "updatedAt": "2024-12-08T23:06:21.159Z"}, {"createdAt": "2024-12-08T23:06:21.151Z", "id": "6756266d17b7a545ba32e08b", "name": "chain2", "relation": {"createdAt": "2024-12-08T23:06:21.146Z", "id": "6756266d17b7a545ba32e089", "name": "chain3", "relation": {"createdAt": "2024-12-08T23:06:21.159Z", "id": "6756266d17b7a545ba32e08e", "name": "chain1", "relation": "6756266d17b7a545ba32e08b", "updatedAt": "2024-12-08T23:06:21.159Z"}, "updatedAt": "2024-12-08T23:06:21.176Z"}, "updatedAt": "2024-12-08T23:06:21.151Z"}, {"createdAt": "2024-12-08T23:06:21.146Z", "id": "6756266d17b7a545ba32e089", "name": "chain3", "relation": {"createdAt": "2024-12-08T23:06:21.159Z", "id": "6756266d17b7a545ba32e08e", "name": "chain1", "relation": {"createdAt": "2024-12-08T23:06:21.151Z", "id": "6756266d17b7a545ba32e08b", "name": "chain2", "relation": "6756266d17b7a545ba32e089", "updatedAt": "2024-12-08T23:06:21.151Z"}, "updatedAt": "2024-12-08T23:06:21.159Z"}, "updatedAt": "2024-12-08T23:06:21.176Z"}, {"createdAt": "2024-12-08T23:06:21.011Z", "id": "6756266d17b7a545ba32e05e", "name": "chain1", "relation": {"createdAt": "2024-12-08T23:06:21.001Z", "id": "6756266d17b7a545ba32e05b", "name": "chain2", "relation": {"createdAt": "2024-12-08T23:06:20.996Z", "id": "6756266c17b7a545ba32e059", "name": "chain3", "relation": "6756266d17b7a545ba32e05e", "updatedAt": "2024-12-08T23:06:21.026Z"}, "updatedAt": "2024-12-08T23:06:21.001Z"}, "updatedAt": "2024-12-08T23:06:21.011Z"}, {"createdAt": "2024-12-08T23:06:21.001Z", "id": "6756266d17b7a545ba32e05b", "name": "chain2", "relation": {"createdAt": "2024-12-08T23:06:20.996Z", "id": "6756266c17b7a545ba32e059", "name": "chain3", "relation": {"createdAt": "2024-12-08T23:06:21.011Z", "id": "6756266d17b7a545ba32e05e", "name": "chain1", "relation": "6756266d17b7a545ba32e05b", "updatedAt": "2024-12-08T23:06:21.011Z"}, "updatedAt": "2024-12-08T23:06:21.026Z"}, "updatedAt": "2024-12-08T23:06:21.001Z"}, {"createdAt": "2024-12-08T23:06:20.996Z", "id": "6756266c17b7a545ba32e059", "name": "chain3", "relation": {"createdAt": "2024-12-08T23:06:21.011Z", "id": "6756266d17b7a545ba32e05e", "name": "chain1", "relation": {"createdAt": "2024-12-08T23:06:21.001Z", "id": "6756266d17b7a545ba32e05b", "name": "chain2", "relation": "6756266c17b7a545ba32e059", "updatedAt": "2024-12-08T23:06:21.001Z"}, "updatedAt": "2024-12-08T23:06:21.011Z"}, "updatedAt": "2024-12-08T23:06:21.026Z"}, {"createdAt": "2024-12-08T23:06:20.794Z", "id": "6756266c17b7a545ba32e019", "name": "chain1", "relation": {"createdAt": "2024-12-08T23:06:20.785Z", "id": "6756266c17b7a545ba32e016", "name": "chain2", "relation": {"createdAt": "2024-12-08T23:06:20.780Z", "id": "6756266c17b7a545ba32e014", "name": "chain3", "relation":
|
Relationships › Querying › Hierarchy › finds 1 root item with exists:
test/relationships/int.spec.ts#L1185
expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 2
at Object.toBe (relationships/int.spec.ts:1185:23)
|
All Green
Process completed with exit code 1.
|
lint:
test/relationships/int.spec.ts#L13
'Page' is defined but never used. Allowed unused vars must match /^_/u
|
lint:
test/relationships/int.spec.ts#L432
Avoid having conditionals in tests
|
lint:
test/relationships/int.spec.ts#L459
'director2' is assigned a value but never used. Allowed unused vars must match /^_/u
|
lint:
test/relationships/int.spec.ts#L500
'tree4' is assigned a value but never used. Allowed unused vars must match /^_/u
|
lint:
test/relationships/int.spec.ts#L908
'query' is assigned a value but never used. Allowed unused vars must match /^_/u
|
lint:
test/relationships/int.spec.ts#L1239
Avoid having conditionals in tests
|
lint:
test/relationships/int.spec.ts#L1395
Avoid having conditionals in tests
|
e2e-fields-relationship
Attempt 1 failed. Reason: Child_process exited with error code 1
|
e2e-fields-relationship
Attempt 2 failed. Reason: Child_process exited with error code 1
|
e2e-fields-relationship
Attempt 3 failed. Reason: Child_process exited with error code 1
|
e2e-fields-relationship
Attempt 4 failed. Reason: Child_process exited with error code 1
|
e2e-fields__collections__Relationship
Attempt 1 failed. Reason: Child_process exited with error code 1
|
e2e-fields__collections__Relationship
Attempt 2 failed. Reason: Child_process exited with error code 1
|
e2e-fields__collections__Relationship
Attempt 3 failed. Reason: Child_process exited with error code 1
|
e2e-fields__collections__Relationship
Attempt 4 failed. Reason: Child_process exited with error code 1
|
int-mongodb
Attempt 1 failed. Reason: Child_process exited with error code 1
|
int-mongodb
Attempt 2 failed. Reason: Child_process exited with error code 1
|
int-mongodb
Attempt 3 failed. Reason: Child_process exited with error code 1
|
int-mongodb
Attempt 4 failed. Reason: Child_process exited with error code 1
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
test-results-access-control
Expired
|
2.51 MB |
|
test-results-admin__e2e__2
Expired
|
14.2 MB |
|
test-results-admin__e2e__3
Expired
|
9.51 MB |
|
test-results-plugin-form-builder
Expired
|
317 KB |
|