Merge branch 'master' into flatpickr-cleanup

This commit is contained in:
Andrew Kingston 2024-04-26 16:28:54 +01:00 committed by GitHub
commit 30514ccb50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 8 deletions

View File

@ -128,6 +128,7 @@ export async function importToRows(
for (let i = 0; i < data.length; i++) {
let row = data[i]
row._id = generateRowID(table._id!)
row.type = "row"
row.tableId = table._id
// We use a reference to table here and update it after input processing,

View File

@ -61,9 +61,7 @@ describe.each([
}
async function createRows(rows: Record<string, any>[]) {
for (const row of rows) {
await config.api.row.save(table._id!, row)
}
await config.api.row.bulkImport(table._id!, { rows })
}
class SearchAssertion {

View File

@ -131,11 +131,6 @@ export async function search(
},
relationships,
}
// make sure only rows returned
request.filters!.equal = {
...request.filters?.equal,
type: "row",
}
if (params.sort) {
const sortField = table.schema[params.sort]