|
|
@ -171,9 +171,14 @@ export default class Filter implements FilterType { |
|
|
|
filter: Partial<FilterType>, |
|
|
|
filter: Partial<FilterType>, |
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
ncMeta = Noco.ncMeta, |
|
|
|
) { |
|
|
|
) { |
|
|
|
if (!(id && (filter.fk_view_id || filter.fk_hook_id))) { |
|
|
|
if ( |
|
|
|
|
|
|
|
!( |
|
|
|
|
|
|
|
id && |
|
|
|
|
|
|
|
(filter.fk_view_id || filter.fk_hook_id || filter.fk_parent_column_id) |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
) { |
|
|
|
throw new Error( |
|
|
|
throw new Error( |
|
|
|
`Mandatory fields missing in FILTER_EXP cache population : id(${id}), fk_view_id(${filter.fk_view_id}), fk_hook_id(${filter.fk_hook_id})`, |
|
|
|
`Mandatory fields missing in FILTER_EXP cache population : id(${id}), fk_view_id(${filter.fk_view_id}), fk_hook_id(${filter.fk_hook_id}), fk_parent_column_id(${filter.fk_parent_column_id})`, |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
const key = `${CacheScope.FILTER_EXP}:${id}`; |
|
|
|
const key = `${CacheScope.FILTER_EXP}:${id}`; |
|
|
|