feat: multiple aspect override in DV
Multiple DV filter aspects
This change allows:
{
fieldName: 'tags',
columnName: 'Kategorieart',
selectionSet: { tags: 1 },
filterAspect: [
{
...ListAspectSchema(Object.values(StudentTags), 'Kategorieart', ({ value, translation }) =>
value ? translation.translate('tags', value) : '',
),
},
ExistsAspectConfig,
DoesNotExistAspectConfig,
],
},
Additionally
- Add support for
ExistsAspectConfig
/DoesNotExistAspectConfig
on array fields by introducing$size
cases - Remove
empty
fromListAspect
as this is handled by just usingDoesNotExistAspectConfig
as alternative aspect - Ensure that
ListAspect
only has correct keys as value - Added
ExistsAspectConfig
/DoesNotExistAspectConfig
to more default types, as every DB field can in theory exist/not exist. Sometimes customers want to search for that explicitly.
Edited by Daniel Schmidt