Skip to content

Commit

Permalink
Revert "[Security Solution][Data Views] - Update bulk actions data vi…
Browse files Browse the repository at this point in the history
…ews index param to be snake_case (#138304)"

This reverts commit bad17a1.
  • Loading branch information
jbudz committed Aug 9, 2022
1 parent 8c209fd commit 0bc8cf7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ const bulkActionEditPayloadIndexPatterns = t.intersection([
]),
value: index,
}),
t.exact(t.partial({ overwrite_data_views: t.boolean })),
t.exact(t.partial({ overwriteDataViews: t.boolean })),
]);

export type BulkActionEditPayloadIndexPatterns = t.TypeOf<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const IndexPatternsFormComponent = ({
const payload = {
value: data.index,
type: data.overwrite ? BulkActionEditType.set_index_patterns : editAction,
overwrite_data_views: data.overwriteDataViews,
overwriteDataViews: data.overwriteDataViews,
};

onConfirm(payload);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const applyBulkActionEditToRuleParams = (
"Index patterns can't be added. Machine learning rule doesn't have index patterns property"
);

if (action.overwrite_data_views) {
if (action.overwriteDataViews) {
ruleParams.dataViewId = undefined;
}

Expand All @@ -59,7 +59,7 @@ const applyBulkActionEditToRuleParams = (
"Index patterns can't be overwritten. Machine learning rule doesn't have index patterns property"
);

if (action.overwrite_data_views) {
if (action.overwriteDataViews) {
ruleParams.dataViewId = undefined;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ export default ({ getService }: FtrProviderContext): void => {
{
type: BulkActionEditType.add_index_patterns,
value: ['initial-index-*'],
overwrite_data_views: true,
overwriteDataViews: true,
},
],
})
Expand Down

0 comments on commit 0bc8cf7

Please sign in to comment.