Skip to content

feat: multiple aspect override in DV

Daniel Schmidt requested to merge instantnoodl/multiple-aspect-dv into master

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,
            ],
          },

image

Additionally

  • Add support for ExistsAspectConfig/DoesNotExistAspectConfig on array fields by introducing $size cases
  • Remove empty from ListAspect as this is handled by just using DoesNotExistAspectConfig 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

Merge request reports