Commit graph

14510 commits

Author SHA1 Message Date
Caroline Horn
1860f8759e
[Global Nav] Moved Overview page/link to the accordion/Solution title (#114018)
* [Global Nav] Moved Overview page/link to the accordion/Solution title
* Using Cloud logo for deployment link and fixing isActive state
* Change Deployment section to dark background
* Completely remove locking ability
* Change buttonElement if overview page exists
* Snaps from button/div
* PR Feedback:
  - Puts `Overview` links back for Observability and Security
  - Increases hit area and scopes underline of anchor tag within the accordion header
  - Uses `id`’s to find Overview pages instead of `title` text
2021-11-02 10:12:11 -04:00
Tobias Stadler
55fb58b9f4
xpack.actions.{proxy}VerificationMode is actual xpack.actions.ssl.{proxy}VerificationMode (#114593)
* xpack.actions.proxyVerificationMode is actual xpack.actions.ssl.proxyVerificationMode

* xpack.actions.verificationMode is actual xpack.actions.ssl.verificationMode

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 10:05:51 -04:00
Mark Hopkin
f130759e82
[Fleet] Fix add agent help not closing when button clicked (#117104)
* close help popover when button clicked

* reduce popover z-index to hide behind modals
2021-11-02 13:12:14 +00:00
Nicolas Chaulet
63cf1d0ab5
[Fleet] Delete non existing streams in overrideInputs (#116998) 2021-11-02 08:43:22 -04:00
Joe Portner
61ab4a3c59
Fix sample data for share-capable objects (#116378) 2021-11-02 07:57:21 -04:00
Or Ouziel
f2b9acf67b
replace any with unknown in http client and types (#114265) 2021-11-02 13:53:56 +02:00
Stratoula Kalafateli
29e807f2e2
[Lens] Allows users to not render suggestions (#115946)
* [Lens] Allows users to not render suggestions

* Improve the transitions

* change implementation and use EuiAccordion instead

* Fixes the scrolling problem on the suggestions panel

* Apply PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 13:05:46 +02:00
Dima Arnautov
b03a8695df
[ML] Replace console statement, add status code check (#116999) 2021-11-02 11:53:37 +01:00
Dario Gieselaar
6d5ba9be5e
[APM] Use Synthtrace in Cypress tests (#116948)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 10:48:05 +00:00
Walter Rafelsberger
0593c614a9
[ML] APM Correlations: Fix percentiles values. (#116639)
A change in the ES range agg no longer accepts numbers with decimals if the underlying field is typed as long. This PR fixes the issue by rounding the percentiles values we pass on to the range agg.
2021-11-02 10:40:58 +00:00
Miriam
95cadcc9f1
Replace noHits variable (#116438)
* Replace noHits variable

* fix types

* changes after review
2021-11-02 10:10:24 +00:00
Walter Rafelsberger
6edabd1216
[ML] Fix boolean field support. (#116608)
Fixes support for boolean field types to be accepted as field candidates for APM correlation and failed transaction analysis.
2021-11-02 10:25:48 +01:00
Pete Hampton
56d3efdcab
[Telemetry] Migrate off unix epoch to UTC ISO Timestamp. (#116744)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 09:24:46 +00:00
Pablo Machado
74bee4bc17
Add column-gap to HeaderSectionComponent (#115952)
* Add column-gap to HeaderSectionComponent

* Please code review by using gutterSize instead of flex column-gap

* Add eui-textBreakNormal to header_section title

It makes sure that words in the title don't break into a new line

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 09:59:37 +01:00
David Sánchez
cc366dd888
[Security Solution][Endpoint] Fix error when searching with special characters in policies filter (#116444)
* Fix error when searchin with special characters in policies filter

* remove unused brackets

* Refactor test uses userEvent instead of fireEvent to supress act() usage

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 09:48:29 +01:00
Oliver Gupte
2d1a088447
[Integration] Fix landing page for Add APM Integration link in Observability (#116847) (#116851) 2021-11-02 07:28:33 +00:00
Chris Cowan
aafbc8cad0
[Metrics UI] Finish removing enabled for code base (#114731)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-02 00:44:23 +00:00
Constance
80ef314abc
Upgrade to EUI v40.1.0 (#116692)
* Upgrade EUI to v40.1.0

* [Discover] Remove temp fix + update snapshot

* Fix deprecated `popperPlacement` prop

* Update test snapshots with table cell change

Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 14:31:04 -07:00
Davey Holler
f5f12088da
UI copy changes for adaptive relevance (#117016)
* UI copy changes for adaptive relevance

* UI copy changes for adaptive relevance

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curations_settings/curations_settings.tsx

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>

Co-authored-by: Byron Hulcher <byronhulcher@gmail.com>
2021-11-01 21:19:32 +00:00
Nathan Reese
7170a64fec
[Maps] use single layer for map labels (#116840)
* [Maps] use single layer for map labels

* simplify filter expressions further

* eslint

* update mapbox_style expect statements

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 15:10:18 -06:00
Kyle Pollich
a564e9fa65
[Fleet] Set keep_policies_up_to_date during package installation (#116993)
* Set `keep_policies_up_to_date` during preconfiguration

Don't rely on only our 7.16 migration set this flag, ensure it gets set
to `true` for any package that appears in `DEFAULT_PACKAGES` during
preconfiguration

Closes #116982

* Move default logic to installation

* Revert conflict change in preconfiguration.ts
2021-11-01 20:27:46 +00:00
Thomas Neirynck
7bd984ba46
[Maps] Remove cruft (#116986) 2021-11-01 14:45:02 -04:00
Jen Huang
e793b3a225
[Fleet] Allow user-configured namespace for managed policies (#116523)
* Disable agent monitoring settings in UI for managed policies

* Allow namespace to be changed for preconfigured managed policies

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 11:22:18 -07:00
Dario Gieselaar
2c887539d5
[APM] Synthtrace ES Client (#116770)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-11-01 18:19:29 +00:00
Kyle Pollich
d703f53412
Fix bug w/ keep policies up to date setting (#116974)
Previously, we were only honoring the "keep policies up to date"
setting for policies generated during preconfiguration. This fix ensure
we honor it for all policies.

Closes #116435
2021-11-01 13:43:38 -04:00
Stacey Gammon
f65b3f694f
Fix mixspelt team name in plugin (#116899)
* Update kibana.json

* Make App Services team name consistent
2021-11-01 13:12:44 -04:00
Paul Tavares
08d0131c64
[Security Solution][Endpoint] Add tooltip to Name and Description on the ArtifactEntryCollapsableCard when collapsed (#116839)
* Add `withTooltip` prop to `TextValueDisplay` and use it in CardCompressedHeader
* Add UT
2021-11-01 13:11:57 -04:00
Mark Hopkin
dcdc0f8e8f
[Fleet] Use event.ingested where possible for data stream last activity (#116641)
* use event.ingested for datastream last activity

* remove ms precision from datastream dates

* add timestamp check to test

* fix type error

* split test out to be less complex and more reliable 🤞

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 15:51:12 +00:00
Felix Stürmer
96a1d3186b
[Logs UI] Respect the advanced settings for queries (#116485)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 16:49:34 +01:00
Candace Park
d905cacc1d
[Security Solution][Endpoint][Cases] Add cases path to sourcerer init so browser fields load (#116464)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 11:32:39 -04:00
Jean-Louis Leysens
d9bbe9c9be
[Reporting] Remove banner from reports (#116147)
* remove banner from reports

* added types file

* updated types references and imports

* added screenshot mode public mock

* added jest tests for when screenshot mode is enabled

* Update x-pack/plugins/banners/public/plugin.test.tsx

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

* Update x-pack/plugins/banners/public/plugin.test.tsx

Co-authored-by: Michael Dokolin <dokmic@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
2021-11-01 15:31:56 +00:00
Corey Robertson
25426708a8
Fix undo/redo and SO.resolve redirect issues (#116773)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 11:22:29 -04:00
Paul Tavares
fa79ebeabd
[Security Solution][Endpoint] Fix display of long description text values (with no spaces) on Artifact Entry Cards (#116780)
* New DescriptionField component for artifact cards
* Use new DescriptionField in ArtifactCardEntry
* Added `eui-textBreakWord` class name to TextValueDisplay component in artifact cards
* Use `DescriptionField` in `CardCompressedHeader`
* Fix i18n of Description label on minified card
* Use DescriptionField in ArtifactEntryMinified
2021-11-01 11:01:54 -04:00
Shahzad
48a6585423
[Exploaratory View ] Styling: Fix duplicate labels for operation select (#115936)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 14:43:32 +00:00
Or Ouziel
9e4bab31b5
replace ts_ignore with ts_expect_error (#113768) 2021-11-01 16:41:10 +02:00
Giorgos Bamparopoulos
e40ec9bfbd
Update testing dev docs for APM (#116664) 2021-11-01 10:10:19 -04:00
Georgii Gorbachev
2431a08d2b
[Security Solution][Detections] Reading last 5 failures from Event Log v1 - raw implementation (#115574)
**Ticket:** https://github.com/elastic/kibana/issues/106469, https://github.com/elastic/kibana/issues/101013

## Summary

TL;DR: New internal endpoint for reading data from Event Log (raw version), legacy status SO under the hood.

With this PR we now read the Failure History (last 5 failures) on the Rule Details page from Event Log. We continue getting the Current Status from the legacy `siem-detection-engine-rule-status` saved objects. Rule Management page also gets data from the legacy saved objects.

- [x] Deprecate existing methods for reading data in `IRuleExecutionLogClient`: `.find()` and `.findBulk()`
- [x] Introduce new methods for reading data in IRuleExecutionLogClient:
  - for reading last N execution events for 1 rule from event log
  - for reading current status and metrics for 1 rule from legacy status SOs
  - for reading current statuses and metrics for N rules from legacy status SOs
- [x] New methods should return data in the legacy status SO format.
- [x] Update all the existing endpoints that depend on `IRuleExecutionLogClient` to use the new methods.
- [x] Implement a new internal endpoint for fetching current status of the rule execution and execution events from Event Log for a given rule.
- [x] The API of the new endpoint should be the same as `rules/_find_statuses` to minimise changes in the app.
- [x] Use the new endpoint on the Rule Details page.

## Near-term plan for technical implementation of the Rule Execution Log (https://github.com/elastic/kibana/issues/101013)

**Stage 1. Reading last 5 failures from Event Log v1 - raw implementation** - ✔️ done in this PR

TL;DR: New internal endpoint for reading data from Event Log (raw version), legacy status SO under the hood.

- Deprecate existing methods for reading data in `IRuleExecutionLogClient`: `.find()` and `.findBulk()`
- Introduce new methods for reading data in IRuleExecutionLogClient:
  - for reading last N execution events for 1 rule from event log
  - for reading current status and metrics for 1 rule from legacy status SOs
  - for reading current statuses and metrics for N rules from legacy status SOs
- New methods should return data in the legacy status SO format.
- Update all the existing endpoints that depend on `IRuleExecutionLogClient` to use the new methods.
- Implement a new internal endpoint for fetching current status of the rule execution and execution events from Event Log for a given rule.
- The API of the new endpoint should be the same as `rules/_find_statuses` to minimise changes in the app.
- Use the new endpoint on the Rule Details page.

**Stage 2: Reading last 5 failures from Event Log v2 - clean implementation**

TL;DR: Clean HTTP API, legacy Rule Status SO under the hood.

🚨🚨🚨 Possible breaking changes in Detections API 🚨🚨🚨

- Design a new data model for the Current Rule Execution Info (the TO-BE new SO type and later the TO-BE data in the rule object itself).
- Design a new data model for the Rule Execution Event (read model to be used on the Rule Details page)
- Think over changes in `IRuleExecutionLogClient` to support the new data model.
- Think over changes in all the endpoints that return any data related to rule monitoring (statuses, metrics, etc). Make sure to check our docs to identify what's documented there regarding rule monitoring.
- Update `IRuleExecutionLogClient` to return data in the new format. 
- Update all the endpoints (including the raw new one) to return data in the new format.
- Update Rule Details page to consume data in the new format.
- Update Rule Management page to consume data in the new format.

**Stage 3: Reading last 5 failures from Event Log v3 - new SO**

TL;DR: Clean HTTP API, new Rule Execution Info SO under the hood.

- Implement a new SO type for storing the current rule execution info. Relation type: 1 rule - 1 current execution info.
- Swap the legacy SO with the new SO in the implementation of `IRuleExecutionLogClient`.

**Stage 4: Cleanup and misc**

- Revisit the problem of deterministic ordering ([comment](https://github.com/elastic/kibana/pull/115574#discussion_r735803087))
- Remove rule execution log's glue code: adapters, feature switch.
- Remove the legacy rule status SO.
- Mark the legacy rule status SO as deleted in Kibana Core.
- Encapsulate the current space id in the instance of IRuleExecutionLogClient. Remove it from parameters of its methods.
- Introduce a Rule Execution Logger scoped to a rule instance. For use in rule executors.
- Add test coverage.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-11-01 14:40:14 +01:00
James Gowdy
c9ccfad32e
[ML] Renaming index patterns for job wizards (#116250)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 12:50:21 +00:00
Esteban Beltran
602e15d8dd
[Security Solution] Show searchbar when a search doesn't return results in Host isolation exceptions. (#116767) 2021-11-01 12:49:52 +00:00
Ashokaditya
8fd02151e9
[Security Solution][Endpoint] Add tests for pending status API changes (#115998)
* add tests for pending status api changes

related to elastic/kibana/pull/115441

refs elastic/security-team/issues/1705

* update mock

refs elastic/kibana/pull/116214

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 11:56:07 +01:00
Christos Nasikas
2f55e68d02
[Cases] Do not show deprecated callout on deleted connectors (#116615)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-01 10:36:53 +02:00
Thomas Watson
8a39a113a0
Finalize removal of legacy audit logger (#116282) 2021-10-30 22:33:37 +01:00
Vadim Yakhin
a7fd3deb73
[Workplace Search] Fix early sources logic unmounting (#113023)
* Fix error appearing if user leaves Sources page very quickly

The issue was that the response from /sources endpoint could came after the user has left the page.
Since the user has already left the page, the Sources logic is unmounted,
and any code that was using the response couldn't update the value in that logic file and caused an error.

Fortunately Kea provides a `breakpoint` API exactly for such cases:
https://kea.js.org/docs/guide/additional#breakpoints

This commit uses that API to fix the issue.

* Fix error appearing after leaving Sources page less quickly

This commit solves the same problem, but for the /status endpoint:
1) for the first status call that saves server values to the sources_logic
2) for the subsequent status calls that poll the server for the status updates

* Increase test coverage

The new test duplicates the test below it, but it doesn't set up
initial source statuses. For some reason this case was considered to be covered before,
but after seemingly unrelated changes in this PR, the coverage started to show that this
code branch was missed.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-30 20:48:18 +01:00
Walter Rafelsberger
2cfcb8caf9
[ML] Fix y axis ticks. (#116670)
Fixes the y axis ticks for chart variants where the maximum transaction count for overall buckets is only 1.
2021-10-30 14:51:55 +00:00
Caroline Horn
151968be4f
[Dev Tools] Design fixes for theme v8 (#116236)
* Fixed icon buttons in Console
* Quick cleanup of tabs and panels
2021-10-30 09:34:22 +00:00
Frank Hassanabad
eaedb7863d
Follow up (#116860)
## Summary

One line follow up from #116490 from @dhurley14 here: https://github.com/elastic/kibana/pull/116490#discussion_r739314768


### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-10-29 23:39:36 -06:00
Devin W. Hurley
6817a02e0d
[Security Solution] [Platform] Fix critical bug when migrating action within update route (#116512)
* WIP - need to figure out how to delete old siem-detection action SO's after each test

* WIP - adds some fixes for the update rules utility that differ from patch rules utility

* fix type checks

* cleanup

* remove commented out code

* rename const to use capital snake case

* naming integration tests, adds expect for disabled rules that get migrated, adds expect for pre-migrated rules
2021-10-29 22:05:55 -04:00
Frank Hassanabad
57899a2f68
Removes isUuid and tests as they're not used anymore (#116848)
## Summary

Removes isUuid and tests as they're not used anymore

### Checklist

Delete any items that are not applicable to this PR.
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-10-29 19:33:59 -06:00
Esteban Beltran
107661129d
[Security Solution] Use useEndpointPrivileges instead of checking the license directly (#116142)
* Use useEndpointPrivileges instead of checking the license directly

* Use the correct privilege key

* rename variable

* Skips flaky test

* Remove skip

* Remove extra dependency

* Add back entries check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-30 00:01:48 +01:00
Esteban Beltran
5afa164ab9
[Security Solution] Fix edit not working due to state management overwrite in Host isolation exceptions (#116676)
* Fix edit not working due to state management overwrite

* clear the form after a succesfull update

* Preserve order after editing and adding
2021-10-29 23:01:14 +02:00
Cauê Marcondes
7130d6eb45
[APM] Api tests for Error distribution api (#116674)
* adding tests for error distribution

* addressing pr changes

* addressing pr comments

* fixing ts issues
2021-10-29 21:57:08 +01:00
Zacqary Adam Xeper
285cd009a5
Revert "[Metrics UI] Fix OR logic on redundant groupBy detection (#116695)" (#116820)
This reverts commit c0d005db62.
2021-10-29 16:48:15 -04:00
Zacqary Adam Xeper
4712c10f84
Revert "[Logs UI][Metrics UI] Remove deprecated config fields from APIs and SavedObjects (#115874)" (#116819)
This reverts commit 6693ef371f.
2021-10-29 16:47:54 -04:00
Ece Özalp
f65485f997
[SecuritySolution][CTI] Fix preview matrix histogram query (#116328)
* [SecuritySolution][CTI] Fix preview matrix histogram query

* fixes mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 16:21:14 -04:00
Chris Donaher
478d138c32
Send Endpoint Alert _id field up as insights docs track that on status changes (#116687)
* Send Endpoint Alert _id field up as insights docs track that on status changes

* Added test to make sure top-level underscore-prefixed fields are allowed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 13:47:31 -06:00
Marshall Main
b59b132ff4
Remove validation requiring action id to be UUID (#116524)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 15:26:06 -04:00
Nathan Reese
ee61368cff
[Maps] fix data-mapping switch enabled for vector tiles (#116366)
* clean up IField API

* disable switch when using MVTs for es docs

* clean up interface comment style

* implement supportsFieldMetaFromEs and supportsFieldMetaFromLocalData in all Field classes

* fix dynamic_color_property test

* fix jest tests

* mock getRangeFieldMeta instead of passing in VectorLayerMock with MockStyle

* review feedback

* clean up supportsFieldMetaFromLocalData test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 12:47:58 -06:00
Paul Tavares
d284d65ad4
[Security Solution][Endpoint] Fix and un-skip Jest UT for Policy Details remove trusted app modal (#116492)
* increase update API response delay
2021-10-29 14:46:30 -04:00
Paul Tavares
ea1c3f2a09
Fix skipped test to be more robust in matching relative dates (#116474)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 14:40:35 -04:00
Kristof C
26ca3ffe05
[105264] Fix error not surfacing bug for Jira (#114800)
* [105264] Fix error not surfacing bug for Jira

* [105264] Fix ServiceNow errors not surfacing to UI

* Fix tests with updated functon

* Fix PR errors

Co-authored-by: Kristof-Pierre Cummings <kristofpierre.cummings@elastic.co>
2021-10-29 13:27:41 -05:00
Sandra G
62f807227b
[Stack Monitoring] Logstash Functional Tests (#116481)
* logstash overview functional test

* logstash nodes listing functional tests

* node detail tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 13:55:32 -04:00
Xavier Mouligneau
3f91556e67
[SECURITY] Copy saved object flyout should not allow copying into the active space (#116657)
* copy saved object flyout should not allow copying into the active space

* stupid me
2021-10-29 13:55:17 -04:00
Shahzad
45476dcbe6
[Uptime] Fix filters in query for fetching monitor attached rules (#115921)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 19:50:47 +02:00
Shahzad
d4d470d938
Fix intermitting series state (#115747)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 19:50:14 +02:00
Shahzad
9714aac93c
[Exp view] Fix apply button equality check (#115744)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 19:49:30 +02:00
Melissa Alvarez
40fd867b65
[ML] Data Frame Analytics Wizard: ensure includes updated correctly on dependent variable change (#116381)
* ensure included fields not overwritten + reduce unnecessary renders.

* ensure editor validation works

* ensure depVar always in includes

* ensure selected runtimeField depVar option is shown
2021-10-29 13:48:42 -04:00
Shahzad
4492a107bd
[Alerting] Remove unnecessary call on every kibana load (#116572) 2021-10-29 19:48:25 +02:00
Spencer
05cfe434f0
[alerting] disable status reporting for now (#116717)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-29 12:48:03 -05:00
Frank Hassanabad
29ac5583b7
[Security Solutions] Critical bug fix to make error messages about missing connections clearer for the end user. (#116490)
## Summary

Fixes issue see on this comment:
https://github.com/elastic/kibana/issues/116336#issuecomment-952159636

* Removes legacy toaster component
* Adds newer toaster component
* Removes issue with the deps array within ReactJS
* Adds utility to give a better network error message to the end user.
* This does effect the timeline component since it shares the same import common component.
* Adds a count of how many rules/timeline items have failed imports
* These error toasters mimic Kibana core's error toaster error message and UI/UX
* Adds e2e tests for imports with actions and error messages for them.

## Rules import error messages now

Before for small toaster:
<img width="417" alt="Screen Shot 2021-10-26 at 6 03 25 PM" src="https://user-images.githubusercontent.com/1151048/139132586-3cf77c73-53ac-4066-b01f-2e91ef2da111.png">

After for small toaster for different error conditions:
<img width="358" alt="Screen Shot 2021-10-26 at 6 00 24 PM" src="https://user-images.githubusercontent.com/1151048/139132679-2eeb1ed3-9f6e-4766-a8ed-8804ce3e6963.png">

<img width="396" alt="Screen Shot 2021-10-26 at 6 01 00 PM" src="https://user-images.githubusercontent.com/1151048/139132742-750cd937-f401-44e8-9a10-c21410073b5d.png">

<img width="379" alt="Screen Shot 2021-10-26 at 6 02 29 PM" src="https://user-images.githubusercontent.com/1151048/139132766-21b58bea-7f46-43a6-a0e9-f01632958eab.png">

Before for when you click "See the full error":
<img width="817" alt="Screen Shot 2021-10-26 at 5 58 47 PM" src="https://user-images.githubusercontent.com/1151048/139132980-de1942d6-7b03-4c08-b34a-1fc4a22d5207.png">

After for when you click "See the full error":
<img width="838" alt="Screen Shot 2021-10-27 at 1 48 16 PM" src="https://user-images.githubusercontent.com/1151048/139136581-af1e331e-ed77-4338-8fb0-c2457acd135f.png">

<img width="802" alt="Screen Shot 2021-10-27 at 1 26 31 PM" src="https://user-images.githubusercontent.com/1151048/139135083-9ca56940-30a8-4f83-9355-312307172834.png">

## timeline

Before:
<img width="441" alt="Screen Shot 2021-10-27 at 1 19 00 PM" src="https://user-images.githubusercontent.com/1151048/139136614-8360d6a6-d182-413e-b5d9-b18e3d70dc24.png">

<img width="827" alt="Screen Shot 2021-10-27 at 1 19 08 PM" src="https://user-images.githubusercontent.com/1151048/139136637-f9203ac2-0eea-4a77-9c53-ac2c20ab32e0.png">

After:
<img width="408" alt="Screen Shot 2021-10-27 at 1 49 45 PM" src="https://user-images.githubusercontent.com/1151048/139136758-7532a8ba-6d73-45e2-adbb-6756ee997289.png">

<img width="820" alt="Screen Shot 2021-10-27 at 1 49 50 PM" src="https://user-images.githubusercontent.com/1151048/139136774-26d4a8a2-caf0-4c6f-94d3-a6cd92b79f5f.png">

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-10-29 11:44:38 -06:00
Nicolas Chaulet
d384a2f508
[Fleet] Fix pipeline with id [*] does not exists (#116707) 2021-10-29 13:44:24 -04:00
Frank Hassanabad
83fe1dd90a
Changes log level from info to debug from user complaints about logs filling up (#116518)
## Summary

Changes detections log level from info to debug within the detection engine. Users have been complaining about their log files filling up in excessive size from when they have noisy rules or if they have a large amount of rules enabled.
2021-10-29 11:40:08 -06:00
Nathan Reese
7c73e227eb
[Maps] convert EMS TMS source to typescript (#116508)
* [Maps] convert EMS TMS source to typescript

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 11:33:12 -06:00
Nathan Reese
0a3cd8ebab
[Maps] do not allow label overlap (#116190)
* [Maps] do not allow label overlap

* split symbol labels into seperate layer

* clean up comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 11:31:04 -06:00
Madison Caldwell
6ba984eb03
Add support for actions on kibana.* fields and legacy signal.* fields (#116491)
* Add support for actions on kibana.* fields and legacy signal.* fields

* Improve types and add scheduleNotificationActions test

* Unnecessary cast

* Was accidentally returning all alerts in map, instead of single alert

* Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 11:29:38 -06:00
Spencer
30872e9063
remove all references to v7 theme (#113570)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 12:28:42 -05:00
Vitalii Dmyterko
b481bff349
[Security Solution][Detections] Fix truncated values in columns for rules table (#115825)
* Fix truncated rule name on rules table

* remove empty line

* remove truncateText for all rules table columns

* rename unit tests

* refactor unit tests

* fix ts error

* fix ts error

* remove config line

* fix types after kbn bootstrap

* CR: remove unnecesary tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 18:28:11 +01:00
Marshall Main
a68f3ffd06
[Security Solution] Only apply field aliases to legacy .siem-signals indices (#115290)
* Only apply field aliases to legacy .siem-signals indices

* Fix unit test mocks

* Add new function for special index existence check

* Actually add new function for special index existence check

* Undo getIndexVersion change

* Add basic integration tests for field alias logic

* Add back create_index to test list

* Add missing markdown to readme

* Revert change to delete_index_route

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-29 13:19:54 -04:00
Tyler Smalley
c4815d319e
Updates Github link references from master to main (#116789)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-29 09:53:08 -07:00
Jen Huang
2194f2b93c
[Fleet] Fix branch conditions to check against main and add skip version check config option (#116530) 2021-10-29 12:47:36 -04:00
Brian Seeders
ba367bca40
Change all references of master branch to main (#116654) 2021-10-29 12:29:48 -04:00
Zacqary Adam Xeper
6693ef371f
[Logs UI][Metrics UI] Remove deprecated config fields from APIs and SavedObjects (#115874)
* [Logs UI][Metrics UI] Remove deprecated config fields from APIs

* Fix typecheck

* Fix typecheck

* Fix typecheck

* Fix jest

* Fix functional test

* Remove extraneous timeField args

* Typecheck fix

* Consolidate log file changes to ResolvedLogSourceConfiguration

* Fix merge

* Revert additional logs files

* Revert inventory models

* Revert log_analysis api

* Fix timefield reference in process list

* Restore logs page files, fix typecheck on mock

* Fix functional test

* Restore inventory models index

* Fix typecheck on getFilteredMetrics

* Look CI if you don't tell me all the type errors at once I can't fix them all

* Maybe this is the last typecheck fix who knows
2021-10-29 12:12:26 -04:00
Zacqary Adam Xeper
c0d005db62
[Metrics UI] Fix OR logic on redundant groupBy detection (#116695) 2021-10-29 16:07:04 +00:00
Esteban Beltran
ddf092f38c
[Security Solution] Host isolation exceptions - fixes for QA issues (#116089)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 15:54:17 +00:00
Quynh Nguyen
d4f4e64426
[ML] Re-enable explorer link jest test (#116324)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 15:53:05 +00:00
Xavier Mouligneau
24e5bd244c
[SECURITY] Remove flaky test on edit user page (#116467)
* no more flaky test

* fix eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 11:21:53 -04:00
Nicolas Chaulet
a23d5e29a4
[Fleet] Fix edit package policy save button (#116482) 2021-10-28 11:17:47 -04:00
Josh Dover
d5963884b6
Include failure reason when packages cannot be installed during setup (#116612) 2021-10-28 15:47:26 +01:00
Gloria Hornero
b102846c82
adds import Timeline test (#114703) 2021-10-28 15:34:19 +01:00
Marshall Main
d280f12757
[Security Solution] Security RAC migration follow up bug fixes (#116386)
* Add compatibility aliases to alerts as data indices

* Fix dupe mitigation, allow more fields in mapping

* Remove legacy signals fields from new RAC alerts

* Fix cypress test

* Remove outdated comment

* Reduce flakiness in time based test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 10:21:51 -04:00
Paul Tavares
2f3d4fcb48
[Security Solution][Endpoint] Fix bug where users without superuser role are not able to see Endpoint data on Host Details (#116202)
* Add `.catch()` statement to ES calls in order to get better stacktraces
* Improve efficiency of getHostEndpoint() search strategy method
* Refactor `getHostEndpoint()` to use new Metadata service as well as the internal kibana ES client
2021-10-28 15:18:50 +01:00
Paul Tavares
7c12ffffee
[Security Solution][Endpoint] Un-skip Policy Details FTR test suite and fix bug in Policy Details page when saving changes (#115662)
* unskip test suite
* Fix functional tests and some refactoring
* Refactor Policy Details test and centralize getting of Agent Policy combined input for endpoint
* Change approach for checking policy data in fleet pages
* Change Policy Settings displayed in Fleet to a) show a loader while retrieving settings and b) show loading errors if any
* Close any visible toasts before clicking on the save button
2021-10-28 15:10:32 +01:00
Oliver Gupte
2856e19db7
[APM] Adds missing legacy key for apm-server.secret_token (#116385) (#116554) 2021-10-28 09:46:41 -04:00
Shahzad
9e7f1c8e35
[Global search] Prevent unnecessary /internal/global_search/find http call at startup (#112535)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 15:26:28 +02:00
Jean-Louis Leysens
1e88abbb31
[Reporting] Remove Boom (#116289)
* remove use of boom from info response handler; also changed unauthd response to forbidden to avoid client logging user out

* rather return 500 with err.message

* added jest tests for common cases on the info route

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 14:18:22 +01:00
Walter Rafelsberger
0f73b57cfd
[ML] Anomaly Detection: Functional tests for anomaly detection forecasts. (#116140)
Functional tests for anomaly detection forecasts.
2021-10-28 14:18:53 +02:00
Yulia Čech
9b14bab5dc
[ILM] Fixed skipped a11y and functional tests (#116207)
* [ILM] Fixed ILM a11y test by creating a snapshot repo that is now required in the ILM API

* [ILM] Fixed functional test by creating a snapshot repository

* [ILM] Updated the params after es client update

* [ILM] Added filtering by policy name to the a11y test to find the correct ILM policy in the list

* [ILM] Added filtering by policy name to the a11y test to find the correct ILM policy in the list

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-28 12:54:09 +01:00
Christos Nasikas
5338e1965f
[Cases] Fix configure cases flaky test (#116575) 2021-10-28 12:47:36 +01:00
Mark Hopkin
f598c43435
[Fleet] Add missing documentation link on integrations page (#116453)
* add missing doc link

* node scripts/check_published_api_changes.js --accept
2021-10-28 12:40:33 +01:00
Quynh Nguyen
21cd11a851
[ML] Fix Transforms not retaining _meta on clone (#116206)
* [ML] Retain _meta on clone

* [ML] Fix validation on schema to only check it it's defined/not null

* [ML] Remove validation because es should handle the validation already

* Change type to unknown
2021-10-28 12:24:52 +01:00
Gloria Hornero
0e1d42d400
skips exceptions tests (#116568) 2021-10-28 12:11:36 +01:00
Shahzad
4a92e3bc36
[Exploratory View]added loading state for metric selector (#115748)
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-10-28 11:36:27 +01:00
spalger
acf0426194 skip flaky suite (#89369) 2021-10-28 09:19:16 +00:00
spalger
c760db6a01 skip flaky suite (#115307) 2021-10-28 09:08:47 +00:00
Nathan L Smith
cca0a082d2
e2e tests for dependencies (#116369)
Also fix a link in testing readme.

References #116290.
2021-10-27 21:07:08 -05:00
Spencer
9e6e84571f
Revert "[Canvas] By-Value Embeddables (#113827)" (#116527)
This reverts commit bacd7f91dd.

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-10-27 20:38:43 -05:00
Nicolas Chaulet
ede3882e18
[Fleet] Fix back button when adding integration from multiple integrations package (#116352) 2021-10-28 01:55:23 +01:00
Joey F. Poon
4efabacd4e
[Security Solution] fix endpoint being visible after unenrolling agent (#116372)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 17:38:53 -05:00
Tiago Costa
edc8f9583b
chore(NA): bump version to 8.1.0 (#116429)
* chore(NA): bump version to 8.1.0

* chore(NA): update non supported plugins

* chore(NA): update non supported plugins

* chore(NA): skip failing tests

* chore(NA): update jest snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 21:24:48 +01:00
Byron Hulcher
c3f207a071
Revert "[App Search] Load curation settings at root /curations/ path (#115690)" (#116462) 2021-10-27 21:18:19 +01:00
Nick Partridge
6b4d9dd1a9
[Charts] Multi-layer time axis (#115853)
This commit introduces the multi-layer time axis in Discover, Lens, Visualize, TSVB.
It adds visualization:useLegacyTimeAxis advanced settings under charts plugin to toggle legacy time axis.

The new multi-layer time axis is introduced in @elastic/charts https://elastic.github.io/elastic-charts/?path=/story/area-chart--timeslip and was demoed as part of the Kibana Demo Days.

It is the outcome of the research done in elastic/elastic-charts#1310 related to improving the time axis solving the following problems:
- sparse time labels that can be far apart
- unclear where time point is on the label (the middle)
- difficult / tedious to read due to redundant information and small fonts
- resolution is not explicit (is it hours of days or days themselves)
2021-10-27 19:22:35 +02:00
Gloria Hornero
9330ea7d97
[Security Solution] Skips EQL test (#116456) 2021-10-27 09:44:03 -05:00
Gloria Hornero
6fbda831b5
unskips exceptions tests (#116149) 2021-10-27 10:04:28 -04:00
Tiago Costa
bed54a9d45
skip flaky suite (#109943) 2021-10-27 14:43:03 +01:00
Felix Stürmer
34b22578d6
[Logs UI] [Metrics UI] Remove deprecated alias config entries (#115974)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 15:20:19 +02:00
Paul Tavares
c566e048e8
make EndpointPrivileges object immutable (#116299) 2021-10-27 09:07:19 -04:00
Paul Tavares
8998655fcb
Fix driver to the policy details loading state (#116208) 2021-10-27 09:05:40 -04:00
Byron Hulcher
0381326ede
Retrieve search results on Relevance Tuning page whenever precision or query is changed (#116316) 2021-10-27 08:52:14 -04:00
Nathan Reese
3b3c4b2f4a
[maps] Use desaturated map tiles instead of bright map tiles by default (#116179)
* [maps] default to desaturated tiles in light mode

* fix jest and functional tests

* eslint

* update migrations version expect

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 06:34:07 -06:00
Dima Arnautov
37632f1798
[ML] Nodes overview for the Model Management page (#116361)
* [ML] Nodes overview for the Model Management page  (#115772)

* [ML] trained models tab

* [ML] wip nodes list

* [ML] add types

* [ML] add types

* [ML] node expanded row

* [ML] wip show memory usage

* [ML] refactor, use model_memory_limit for dfa jobs

* [ML] fix refresh button

* [ML] add process memory overhead

* [ML] trained models memory overview

* [ML] add jvm size, remove node props from the response

* [ML] fix tab name

* [ML] custom colors for the bar chart

* [ML] sub jvm size

* [ML] updates for the model list

* [ML] apply native process overhead

* [ML]add adjusted_total_in_bytes

* [ML] start and stop deployment

* [ML] fix default sorting

* [ML] fix types issues

* [ML] fix const

* [ML] remove unused i18n strings

* [ML] fix lint

* [ML] extra custom URLs test

* [ML] update tests for model provider

* [ML] add node routing state info

* [ML] fix functional tests

* [ML] update for es response

* [ML] GetTrainedModelDeploymentStats

* [ML] add deployment stats

* [ML] add spacer

* [ML] disable stop allocation for models with pipelines

* [ML] fix type

* [ML] add beta label

* [ML] move beta label

* [ML] rename model_size prop

* [ML] update tooltip header

* [ML] update text

* [ML] remove ts ignore

* [ML] update types

* remove commented code

* replace toast notification service

* remove ts-ignore

* remove empty panel

* add comments, update test subjects

* fix ts error

* update comment

* fix applying memory overhead

* Revert "fix applying memory overhead"

This reverts commit 0cf38fbead.

* fix type, remove ts-ignore

* add todo comment

(cherry picked from commit 605e9e2d3d)

* updates for the latest elasticsearch client

* hide allocated models when missing

* [ML] Update jest test mock

Co-authored-by: Quynh Nguyen <quynh.nguyen@elastic.co>
2021-10-27 11:29:57 +02:00
Shahzad
98231f45ac
[Uptime] Uptime index config using kibana.yml (#115775)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-27 10:15:21 +02:00
Devon Thomson
0b2dcdf408
[Controls] Dashboard Integration (#115991)
Create filters when controls change. Integrated controls on dashboard behind lab
2021-10-27 03:55:55 -04:00
Chenhui Wang
306a7cb0f4
Include Files in GitHub UI (#115956) 2021-10-27 12:16:05 +08:00
Catherine Liu
bacd7f91dd
[Canvas] By-Value Embeddables (#113827)
* [Canvas] Generic embeddable function (#104499)

* Created generic embeddable function

    Fixed telemetry

    Updates expression on input change

    Fixed ts errors

Store embeddable input to expression

Added lib functions

Added comments

Fixed type errors

Fixed ts errors

Clean up

Removed extraneous import

Added context type to embeddable function def

Fix import

Update encode/decode fns

Moved embeddable data url lib file

Added embeddable test

Updated comment

* Fix reference extract/inject in embeddable fn

* Simplify embeddable toExpression

* Moved labsService to flyout.tsx

* Added comment

* [Canvas] Adds Save and Return Workflow (#111411)

* [Canvas] Adds editor menu to Canvas (#113194)

* Merge existing embeddable input with incoming embeddable input (#116026)

* [Canvas] Extract and inject references for by-value embeddables (#115124)

* Extract/inject references for by-value embeddables in embeddable function

Fixed server interpreter setup

Register external functions in canvas_plugin_src plugin def

* Fixed ref name in embeddable.inject

* Fixed ts errors

* Fix missing type error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 17:25:06 -07:00
Tyler Smalley
01292cec67 Skip failing test (#115366)
https://github.com/elastic/kibana/issues/115366

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-10-26 17:23:24 -07:00
Patryk Kopyciński
82caede4fa
[Osquery] Fix live query search doesn't return relevant results for agents (#116332) 2021-10-27 01:04:26 +01:00
Yuliia Naumenko
fac628623e
[Actions] Extended ActionTypeRegistry with connector validation to validate config with secrets (#116079)
* [Actions] Extended ActionTypeRegistry with connector validation to validate config with secrets

* fixed typecheck

* added tests

* more tests

* email validation fix

* fixed typecheck

* fixed typecheck

* added tests

* fixed typecheck

* fixed test

* fixed due to comments

* fixed test

* fixed test

* fixed typecheck
2021-10-26 16:06:05 -07:00
Xavier Mouligneau
852a728229
Grant access to machine learning features when base privileges are used (#115444) 2021-10-26 18:15:44 -04:00
Madison Caldwell
117efdf87f
[RAC][Security Solution] Adds migration to new SecuritySolution rule types (#112113)
* Initial commit

* Properly handle signal history

* Fix #95258 - cardinality sort bug

* Init threshold rule

* Create working threshold rule

* Fix threshold signal generation

* Fix tests

* Update mappings

* ALERT_TYPE_ID => RULE_TYPE_ID

* Add tests

* Fix types

* Adds RAC rule type migration

* Fix threshold tests (remove outputIndex)

* Add threshold rule type to ruleTypeMappings

* Add kbn-securitysolution-rules package for sharing with alerting framework

* Fix type errors

* Fix find_rules tests

* First round of test fixes

* Fix issues from merge conflicts

* Use ruleDataClient getReader() for reading

* Fixes to 'generating_signals' tests

* Remove more refs to legacy schema

* Linting

* Quick type fix

* Bug fixes

* Add saved query rule type

* Linting

* Fix types

* Signal generation tests

* Test updates

* Update some more refs

* build_alert tests

* Cleanup

* Ref updates

* Revert "Ref updates"

This reverts commit 4d1473d6b0.

* Update status field

* Test fixes

* Another test

* Got a little too aggressive with search/replace

* let's see where we're at

* Fix

* Test fixes

* cleanup

* Fix cases API integration test config, flaky DE tests

* Move flattenWithPrefix to package / skip signal migration tests

* Fix unit tests

* Use new schema for bulk rule creation

* event: { kind } => event.kind

* Fix signal migration API tests

* Fix ml integration test

* Fix threat match integration tests

* Fix ML rule type tests and add correct producer to all rule types

* Update threat match API integration test

* Remove dupe properties

* Type fix

* Fix ML producer in functional test

* Fix generating_signals tests

* Remove usage of RuleDataClient-based execution log client

* Don't check output index version if rule registry enabled

* Fix bulk duplicate rule

* Fix duplicate rule test

* Fix readPrivileges and timestamp check logic

* Fixes for eql and exceptions tests... disable open_close_signals

* Type fixes / keyword test fixes

* Additional test fixes

* Unit test fixes + signal -> kibana.alert

* Test fixes for exceptions

* Fix read_resolve_rules test

* Various test fixes with marshallmain

* Sort search results

* Fix create_rules tests

* Disable writer cache for integration tests

* Disable writer cache for cases integration tests

* Fix types in rule_data_plugin_service

* Fix ordering in exceptions tests

* Remove rule_registry.enabled flag

* Fix signals migration tests

* Don't check signals index before creation

* Fix cypress config

* Fix type error

* create_migrations tests

* Skip flaky test

* Helpful comment

* Fixes from merge conflicts

* Pretend that signals index exists

* Fix type errors

* Skip flaky tests

* Fix threat matching test

* Clean up

* Reverting default ruleRegistry experimental flag (breaks unit tests)

* Reenable rule registry experimental feature by default

* Execute DE rule migration in 8.0

Co-authored-by: Marshall Main <marshall.main@elastic.co>
2021-10-26 16:56:40 -04:00
Tyler Smalley
f92cbbcd7d skip flaky suite (#115366) 2021-10-26 13:45:24 -07:00
Jason Skowronski
cf75735da2
[Fleet] Marking API spec as experimental (#116331) 2021-10-26 13:41:35 -07:00
Tim Sullivan
3b8766fe95
[Reporting] Suppress debug logs in the mock logger (#116012)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 13:29:54 -07:00
Zacqary Adam Xeper
f389b74203
[Metrics UI] Clear threshold alert groups state when filterQuery changes (#116205) 2021-10-26 15:21:43 -05:00
Tobias Stadler
cd3ec12128
[Cases] Fixed typo (#116042)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 23:09:29 +03:00
Lukas Olson
eb74b86ca4
[data.search.session] Use locators instead of URL generators (#115681)
* [data.search.session] Use locators instead of URL generators

* Add migration

* Fix/update tests

* Fix types

* Fix test setup

* Update docs

* Fix version :)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 12:30:11 -07:00
Tim Sullivan
1211149038
[Reporting] Fix screenshot diagnostics (#116199)
* [Reporting] Fix screenshot diagnostics

* update snapshots

* fix test

* tersify test assertions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 20:29:31 +01:00
Patryk Kopyciński
f6dd54a00a
[Osquery] Fix 7.16.0 BC1 issues (#116074) 2021-10-26 20:14:03 +01:00
spalger
960b037f81 Revert "[ML] Nodes overview for the Model Management page (#115772)"
This reverts commit 605e9e2d3d.
2021-10-26 13:52:01 -05:00
Xavier Mouligneau
e185afefa2
Register "minimal" feature privileges regardless of the current license level (#115992)
* bring minimal-* privilege up

* Fix api_integration for minimal_

* attempt to fix minimal_ UI

* fix tests

* Update x-pack/plugins/security/server/authorization/privileges/privileges.test.ts

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* fix tests

* fix es-lint

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
2021-10-26 18:49:01 +01:00
Dima Arnautov
605e9e2d3d
[ML] Nodes overview for the Model Management page (#115772)
* [ML] trained models tab

* [ML] wip nodes list

* [ML] add types

* [ML] add types

* [ML] node expanded row

* [ML] wip show memory usage

* [ML] refactor, use model_memory_limit for dfa jobs

* [ML] fix refresh button

* [ML] add process memory overhead

* [ML] trained models memory overview

* [ML] add jvm size, remove node props from the response

* [ML] fix tab name

* [ML] custom colors for the bar chart

* [ML] sub jvm size

* [ML] updates for the model list

* [ML] apply native process overhead

* [ML]add adjusted_total_in_bytes

* [ML] start and stop deployment

* [ML] fix default sorting

* [ML] fix types issues

* [ML] fix const

* [ML] remove unused i18n strings

* [ML] fix lint

* [ML] extra custom URLs test

* [ML] update tests for model provider

* [ML] add node routing state info

* [ML] fix functional tests

* [ML] update for es response

* [ML] GetTrainedModelDeploymentStats

* [ML] add deployment stats

* [ML] add spacer

* [ML] disable stop allocation for models with pipelines

* [ML] fix type

* [ML] add beta label

* [ML] move beta label

* [ML] rename model_size prop

* [ML] update tooltip header

* [ML] update text

* [ML] remove ts ignore

* [ML] update types

* remove commented code

* replace toast notification service

* remove ts-ignore

* remove empty panel

* add comments, update test subjects

* fix ts error

* update comment

* fix applying memory overhead

* Revert "fix applying memory overhead"

This reverts commit 0cf38fbead.

* fix type, remove ts-ignore

* add todo comment
2021-10-26 18:39:37 +01:00
Larry Gregory
5a9e170d4b
Remove the legacy audit logger (#116191)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 18:32:17 +01:00
Nathan Reese
adace71ee5
[maps] add support for mvt _key property (#116204)
* [maps] add support for mvt _key property

* return property value, not key name

* eslint

* eslint

* fix jest test and update expect for second geo grid tile API test

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 11:08:43 -06:00
Sergi Massaneda
109e0e71c7
[Security Solutions] Improve deep links generation by capabilities (#116274)
* deep links structure changed

* feature on child deep links not required
2021-10-26 17:50:48 +01:00
Nathan Reese
c40d3db6b6
[Maps] remove ecommerce map saved object from home plugin (#116295) 2021-10-26 10:44:14 -06:00
Thomas Neirynck
4a988dc5e3
[Maps] Remove proxyElasticMapsServiceInMaps (#116184)
Removes the map.proxyElasticMapsServiceInMaps yml setting.
2021-10-26 12:16:29 -04:00
Andrew Goldstein
9911883ba4
[Security Solution] Prevents the Status badge from stretching in the Alert Details flyout (#116237)
## [Security Solution] Prevents the `Status` badge from stretching in the Alert Details flyout

This PR fixes <https://github.com/elastic/kibana/issues/115709> to prevent the `Status` badge from stretching in the Alert Details flyout.

### Screenshots

**Before:**

![before](https://user-images.githubusercontent.com/4459398/138806049-895317b6-2990-43f6-b978-dab1711494a5.png)

After Chrome `95.0.4638.54`:

![after-chrome](https://user-images.githubusercontent.com/4459398/138806164-ce802982-5c5a-4a30-a906-1583e2ba9939.png)

After Firefox `93.0`:

![after-firefox](https://user-images.githubusercontent.com/4459398/138806249-152a6b33-f1b9-4a5b-8607-8da29689d599.png)

After Safari `15.0`:

![after-safari](https://user-images.githubusercontent.com/4459398/138806320-45202b3a-1f84-4a4f-8fd0-107523597a22.png)

### Details

The fix overrides the default value of `EuiFlexGroup`'s `alignItems` prop, which has a default value of `stretch`, per the image below:

![EuiFlexGroup_alignItems](https://user-images.githubusercontent.com/4459398/138805941-96e06533-8df7-447c-bb74-9278a06d39db.png)
2021-10-26 09:46:01 -06:00
Giorgos Bamparopoulos
b17e01dd9a
[APM] Set level for all registered deprecations (#116272) 2021-10-26 16:42:32 +01:00
Giorgos Bamparopoulos
dc77c89e84
Update dependencies overview route to use backendName as a query param (#115226)
* Update dependencies overview route to use backendName as a query param

* Remove backendName from context

* Move backendMetadataFetch call to the place that is used and remove ApmBackendContext

* Update API routes and tests

* Add redirect from the old route
2021-10-26 16:35:08 +01:00
Mark Hopkin
3d47a03489
change save integration button text (#116267) 2021-10-26 16:19:18 +01:00
Ignacio Rivas
3920918d3a
[Index Management] Remove freeze index action and api (#116110)
* Remove freeze index action and api

* Remove unused translations

* Add test for unfreeze action

* Fix tests

* Fix tests
2021-10-26 17:02:17 +02:00
Melissa Alvarez
d91bd98e97
retain query language on step edit (#116227) 2021-10-26 10:49:45 -04:00