Conversation
|
Pinging @elastic/siem (Team:SIEM) |
| const fetchMock = jest.fn(); | ||
|
|
||
| beforeAll(() => { | ||
| jest.resetAllMocks(); |
There was a problem hiding this comment.
the jest resets seem repetitive, happening twice in beforeAll and afterAll... is that necessary? same thing in each describe. can we cut these down?
There was a problem hiding this comment.
maybe a beforeEach would eliminate the need within the describes? idk, give it a try
There was a problem hiding this comment.
yeah, I think keep reset in just beforeAll would be enough
stephmilovic
left a comment
There was a problem hiding this comment.
code review and manual testing (export timelines ✅ , export template timelines ✅ , export elastic templates ❌ ) all looks good... i just have the one nit on jest.reset. thanks for the fix @angorayc LGTM!
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
* fix export response * update unit tests
* master: (46 commits) [Visualize] Add missing advanced settings and custom label for pipeline aggs (elastic#69688) Use dynamic: false for config saved object mappings (elastic#70436) [Ingest Pipelines] Error messages (elastic#70167) [APM] Show transaction rate per minute on Observability Overview page (elastic#70336) Filter out error when calculating a label (elastic#69934) [Visualizations] Each visType returns its supported triggers (elastic#70177) [Telemetry] Report data shippers (elastic#64935) Reduce SavedObjects mappings for Application Usage (elastic#70475) [Lens] fix dimension label performance issues (elastic#69978) Skip failing endgame tests (elastic#70548) [SIEM] Reenabling Cypress tests (elastic#70397) [SIEM][Security Solution][Endpoint] Endpoint Artifact Manifest Management + Artifact Download and Distribution (elastic#67707) [Security] Adds field mapping support to rule creation (elastic#70288) SECURITY-ENDPOINT: add fields for events to metadata document (elastic#70491) Fixed assertion in hybrid index pattern test to iterate through indices (elastic#70130) [SIEM][Exceptions] - Exception builder component (elastic#67013) [Ingest Manager] Rename data sources to package configs (elastic#70259) skip suites blocking es snapshot promomotion (elastic#70532) [Metrics UI] Fix asynchronicity and error handling in Snapshot API (elastic#70503) fix export response (elastic#70473) ...
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
Summary
This PR is to fix the broken export functionality.
Steps to verify:
Click on the
export buttonfor those exportable timeline / templates and see if it completed successfully.To get some sample Elastic templates, you can download, rename it to
.ndjsonand import this file:index copy.txt
Checklist
Delete any items that are not applicable to this PR.
Documentation was added for features that require explanation or tutorialsThis was checked for keyboard-only and screenreader accessibilityThis renders correctly on smaller devices using a responsive layout. (You can test this in your browserThis was checked for cross-browser compatibility, including a check against IE11For maintainers
This was checked for breaking API changes and was labeled appropriately