Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix export response #70473

Merged
merged 3 commits into from
Jul 1, 2020
Merged

fix export response #70473

merged 3 commits into from
Jul 1, 2020

Conversation

angorayc
Copy link
Contributor

@angorayc angorayc commented Jul 1, 2020

Summary

This PR is to fix the broken export functionality.

Steps to verify:

Click on the export button for those exportable timeline / templates and see if it completed successfully.
To get some sample Elastic templates, you can download, rename it to .ndjson and import this file:

index copy.txt

  • timelines (exportable)
  • Elastic templates (Not exportable)
  • Custom templates (exportable)

Screenshot 2020-07-01 at 17 02 50

Screenshot 2020-07-01 at 17 02 37

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@angorayc angorayc added Team:SIEM v7.9.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Jul 1, 2020
@angorayc angorayc marked this pull request as ready for review July 1, 2020 16:41
@angorayc angorayc requested review from a team as code owners July 1, 2020 16:41
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

const fetchMock = jest.fn();

beforeAll(() => {
jest.resetAllMocks();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the jest resets seem repetitive, happening twice in beforeAll and afterAll... is that necessary? same thing in each describe. can we cut these down?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a beforeEach would eliminate the need within the describes? idk, give it a try

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I think keep reset in just beforeAll would be enough

Copy link
Contributor

@stephmilovic stephmilovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@angorayc angorayc merged commit 341f385 into elastic:master Jul 1, 2020
angorayc added a commit to angorayc/kibana that referenced this pull request Jul 1, 2020
* fix export response

* update unit tests
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 2, 2020
* 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)
  ...
angorayc added a commit that referenced this pull request Jul 2, 2020
* fix export response (#70473)

* fix export response

* update unit tests

* fix i18n
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants