Merge branch 'fix/multiple-relationships-same-table' into chore/negated-join-filters

This commit is contained in:
Adria Navarro 2024-10-16 13:51:39 +02:00 committed by GitHub
commit a476da08fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -2282,7 +2282,7 @@ describe.each([
RelationshipType.ONE_TO_MANY, RelationshipType.ONE_TO_MANY,
RelationshipType.MANY_TO_ONE, RelationshipType.MANY_TO_ONE,
RelationshipType.MANY_TO_MANY, RelationshipType.MANY_TO_MANY,
])("relations", relationshipType => { ])("relations (%s)", relationshipType => {
let productCategoryTable: Table, productCatRows: Row[] let productCategoryTable: Table, productCatRows: Row[]
beforeAll(async () => { beforeAll(async () => {
@ -2554,10 +2554,13 @@ describe.each([
}) })
isSql && isSql &&
describe("big relations", () => { describe.each([
RelationshipType.MANY_TO_ONE,
RelationshipType.MANY_TO_MANY,
])("big relations (%s)", relationshipType => {
beforeAll(async () => { beforeAll(async () => {
const { relatedTable, tableId } = await basicRelationshipTables( const { relatedTable, tableId } = await basicRelationshipTables(
RelationshipType.MANY_TO_ONE relationshipType
) )
tableOrViewId = tableId tableOrViewId = tableId
const mainRow = await config.api.row.save(tableOrViewId, { const mainRow = await config.api.row.save(tableOrViewId, {