Skip to content

Commit

Permalink
[Security Solution][DQD] add nested field items for incompatible and … (
Browse files Browse the repository at this point in the history
#184657)

…same family fields

Addresses #184037

- Add `incompatibleFieldItems` and `sameFamilyFieldItems` as nested
fields with required attributes.

Steps to verify the change:

1. Bootup PR branch with local es + kibana
2. Open Kibana DevTools
3. Call `GET .kibana-data-quality-dashboard-results-default/_mapping`
4. Verify existence of properly nested `incompatibleFieldItems` and
`sameFamilyFieldItems` new fields


![image](https://github.com/elastic/kibana/assets/1625373/c92a37d8-3b03-4e70-a881-975355a0c834)

![image](https://github.com/elastic/kibana/assets/1625373/ce23f8d2-0e4a-45bd-b005-3abd975fc47b)

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
kapral18 and kibanamachine authored Jun 4, 2024
1 parent 7ab3676 commit 07df3b1
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,19 @@ export const resultsFieldMap: FieldMap = {
totalFieldCount: { type: 'long', required: true },
ecsFieldCount: { type: 'long', required: true },
customFieldCount: { type: 'long', required: true },
incompatibleFieldItems: { type: 'nested', required: true, array: true },
'incompatibleFieldItems.fieldName': { type: 'keyword', required: true },
'incompatibleFieldItems.expectedValue': { type: 'keyword', required: true },
'incompatibleFieldItems.actualValue': { type: 'keyword', required: true },
'incompatibleFieldItems.description': { type: 'keyword', required: true },
'incompatibleFieldItems.reason': { type: 'keyword', required: true },
incompatibleFieldCount: { type: 'long', required: true },
sameFamilyFieldCount: { type: 'long', required: true },
sameFamilyFieldItems: { type: 'nested', required: true, array: true },
'sameFamilyFieldItems.fieldName': { type: 'keyword', required: true },
'sameFamilyFieldItems.expectedValue': { type: 'keyword', required: true },
'sameFamilyFieldItems.actualValue': { type: 'keyword', required: true },
'sameFamilyFieldItems.description': { type: 'keyword', required: true },
sameFamilyFields: { type: 'keyword', required: true, array: true },
unallowedMappingFields: { type: 'keyword', required: true, array: true },
unallowedValueFields: { type: 'keyword', required: true, array: true },
Expand Down

0 comments on commit 07df3b1

Please sign in to comment.