mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security Solution][Data Views] - Update bulk actions data views index param to be snake_case (#138304)
## Summary Overlooked a param name - should be snake case per our APIs. `overwriteDataViews` --> `overwrite_data_views`
This commit is contained in:
parent
9e690e6669
commit
bad17a1277
4 changed files with 5 additions and 5 deletions
|
@ -401,7 +401,7 @@ const bulkActionEditPayloadIndexPatterns = t.intersection([
|
|||
]),
|
||||
value: index,
|
||||
}),
|
||||
t.exact(t.partial({ overwriteDataViews: t.boolean })),
|
||||
t.exact(t.partial({ overwrite_data_views: t.boolean })),
|
||||
]);
|
||||
|
||||
export type BulkActionEditPayloadIndexPatterns = t.TypeOf<
|
||||
|
|
|
@ -118,7 +118,7 @@ const IndexPatternsFormComponent = ({
|
|||
const payload = {
|
||||
value: data.index,
|
||||
type: data.overwrite ? BulkActionEditType.set_index_patterns : editAction,
|
||||
overwriteDataViews: data.overwriteDataViews,
|
||||
overwrite_data_views: data.overwriteDataViews,
|
||||
};
|
||||
|
||||
onConfirm(payload);
|
||||
|
|
|
@ -35,7 +35,7 @@ const applyBulkActionEditToRuleParams = (
|
|||
"Index patterns can't be added. Machine learning rule doesn't have index patterns property"
|
||||
);
|
||||
|
||||
if (action.overwriteDataViews) {
|
||||
if (action.overwrite_data_views) {
|
||||
ruleParams.dataViewId = undefined;
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ const applyBulkActionEditToRuleParams = (
|
|||
"Index patterns can't be overwritten. Machine learning rule doesn't have index patterns property"
|
||||
);
|
||||
|
||||
if (action.overwriteDataViews) {
|
||||
if (action.overwrite_data_views) {
|
||||
ruleParams.dataViewId = undefined;
|
||||
}
|
||||
|
||||
|
|
|
@ -580,7 +580,7 @@ export default ({ getService }: FtrProviderContext): void => {
|
|||
{
|
||||
type: BulkActionEditType.add_index_patterns,
|
||||
value: ['initial-index-*'],
|
||||
overwriteDataViews: true,
|
||||
overwrite_data_views: true,
|
||||
},
|
||||
],
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue