Browse Source

fix: ignore filters for formula column

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
sync
Raju Udava 3 years ago
parent
commit
1c23850200
  1. 11
      packages/nocodb/tests/sync/sync.js

11
packages/nocodb/tests/sync/sync.js

@ -1251,15 +1251,22 @@ async function nc_configureFilters(viewId, f) {
for(let i=0; i<f.filterSet.length; i++) { for(let i=0; i<f.filterSet.length; i++) {
let filter = f.filterSet[i] let filter = f.filterSet[i]
let colSchema = await nc_getColumnSchema(filter.columnId) let colSchema = await nc_getColumnSchema(filter.columnId)
// column not available;
// one of not migrated column;
if (!colSchema) {
addUserInfo(`Filter configuration partial: ${sMap.getNcNameFromAtId(viewId)}`)
continue;
}
let columnId = colSchema.id; let columnId = colSchema.id;
let datatype = colSchema.uidt; let datatype = colSchema.uidt;
let ncFilters = [] let ncFilters = []
// console.log(filter) // console.log(filter)
if(datatype === UITypes.Date) { if(datatype === UITypes.Date) {
// skip filters over data datatype // skip filters over data datatype
addUserInfo(`Filter configuration partial: ${sMap.getNcNameFromAtId(viewId)}`)
continue; continue;
} }

Loading…
Cancel
Save