Skip to content

Commit 2678377

Browse files
angoraycelasticmachinepatrykkopycinski
committed
[SIEM] Add create template button (#66613)
* add template btn * rename file * unit test * replace connector with useDispatch * comments * add disableTemplate * rename flag * fix types * remove snapshot * fix types * add fix action * move disableTemplate flag into constants * fix types * Fix timelineType * button style * unit test * unit test * fix types * Update x-pack/plugins/siem/public/timelines/components/timeline/properties/create_timeline_btn.tsx Co-authored-by: patrykkopycinski <contact@patrykkopycinski.com> * fix unit test * add unit test * add unit test * fix types * fix tests * fix unit * fix i18n key * remove snapshot * fix crud * fix crud * fix unit * fix tag * fix unit * disable template timeline * Update use_create_timeline.tsx Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
1 parent e67b29f commit 2678377

36 files changed

Lines changed: 1526 additions & 1168 deletions

x-pack/plugins/security_solution/common/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,9 @@ export const showAllOthersBucket: string[] = [
143143
'destination.ip',
144144
'user.name',
145145
];
146+
147+
/**
148+
* CreateTemplateTimelineBtn
149+
* Remove the comment here to enable template timeline
150+
*/
151+
export const disableTemplate = true;

x-pack/plugins/security_solution/public/common/components/matrix_histogram/__snapshots__/index.test.tsx.snap

Lines changed: 0 additions & 5 deletions
This file was deleted.

x-pack/plugins/security_solution/public/common/components/matrix_histogram/index.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ describe('Matrix Histogram Component', () => {
8282
});
8383
describe('on initial load', () => {
8484
test('it renders MatrixLoader', () => {
85-
expect(wrapper.html()).toMatchSnapshot();
8685
expect(wrapper.find('MatrixLoader').exists()).toBe(true);
8786
});
8887
});
@@ -117,7 +116,6 @@ describe('Matrix Histogram Component', () => {
117116
wrapper.update();
118117
});
119118
test('it renders no MatrixLoader', () => {
120-
expect(wrapper.html()).toMatchSnapshot();
121119
expect(wrapper.find(`MatrixLoader`).exists()).toBe(false);
122120
});
123121

0 commit comments

Comments
 (0)