Merge branch 'master' into flatpickr-cleanup
This commit is contained in:
commit
30514ccb50
|
@ -128,6 +128,7 @@ export async function importToRows(
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
let row = data[i]
|
let row = data[i]
|
||||||
row._id = generateRowID(table._id!)
|
row._id = generateRowID(table._id!)
|
||||||
|
row.type = "row"
|
||||||
row.tableId = table._id
|
row.tableId = table._id
|
||||||
|
|
||||||
// We use a reference to table here and update it after input processing,
|
// We use a reference to table here and update it after input processing,
|
||||||
|
|
|
@ -61,9 +61,7 @@ describe.each([
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createRows(rows: Record<string, any>[]) {
|
async function createRows(rows: Record<string, any>[]) {
|
||||||
for (const row of rows) {
|
await config.api.row.bulkImport(table._id!, { rows })
|
||||||
await config.api.row.save(table._id!, row)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class SearchAssertion {
|
class SearchAssertion {
|
||||||
|
|
|
@ -131,11 +131,6 @@ export async function search(
|
||||||
},
|
},
|
||||||
relationships,
|
relationships,
|
||||||
}
|
}
|
||||||
// make sure only rows returned
|
|
||||||
request.filters!.equal = {
|
|
||||||
...request.filters?.equal,
|
|
||||||
type: "row",
|
|
||||||
}
|
|
||||||
|
|
||||||
if (params.sort) {
|
if (params.sort) {
|
||||||
const sortField = table.schema[params.sort]
|
const sortField = table.schema[params.sort]
|
||||||
|
|
Loading…
Reference in New Issue