feat: Add group by to collection view (Issue 3614) (#4486)

This commit is contained in:
Kancer (Nilay) Gökırmak
2020-11-08 17:33:09 +01:00
committed by GitHub
parent 519cb2d4c2
commit e52e29034e
22 changed files with 537 additions and 110 deletions

View File

@ -97,6 +97,21 @@ const viewFilters = {
},
};
const viewGroups = {
type: 'array',
minItems: 1,
items: {
type: 'object',
properties: {
label: { type: 'string' },
field: { type: 'string' },
pattern: { type: 'string' },
},
additionalProperties: false,
required: ['label', 'field'],
},
};
/**
* The schema had to be wrapped in a function to
* fix a circular dependency problem for WebPack,
@ -234,6 +249,7 @@ const getConfigSchema = () => ({
},
},
view_filters: viewFilters,
view_groups: viewGroups,
nested: {
type: 'object',
properties: {