Skip to content

Commit

Permalink
[SIEM] Add create template button (#66613)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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 <[email protected]>
Co-authored-by: Patryk Kopycinski <[email protected]>
  • Loading branch information
3 people committed Jun 9, 2020
1 parent e67b29f commit 2678377
Show file tree
Hide file tree
Showing 36 changed files with 1,526 additions and 1,168 deletions.
6 changes: 6 additions & 0 deletions x-pack/plugins/security_solution/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,9 @@ export const showAllOthersBucket: string[] = [
'destination.ip',
'user.name',
];

/**
* CreateTemplateTimelineBtn
* Remove the comment here to enable template timeline
*/
export const disableTemplate = true;

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ describe('Matrix Histogram Component', () => {
});
describe('on initial load', () => {
test('it renders MatrixLoader', () => {
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper.find('MatrixLoader').exists()).toBe(true);
});
});
Expand Down Expand Up @@ -117,7 +116,6 @@ describe('Matrix Histogram Component', () => {
wrapper.update();
});
test('it renders no MatrixLoader', () => {
expect(wrapper.html()).toMatchSnapshot();
expect(wrapper.find(`MatrixLoader`).exists()).toBe(false);
});

Expand Down
Loading

0 comments on commit 2678377

Please sign in to comment.