Commit graph

13330 commits

Author SHA1 Message Date
Chris Cowan 0452483e7d
[Metrics UI] Add integration tests for Metric Threshold Rule and refactor to fire correctly (#109971)
* [Metrics UI] Add integration tests for Metric Threshold and refactor to fire correctly

* Removing unused variables

* Fixing tests for metric_threshold_executor

* Fixing test for metric_query

* fixing test

* Changing type guard
2021-09-02 10:38:45 -06:00
Sergi Massaneda 56669c034c
[RAC] Persistent timeline fields fix (#110685)
* fix stringify circular ref crash and default columns on createTimeline

* rollback reset buton fix to split PR

* adding fields to the storage cleaning

* tests fixed

* test fix
2021-09-02 16:33:07 +02:00
Byron Hulcher f21731fb3a
Support the warning state for crawler validation steps (#110864) 2021-09-02 10:00:29 -04:00
Jonathan Buttner d2fffdcca1
[Cases] Cleaning up migration and re-hiding comments saved object (#109344)
* Cleaning up migration and so

* Refactoring filter to be check in reduce
2021-09-02 09:24:37 -04:00
Byron Hulcher c7ee7d7898
Split CrawlerLogic from CrawlerOverviewLogic (#110850) 2021-09-02 14:56:20 +02:00
Dima Arnautov 0ae7455377
[ML] Add job audit messages API integration tests (#110793) 2021-09-02 14:43:14 +02:00
Mikhail Shustov 1205ba4ce0
do not export all the types from licensing plugin (#110942)
* do not export all the types from licensing plugin

* another export issue
2021-09-02 07:08:02 -04:00
Byron Hulcher f3bb942845
Remove beta tag from Crawler document ingestion card (#110922) 2021-09-02 11:12:07 +02:00
Angela Chuang fb77be26ea
update topN panel width (#110803)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-02 09:04:31 +01:00
Spencer fecdba7eba
[eslint] add rule to prevent export* in plugin index files (#109357)
* [eslint] add rule to prevent export* in plugin index files

* deduplicate export names for types/instances with the same name

* attempt to auto-fix duplicate exports too

* capture exported enums too

* enforce no_export_all for core too

* disable rule by default, allow opting-in for help fixing

* update tests

* reduce yarn.lock duplication

* add rule but no fixes

* disable all existing violations

* update api docs with new line numbers

* revert unnecessary changes to yarn.lock which only had drawbacks

* remove unnecessary eslint-disable

* rework codegen to split type exports and use babel to generate valid code

* check for "export types" deeply

* improve test by using fixtures

* add comments to some helper functions

* disable fix for namespace exports including types

* label all eslint-disable comments with related team-specific issue

* ensure that child exports of `export type` are always tracked as types

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 18:05:45 -07:00
Pete Hampton 4f0a63f575
Security Telemetry Refactor (#109875)
* [@pjhampton/@donaherc] Move sec telem tasks into own package.

* Split filter out into its own module, started abstracting ES interaction into a queries module

* Implemented querier and fixed some types

* Updated tests, moved receiver to plugin from sender to decouple them.

* fixed integration in detection engine, misc fixes

* [@pjhampton] Fix type ref problems. Update test defs.

* Make url transformer a member func of the sender class.

* [@pjhampton] clean up receiver commentary.

* [@pjhampton] add null check consistency.

* Fix bad formatting.

Co-authored-by: cdonaher <cdonaher@endgame.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 17:37:01 -06:00
CJ Cenizal cf8ab3bb11
Add snapshotsUrl to Cloud plugin public interface. (#110328)
* Add unit tests for Cloud plugin setup interface.
2021-09-01 14:42:01 -07:00
Marshall Main f58865c1f5
[Rule Registry][RAC] Rename kibana.alert.id to kibana.alert.instance.id (#110528)
* Rename kibana.alert.id to kibana.alert.instance.id

* Update test snapshot

* Fix test

* One more fix
2021-09-01 16:56:49 -04:00
Cauê Marcondes 2fe56f9793
[APM] tests restructure (#110703)
* refactoring test

* improving test structure

* improvements

* improving readmes

* readme

* test

* fixing ts issue

* addressing pr comments

* fixing readme files

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 16:42:33 -04:00
Lisa Cawley a82f6ca20e
[DOCS] Latency correlations (#110557) 2021-09-01 12:34:48 -07:00
Patrick Mueller dfa6924bee
[task manager] provide better diagnostics when task manager performance is degraded (#109741)
resolves #109095
resolves #106854

Changes the way task manager and alerting perform their health / status
checks:

- no longer sets an `unavailable` status; now uses `degraded` instead
- change task manager "hot stats freshness" calculation to allow for
  staler data before signalling a problem
- Changed the "Detected potential performance issue" message to sound
  less scary, include a doc link to task manager health monitoring, and
  log a debug instead of warning level
- add additional debug logging when task manager sets a status that's
  not `available`, indicating why it's setting that status (in the code,
  it's when task manager uses HealthStatus.Warning or Error)
2021-09-01 15:12:46 -04:00
Lisa Cawley 714735db21
[APM] Use doc link service instead of ElasticDocsLink (#109027) 2021-09-01 12:08:38 -07:00
Dominique Clarke e25c9dfece
[Uptime] [Synthetics Integration] browser functional tests (#110648)
* uptime - synthetics integration - add browser functional tests

* focus tests

* unfocus test

* Uptime - Synthetics Integration - adds stringToJsonFormatter
2021-09-01 14:54:00 -04:00
Angela Chuang 9dec97b5f4
[Security Solution] Enable repositionOnScroll for overflow popovers (#110584)
* enable repositionOnScroll

* unit test

* update test case

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 14:50:33 -04:00
Mark Hopkin 508d045f90
fix: do not show upgrade button on latest version of package (#110764) 2021-09-01 11:25:41 -07:00
Christos Nasikas 1f90712c47
[Timeline] Show cases create flyout with timeline open (#110811) 2021-09-01 20:06:55 +03:00
Kyle Pollich 3662a39b8e
[Fleet] Add Fleet diagrams to dev_docs (#110794)
* Add initial fleet dev diagrams to dev_docs

* Move Fleet Server arrow to ES instead of Kibana
2021-09-01 12:12:51 -04:00
Patryk Kopyciński 34aef088ad
[RAC] Add embeddable to o11y optionalPlugins (#110713) 2021-09-01 18:05:22 +02:00
Constance 47b86e1bf7
Upgrade EUI to v37.3.1 (#109926)
* Upgrade EUI to v37.3.1

* Update i18n token mappings

* Skip i18n_eui_mapping defString checks for functions

* Update snapshots

* Update failing Security tests with extra nodes

* Remove hook cleanup now that elastic/eui#5068 is merged

* [i18n PR feedback] Prefer specific token skipping over all functions skipping

* Revert "Remove hook cleanup now that elastic/eui#5068 is merged"

This reverts commit e40ebfa929.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 08:39:20 -07:00
Aaron Caldwell 19b23ef477
[Maps] Add new index handling for users missing privs for index creation (#109754)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 11:29:47 -04:00
Angela Chuang 69568ebb17
[Security Solution] Endpoint Exception status in flayout is not aligned with alerts context menu (#110203)
* unit test

* add isAlertFromEndpointAlert check

* update isAlertFromEndpointAlert

* unit test

* fix unit test
2021-09-01 16:25:53 +01:00
Sergi Massaneda e9c20f9802
[RAC] Expand cell footer button changes to prevent overflow (#110506)
* fix hover actions tooltip footer buttons overflow

* reorder actions

* override eui styles to match popover actions design
2021-09-01 16:47:43 +02:00
Joe Portner b17d87e508
Security usage data (#110548) 2021-09-01 10:35:36 -04:00
Oliver Gupte 77890b1ccf
[APM] Adds missing transaction events fallback badge to transaction details (#109846) (#110753) 2021-09-01 09:51:15 -04:00
Jonathan Buttner 31d335868e
Disable sync toggle in flyout (#110714) 2021-09-01 09:06:29 -04:00
Phillip Burch a386dfe994
[Montiroing] Add monitoring toolbar with date picker (#110612) 2021-09-01 05:35:53 -05:00
Ahmad Bamieh 249c5fbf9a
[Core deprecations] Add title field to deprecation info (#109840) 2021-09-01 13:10:25 +03:00
Sergi Massaneda d34ef7ba9f
reset fields fix (#110710) 2021-09-01 11:25:11 +02:00
Xavier Mouligneau 16af3e95cb
[RAC] Remove rbac on security solution side (#110472)
* wip to remove rbac

* Revert "[Cases] Include rule registry client for updating alert statuses (#108588)"

This reverts commit 1fd7038b34.

This leaves the rule registry mock changes

* remove rbac on Trend/Count alert

* update detection api for status

* remove @kbn-alerts packages

* fix leftover

* Switching cases to leverage update by query for alert status

* Adding missed files

* fix bad logic

* updating tests for use_alerts_privileges

* remove index alias/fields

* fix types

* fix plugin to get the right index names

* left over of alis on template

* forget to use current user for create/read route index

* updated alerts page to not show table when no privileges and updates to tests

* fix bug when switching between o11y and security solution

* updates tests and move to use privileges page when user tries to access alerts without proper access

* updating jest tests

* pairing with yara

* bring back kbn-alerts after discussion with the team

* fix types

* fix index field for o11y

* fix bug with updating index priv state

* fix i18n issue and update api docs

* fix refresh on alerts

* fix render view on alerts

* updating tests and checking for null in alerts page to not show no privileges page before load

* fix details rules

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
2021-09-01 04:23:44 -04:00
Dario Gieselaar 0d4fb4f338
[APM] Filter throughput on transaction name (#110645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-01 08:41:37 +02:00
Cauê Marcondes 31057f7215
[APM] "Backends" naming (#110523)
* renaming backends to dependencies

* changing name on service maps
2021-09-01 00:01:10 -04:00
Cauê Marcondes 5b6588d8cb
[APM] Custom links creation don't work (#110676)
* fixing custom links issue

* Removing unused imports
2021-08-31 23:56:47 -04:00
Kevin Logan 53c011830d
[Security Solution] Correct memory exception field names (#110705) 2021-08-31 22:07:00 -04:00
Yuliia Naumenko 3e15695d06
[Alerting][8.0] Prepare alerting SOs to sharecapable (#110386)
* [Alerting] [8.0] Prepare for making alerting saved objects sharecapable (#109990)

* [Alerting] [8.0] Prepare for making alerting saved objects sharecapable

* removed v8 check

* removed link

* added no op migration

* fixed name

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Actions] [8.0] Prepare for making action saved objects sharecapable. (#109756)

* [Actions] [8.0] Prepare for making action saved objects sharecapable.

* added more tests

* made it compatible to merge to 7.x

* fixed due to comments

* fixed tests

* added tests

* fixed tests

* fixed due to comments

* added no-opactions migration

* fixed test

* [Task Manager][8.0] Added migrations to savedObject Ids for "actions:* and "alerting:*" task types (#109180)

* [Task Manager][8.0] Added migrations to savedObject Ids for "actions:* and "alerting:*" task types

* fixed due to comments

* fixed typo

* added more tests

* added unit test

* added func test

* added func tests

* fixed test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* fixed merge

* fixed legacy tests

* fixed tests

* fixed eslint

* Update migrations.ts

fixed action task

* fixed due to comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 16:38:33 -07:00
Cauê Marcondes 634c272edd
[APM] Fleet: adding support for legacy fields (#110136)
* supporting legacy fields

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 18:02:00 -04:00
Spencer 72f6700270
[eslint] prevent async Promise constructor mistakes (#110349)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-31 17:54:13 -04:00
Kyle Pollich 522a0c4281
[Fleet] Fix bug when upgrading Windows package policies (#110698)
* Fix bug when upgrading Windows package policies

Ensure package policy merge logics accounts for cases in which an
input/stream which previously had no variables declared but has
variables in a later package version.

Fixes #110202

* Refactor original var set into deepMergeVars
2021-08-31 17:43:00 -04:00
Domenico Andreoli 01e1e4af3f
Merge junit results also for CCS functional tests (#110591) 2021-08-31 16:47:05 -04:00
Tim Sullivan ca120eef91
[Reporting] Remove any from pdf job compatibility shim (#110555)
* [Reporting] Remove `any` from pdf job compatibility shim

* remove `any` usage in a few other isolated areas
2021-08-31 11:08:49 -07:00
Quynh Nguyen 42acf39a70
[ML] Populate date fields for Transform (#108804)
* [ML] Add index pattern info & select control for date time

* [ML] Update translations

* [ML] Gracefully handle when index pattern is not available

* [ML] Fix import

* [ML] Handle when unmounted

* [ML] Remove load index patterns because we don't really need it

* [ML] Add error obj to error toasts

* [ML] Update tests

* [ML] Update hook

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 13:08:17 -05:00
Tim Sullivan bbfad19051
[Reporting] Remove any from public/poller (#110539)
* [Reporting] Remove `any` from public/poller

* remove unnecessary comment
2021-08-31 11:07:56 -07:00
Gloria Hornero f8c80a7422
[Security Solution] Updates loock-back time on Cypress tests (#110609)
* updates loock-back time

* updates loock-back value for 'expectedExportedRule'
2021-08-31 20:07:06 +02:00
Dima Arnautov 95eab7ccca
[ML] Fix "Show charts" control state (#110602)
* [ML] fix show charts state

* [ML] fix export
2021-08-31 13:54:13 -04:00
Dmitry Tomashevich 3f7c461cd5
[Graph] Deangularize graph app controller (#106587)
* [Graph] deaungularize control panel

* [Graph] move main graph directive to react

* [Graph] refactoring

* [Graph] remove redundant memoization, update import

* [Graph] fix settings menu, clean up the code

* [Graph] fix graph settings

* [Graph] code refactoring, fixing control panel render issues

* [Graph] fix small mistake

* [Graph] rename components

* [Graph] fix imports

* [Graph] fix graph search and inspect panel

* [Graph] remove redundant types

* [Graph] fix problem with selection list

* [Graph] fix functional test which uses selection list

* [Graph] fix unit tests, update types

* [Graph] fix types

* [Discover] fix url queries

* [Graph] fix types

* [Graph] add react router, remove angular stuff

* [Graph] fix styles

* [Graph] fix i18n

* [Graph] fix navigation to a new workspace creation

* [Graph] fix issues from comments

* [Graph] add suggested changed

* Update x-pack/plugins/graph/public/components/graph_visualization/graph_visualization.tsx

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

* [Graph] remove brace lib from imports

* [Graph] fix url navigation between workspaces, fix types

* [Graph] refactoring, fixing url issue

* [Graph] update graph dependencies

* [Graph] add comments

* [Graph] fix types

* [Graph] fix new button, fix control panel styles

* [Graph] apply suggestions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-08-31 19:26:45 +03:00
Nathan L Smith 3bae4cdc06
Add inspector panel for APM routes (#109696)
When the observability:enableInspectEsQueries advanced setting is enabled, show an inspector that includes all queries through useFetcher.

Remove the callout.
2021-08-31 11:10:54 -05:00
Garrett Spong 77b8e25b98
[RAC][Security Solution] Adds Machine Learning rule type (#108612)
## Summary

Ports over the existing Security Solution ML Rule to the RuleRegistry.

How to test this implementation
1. Enable the following in your `kibana.dev.yml`
```
xpack.ruleRegistry.enabled: true
xpack.ruleRegistry.write.enabled: true
xpack.securitySolution.enableExperimental: ['ruleRegistryEnabled']
```

2. Create a rule by running:
```
./x-pack/plugins/security_solution/server/lib/detection_engine/rule_types/scripts/create_rule_ml.sh
```

3. Push document to anomalies index (or trigger anomaly for job id from `create_rule_ml.sh` script)


### 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-08-31 09:48:10 -06:00
Ester Martí Vilaseca 50a95ff78a
[Stack Monitoring] Add overview page first version (#110486)
* Add header to page template

* add external config provider and overview content

* REmove unnecessary todos

* Remove non working section from header

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 17:44:34 +02:00
Georgii Gorbachev 192556ef63
[RAC][Rule Registry] Put index upgrade logic under a feature flag (#110592)
**Ticket:** https://github.com/elastic/kibana/issues/110594

## Summary

This PR adds a feature flag around the logic that finds existing Alerts as Data indices and upgrades the mappings or rolls the index if the mappings can't be upgraded in place.

**IMPORTANT:**

- **The feature flag is switched off by default**. This is intentional, because we need to **disable the upgrade logic in 7.15.0**.
- **This is a temporary measure**. We're going to work on fixing the index upgrade logic asap and ship it before the next release that makes any mapping changes, possibly as soon as 7.15.1.
- Developers will need to enable it in their local kibana configs this way:

    ```yaml
    xpack.ruleRegistry.unsafe.indexUpgrade.enabled: true
    ```

Please check the ticket for the background of this fix.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [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
- [ ] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/master/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
2021-08-31 17:40:06 +02:00
Katrin Freihofner 8bcbc2dabd
increases contrast of recovered health badge (#110210)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 17:12:15 +02:00
Aaron Caldwell 10185fecb8
[Maps] Ensure draw tools updates by index name, not index pattern title (#108394) 2021-08-31 10:49:34 -04:00
Tim Roes c510288c05
Split KibanaApp into VisEditors and DataDiscovery (#110588)
* Split KibanaApp into VisEditors and DataDiscovery

* Add discover functional tests to codeowners

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 15:57:23 +02:00
Oliver Gupte e22c46bcc6
[APM] Fix for no-data state for fallback from aggregated transactions (#109995)
* [APM] Fix for no-data state for fallback from aggregated transactions (#109609)

* PR feedback and unit tests

* fixes lint error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 09:57:10 -04:00
Corey Robertson d3774519c0
[Canvas] Adds references extract/inject for Workpads (#109874)
* Register embeddable functions server side.  Adds reference extraction/injection to workpads

* Clean up

* Fix Types

* Update API docs

* Remove API doc from expression (bad conflict resolution)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 09:45:48 -04:00
Steph Milovic 03d52e9920
[Security Solution] [Bugfix]Alerts table event rendered view timestamp (#110561) 2021-08-31 07:40:59 -06:00
Marco Liberati 3b81205a23
[Lens] Show validation feedback on top values out of bounds number of values (#110222)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 15:23:18 +02:00
Miriam c568a433f3
[APM] Set preference to any value for APM searches (#110480) 2021-08-31 14:11:54 +01:00
Kyle Pollich a49700f95d
[Fleet] Fix policy upgrade from APM 0.3.0 to 0.4.0 (#110505)
* Fix policy upgrade from APM 0.3.0 to 0.4.0

Add debug log + logic to skip over any package variables that have been
removed from the base policy object. Issue was initially surfaced
testing upgrade from APM integration v0.3.0 to v0.4.0.

Ref #109907

* Fix type error in test

* Remove translation for validation debug log

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 08:08:00 -04:00
Kyle Pollich adde076d58
Add breadcrumbs for upgrade package policy page (#110468)
Adds distinct breadcrumbs for both "upgrade package policy" paths:
1. From the fleet agent policies list page
2. From the integrations package policie slist page

Closes #110434
2021-08-31 08:07:11 -04:00
Xavier Mouligneau 782f29a407
[RAC][o11y] fix o11y privileges when rule created in stack (#110167)
* fix o11y privileges when rule created in stack

* fix merge

* fix dsl alerts

* fix privileges on o11y

* after discussion with o11y, we agree to simplify logic of the count of alerts

* remove unused variable

* fix one more type error

Co-authored-by: mgiota <panagiota.mitsopoulou@elastic.co>
2021-08-31 07:31:38 -04:00
Marta Bondyra 03469515cf
[Lens] Fix filters reappearing in the saved object when saving (#110460)
* bugs fixed

* test for loading

* fix workspace panel

* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx

* revert useEffect for external embeddables
2021-08-31 11:51:54 +02:00
Sergi Massaneda 7ebed9321a
fix view all fields button when filtered (#110464) 2021-08-31 10:19:11 +02:00
mgiota b7ad4268d0
[RAC][Observability] preserve lifecycle alert changes for active alerts (#110124)
* preserve lifecycle changes for active alerts

* fix failing tests

* fix failing lifecycle executor tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 09:42:33 +02:00
Milton Hultgren 02538b6b41
[Observability] Update AlertsSearchBar placeholder (#110192)
* [Observability] Update AlertsSearchBar placeholder (#108179)
* [Observability] Remove default search query from Alerts page (#110242)

This is done to align with other placeholder texts found within the
Observability solution.
2021-08-31 08:32:46 +02:00
Candace Park f5655e4b36
[Security Solution][Endpoint][Policy] Updated Policy details UI (#110429) 2021-08-30 21:49:53 -04:00
Matthew Kime 75c6afe112
[data views] deprecate indexPattern exports, provide dataView exports (#109987)
* first pass at renaming exports

* type fixes

* fix jest test

* look for correct error type

* remove transitional error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 18:04:03 -05:00
Jonathan Budzenski 88f955621d
Bump node-sass to 6.0.1 (#109930) 2021-08-30 16:42:06 -05:00
Lisa Cawley f41ab3590d
Replace hard-coded link to APM rules (#109021) 2021-08-30 14:41:16 -07:00
Nathan Reese 5b4df7916e
[Maps] cleanup mapExtentChanged thunk (#110098)
* [Maps] cleanup mapExtentChanged thunk

* rename for clarity

* cleanup

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:16:00 -06:00
Clint Andrew Hall e02eb5084b
[canvas] Fix bugs in interactive workpad (#110385)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 16:06:15 -05:00
Patryk Kopyciński 3d4b5c595d
[Osquery] Fix 7.15 BC3 issues (#110425) 2021-08-30 22:57:54 +02:00
Ashokaditya 22e5565e00
[Security Solution][Endpoint] Fix activity log load empty state flicker (#110233)
* account for API errors and uninitialized state before fetching data

fixes elastic/kibana/issues/107129

* better name

refs elastic/kibana/pull/102261

* don't show date picker when loading data initially

fixes elastic/kibana/issues/107129

* use a readable selector instead

review changes

* remove redundant data fetch using paging action on tab switch.

refs elastic/kibana/pull/102261

* remove redundant validation

review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:29:43 -04:00
Dominique Clarke 6e8d86b3e7
[APM] [User Experience] remove uiFilters from setupRequest (#109908)
* remove uiFilters from setupRequest

* adjust get_buckets test

* update getAnomalySeries

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:02:47 -04:00
Dominique Clarke bb9ea8413f
[Uptime] [Synthetics integration] parse inline script as json before sending it to fleet (#110118)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:01:51 -04:00
Nathan Reese 4cf722fb48
[Maps] replace IFieldType with IndexPatternField (#110245)
* [Maps] replace IFieldType with IndexPatternField

* clean up imports

* import from public

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 12:56:15 -06:00
Nathan Reese 9e1a4dda42
[Maps] remove map.regionmap.* (#109896)
* remove regionmap config

* clean-up

* clean up docs and i18n cleanup

* telemetry check fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 12:55:03 -06:00
Cauê Marcondes a165067477
[APM] Logs tab seems to show logs from incorrect service(s) (#110484) 2021-08-30 14:51:05 -04:00
Michael Dokolin e610bb583f
[Reporting] Remove export types registry dependency from the content stream (#109740) 2021-08-30 17:40:10 +02:00
Michael Dokolin 57dc0c1ff5
[Data] Update esaggs function to use count aggregation by default (#110095)
* Update default value of the aggs argument to use count aggregation
* Fix datatable canvas element to use column id instead of name
2021-08-30 17:10:14 +02:00
Yulia Čech 949a4a6898
[ILM] Fixed loading layout that has degraded after adding RedirectAppLinks (#110461) 2021-08-30 16:09:36 +02:00
Milton Hultgren ab2deb773a
[Observability] Make Alerts page callout more subtle (#110197) 2021-08-30 15:41:09 +02:00
Alexey Antonov 6d874caef5
[Lens] should register "suffix" field formatter in setup lifecycle (#110218)
Closes: #106838

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 15:17:09 +03:00
Gloria Hornero 1932540992
fixes failing tests (#110436) 2021-08-30 13:02:39 +02:00
Diana Derevyankina b74c79ad32
[Lens] Remove deprecated IFieldType (#109825)
* [Lens] Remove deprecated `IFieldType`

* Fix types for terms.test

* Replace IndexPatternField with FieldSpec, revert terms.test and update other tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-30 13:39:17 +03:00
Candace Park 079fc9ad19
[Security Solution][Endpoint][Event Filters] Fixes missing spacers between event filters cards (#110282) 2021-08-29 22:17:46 -04:00
Walter Rafelsberger 8eea9005f1
[ML] Data Grid: Fix alignment of sorting arrow when histogram charts are enabled (#110053)
Adds a CSS override to align the sorting arrow at the bottom when histogram charts are enabled.
2021-08-27 23:50:44 +02:00
Clint Andrew Hall 2ed3fcdec1
[canvas] Fix image argument form issues (#109767)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 16:17:05 -04:00
Clint Andrew Hall 2520990e1e
Fix asset in Pitch template (#109742)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 16:10:52 -04:00
Kyle Pollich 74f3b76592
[Fleet] Fix upgrade link in Fleet policy table (#110228)
* Fix upgrade link in Fleet policy table

* Ensure upgrade page displays as upgrade even without from prop
2021-08-27 08:08:53 -04:00
Walter Rafelsberger 54a45bba65
[ML] APM Latency Correlations: Fix empty state (#109813)
- Correctly renders the empty chart state when no data is available.
- Hides the "Click drag to select" and trace samples message when the chart shows an empty state to avoid redundant info.
- Adds jest unit tests that would fail with the previously visible loading indicators.
- Fix a bug with cancelling search strategies.
2021-08-27 07:08:50 -04:00
Yaroslav Kuznietsov d43e9f586b
[Canvas] Fixes Storybook for DatasourceComponent is crashing. (#110180)
* Added mock for `es_service`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 06:58:10 -04:00
Catherine Liu 2e4e0fca4c
Clears resolved arg on embeddable destroy (#109945)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 02:46:11 -04:00
Yaroslav Kuznietsov dde701faaa
[Canvas] ItemGrid refactor. (#110044) 2021-08-27 09:26:55 +03:00
Cauê Marcondes 49e3edf032
[APM] Latency threshold alerts are not being triggered (#110315) 2021-08-26 23:56:14 -04:00
Marshall Main 6d7998e70c
[Security Solution] Fix another reference to ALERT_STATUS (#110376) 2021-08-26 20:29:21 -05:00
Ross Wolf e64a03677f
[Detection Rules] Add 7.15 rules (#110345) 2021-08-26 19:43:22 -04:00
Dominique Clarke cf24e6ca76
[User Experience] Search filter input - remove undesired blur (#110314)
* ux filter input - remove undesired blur on input field

* adjust types
2021-08-26 19:01:55 -04:00
Marshall Main 682bc7c771
[RAC] Replace usages of kibana.alert.status: open with active (#109033)
* Replace usages of alert.status: open with active

* Update unit tests

* Add back home.disableWelcomeScreen=true

* Only disable welcome screen within APM ftr config

* Add disableWelcomeScreen option to security solution cypress config

* Fix reference to workflow status

* oops

* Remove duplicate disableWelcomeScreen

* Update README.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 18:58:44 -04:00
Matthew Kime 8babdc2462
Remove index pattern placeholder advanced setting (#110334)
* remove index pattern placeholder setting

* remove unused translations
2021-08-26 17:55:37 -05:00
Kevin Logan 1986d2dc99
[Security Solution] Add additional advanced policy options for Memory protections (#110288)
* [Security Solution] Add additional advanced policy options for Memory protections
2021-08-26 18:19:23 -04:00
Frank Hassanabad 2859eeb7de
Removed one liner deprecation found with ElasticClient and made it harder to accidently import from the kbn package (#110318)
## Summary

Removes ElasticSearch deprecation and makes it harder to import it from the wrong package. I accidentally exposed a deprecated `ElasticSearch` from a package we do not want to expose and everyone's IDE is suggesting it rather than the correct one from Kibana core.

* Removes the type from the exports within the package
* Fixes the instance that is trying to import it in favor of the correct one.
2021-08-26 17:24:16 -04:00
Davis Plumlee e093d3bcca
[Security Solution][Exceptions] Allows bulk close on exception to close acknowledged alerts (#110147) 2021-08-26 15:46:59 -04:00
Clint Andrew Hall 12ef3a4e9f
[canvas] Fix element stats (#109770) 2021-08-26 14:07:25 -05:00
Patryk Kopyciński f310490bc1
[Cases] Fix add Lens markdown plugin UX (#109178) 2021-08-26 14:56:45 -04:00
ymao1 a3d03ecbdf
[Alerting] Remove predefined connectors from rule reference array (#109437)
* Exposing preconfigured connectors through actions setup contract

* Adding stub for migration using preconfigured connectors

* Adding isPreconfigured fn to actions client

* Updating rules client logic to not extract predefined connector ids

* Functional tests

* Adding migration

* Adding functional test for migration

* Adding functional test for migration

* Adding note to docs about referenced_by_count if is_preconfigured

* Fixing functional test

* Changing to isPreconfiguredConnector fn in actions plugin setup contract

* Update docs/api/actions-and-connectors/get_all.asciidoc

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2021-08-26 14:50:32 -04:00
Pablo Machado 3854d3a586
[RAC] EuiDataGrid pagination (#109269)
* Update T-Grid to use DataGrid pagination

* It also improves the Gtid loading state
* DataGrid pagination makes sure that we display the grid with the proper height.

* Add DataGrid height hack to t-grid

HUGE HACK!!!

DataGrtid height isn't properly calculated when the grid has horizontal scroll.
https://github.com/elastic/eui/issues/5030

In order to get around this bug we are calculating `DataGrid` height here and setting it as a prop.

Please revert this commit  and allow DataGrid to calculate its height when the bug is fixed.

* Apply DataGrid laoding and pagination changes to observability

* Fix cypress tests

* Fix t-grid page render bug on Observability

* some pagination fixes

* hide table when analyzer active

* isolate exported function

Co-authored-by: semd <sergi.massaneda@elastic.co>
2021-08-26 14:41:47 -04:00
Frank Hassanabad ad01057f90
[Security Solutions][Detection Engine] Removes side car actions object and side car notifications (Part 1) (#109722)
## Summary

Removes the "side car" actions object and side car notification (Part 1). Part 1 makes it so that newly created rules and editing existing rules will update them to using the new side car notifications. Part 2 in a follow up PR will be the migrations to move the existing data. 

The saved object side we are removing usages of is:
```
siem-detection-engine-rule-actions
```

The alerting side car notification system we are removing is:
```
siem.notifications
```

* Removes the notification files and types
* Adds transform to and from alerting concepts of `notityWhen` and our `throttle`
* Adds unit tests for utilities and pure functions created 
* Updates unit tests to have more needed jest mock
* Adds business rules and logic for the different states of `notifyWhen`, and `throttle` on each of the REST routes to determine when we should `muteAll` vs. not muting using secondary API call from client alerting
* Adds e2e tests for the throttle conditions and how they are to interact with the kibana-alerting `throttle` and `notifyWhen`

A behavioral change under the hood is that we now support the state changes of `muteAll` from the UI/UX of [stack management](https://www.elastic.co/guide/en/kibana/master/create-and-manage-rules.html#controlling-rules). Whenever the `security_solution` ["Perform no actions"](https://www.elastic.co/guide/en/security/current/rules-api-create.html
) is selected we do a `muteAll`. However, we do not change the state if all individual actions are muted within the rule. Instead we only maintain the state of `muteAll`:

<img width="2299" alt="ui_state_change" src="https://user-images.githubusercontent.com/1151048/130823045-48a9f34b-db23-44e3-b9ed-cbbb57edc3d6.png">

<img width="1163" alt="no_actions_state_change" src="https://user-images.githubusercontent.com/1151048/130823056-3f8953fa-9433-4973-a2d3-6e11263b9619.png">

Ref:
* Issue and PR where notifyWhen was added to kibna-alerting
  * https://github.com/elastic/kibana/pull/82969
  * https://github.com/elastic/kibana/issues/50077  

### 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-08-26 13:39:57 -04:00
Clint Andrew Hall 2348ced4c0
[canvas] Handle Timelion errors gracefully. (#109761) 2021-08-26 12:34:52 -05:00
Alejandro Fernández Gómez 754bf980f3
[RAC] Remove alerts from the table if user changes their workflow status (#110227) 2021-08-26 12:59:35 -04:00
Phillip Burch 85e1361ad5
[Stack Monitoring] Remove angular dep from legacy shims (#109132)
* Remove angular dep from legacy shims

* Fix ES lint
2021-08-26 11:16:14 -05:00
Michael Olorunnisola 416d42a22a
[Security Solution][RAC] Refix expand (#110236) 2021-08-26 12:01:28 -04:00
Mark Hopkin 2a05ec9ff5
[Fleet] Don't ignore "index: false" in integration index template (#110234)
* fix: don't ignore index prop when falsey

* test: add unit test for index false
2021-08-26 11:47:11 -04:00
Angela Chuang 602392e88d
[Security Solution] Host details fly out modal is not working in alerts table (#109942)
* fix expanded host and ip panel

* reuse existing links components

* rename

* add unit tests

* add unit tests

* update comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 11:40:30 -04:00
Joe Portner 695280b756
bulkGet saved objects across spaces (#109967) 2021-08-26 11:26:34 -04:00
Casper Hübertz dc0c322847
[APM] Bugfix: Increase table columns for latency and throughput (#110187) 2021-08-26 17:21:28 +02:00
Esteban Beltran 0069faf8dd
[Security Solution] Show rule.description when displaying an alert view flyout (#110221) 2021-08-26 11:05:18 -04:00
Alejandro Fernández Haro bb8ee0ce05
Enable Product check from @elastic/elasticsearch-js (#107663)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 15:36:46 +01:00
Gloria Hornero f806fa2eda
fixes opening alerts test (#110198) 2021-08-26 16:30:58 +02:00
Alexey Antonov 3cc7da8435
[Lens] Inspect flyout should be available in editor mode. (#109656)
* [Lens] Inspect flyout should be available in editor mode.

* fix typo

* add test

* add functional tests for inspector

* toMatchInlineSnapshot -> toMatchSnapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 10:18:09 -04:00
Casper Hübertz 85e030249f
[APM] Traces list: Decrease link size and impact indication (#110188)
* [APM] Decrease link size on Traces list

* [APM] Change impact column size to fixed
2021-08-26 15:59:46 +02:00
Esteban Beltran 9a8d40ffad
[Seciurity Solutions] Add additional tests for endpoint middleware (#109792) 2021-08-26 09:41:28 -04:00
Felix Stürmer 137c182761
[RAC] Populate common rule fields in alert helpers (#108679)
Co-authored-by: mgiota <panagiota.mitsopoulou@elastic.co>
2021-08-26 09:19:51 -04:00
Michael Olorunnisola 7d66cf9882
[Security Solution][RAC] Hide filters on case view (#110090) 2021-08-26 09:19:20 -04:00
Esteban Beltran c113c237f8
[Security solution] Correct memory protections label to memory manipulation protection (#110179) 2021-08-26 13:44:36 +02:00
Ashokaditya c433893473
Remove onClear on date range picker inputs (#110035)
fixes elastic/kibana/issues/108864

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 12:03:39 +02:00
Miriam 652470b900
[APM] Show hostname in JVM view (#109651)
* [APM] Show hostname in JVM view

* [APM] delete no needed param

* [APM] fix linting

* [APM] changes after review

* [APM] changes after review part deux

* [APM] fix snapshot

* [APM] improve guard on api response
2021-08-26 10:21:15 +01:00
Ester Martí Vilaseca 9c922a078c
[Stack monitoring] Add global state context and routeInit component (#109790)
* Add global state to stack monitoring react app

* Add type for state

* Add some todos

* Add route_init migration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 11:03:21 +02:00
Jean-Louis Leysens 9e04d2c5c7
[Reporting/Dashboard] Update integration to use v2 reports (#108553)
* very wip, updating dashboard integration to use v2 reports. at the moment time filters are not working correctly

* added missing dependency to hook

* added tests and refined ForwadedAppState interface

* remove unused import

* updated test because generating a report from an unsaved report is possible

* migrated locator to forward state on history only, reordered methods on react component

* remove unused import

* update locator test and use panel index number if panelIndex does not exist

* ensure locator params are serializable

* - moved getSerializableRecord to locator.ts to ensure that the
  values we get from it will never contain something that cannot
  be passed to history.push
- updated types to remove some `& SerializableRecord` instances
- fixed embeddable drilldown Jest tests given that we no longer
  expect state to be in the URL

* update generated api docs

* remove unused variable

* - removed SerializedRecord extension from dashboard locator params
  interface
- factored out state conversion logic from the locator getLocation

* updated locator jest tests and SerializableRecord types

* explicitly map values to dashboardlocatorparams and export serializable params type

* use serializable params type in embeddable

* factored out logic for converting panels to dashboard panels map

* use "type =" instead of "interface"

* big update to locator params: type fixes and added options key

* added comment about why we are using "type" alias instead of "interface" declaration

* simplify is v2 job param check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 09:53:28 +02:00
Gloria Hornero de7ae4138d
fixes 'Marking alerts as acknowledged' test (#110032)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 08:43:46 +02:00
Scotty Bollinger a50a87955c
Fix flakey test (#110154) 2021-08-26 01:32:13 -04:00
Patryk Kopyciński 90152edeaa
[Osquery] Fix scheduled query status (#106600) 2021-08-25 18:46:31 -04:00
Tim Sullivan 06c6168d34
[Reporting] Fix ability to export CSV on searched data with frozen indices (#109976)
* use include frozen setting in csv export

* add api integration test

* add fixes

* Update x-pack/test/reporting_api_integration/reporting_and_security/search_frozen_indices.ts

* test polish

* update per feedback
2021-08-25 17:42:39 -04:00
Tiago Costa 36eaf7fd58
chore(NA): enables @babel/plugin-transform-runtime to decrease output size (#109843)
* chore(NA): enables @babel/plugin-transform-runtime to decrease output size

* chore(NA): update @kbn/pm bundle

* chore(NA): missing config on corejs for runtime

* fix(NA): flaky unit test

* chore(NA): update limits file

* chore(NA): remove corejs

* chore(NA): old config files

* chore(NA): update limmits file

* chore(NA): updated yarn lock file

* chore(NA): update limits

* chore(NA): restore original test file

* chore(NA): skip flaky test

* chore(NA): skip another failing test
2021-08-25 22:24:38 +01:00
Nathan L Smith a8cd0d1e15
Remove EuiCodeEditor from service map stories (#109290)
Replace with Monaco-based `CodeEditor` from kibanaReact.

Fixes #106927.
2021-08-25 15:54:35 -05:00
Kyle Pollich 99071ecbb2
[Fleet] Fix upgrades for packages with restructured inputs (#109887)
* Fix upgrades for packages with restructured inputs

Addresses errors surfaced when testing upgrades from AWS 0.6.1 to 0.10.4.
Namely, when inputs are removed from a package between versions,we were
initially throwing errors for each input in the new package that didn't
exist on the outdated package version. Now, we instead simply skip over
cases like this in which an input no longer exists on the new package version.

* Add basic test cases for restructured packages
2021-08-25 16:50:42 -04:00
renovate[bot] 9eaadd9041
Update dependency @elastic/charts to v34.2.1 (master) (#109678)
* Update dependency @elastic/charts to v34.2.1


Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
2021-08-25 15:34:06 -04:00
Tim Sullivan 4f6ece9237
[Reporting] Add SavedReport class (#109568)
* [Reporting] Add SavedReport class

* add unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-25 12:29:30 -07:00
Steph Milovic 27af6ef068
[Security Solution] Bugfix for disable state of External Alert context menu (#109914) 2021-08-25 12:49:19 -06:00
Georgii Gorbachev a299604c58
[RAC][Rule Registry] Implement versioning and backing indices (#109276)
**Ticket:** https://github.com/elastic/kibana/issues/109293

🚨 **This PR is critical for Observability 7.15** 🚨

## Summary

This PR fixes the indexing implementation in `rule_registry`. It implements the suggestions for backwards compatibility described in the ticket:

- changes the naming scheme and introduces the concept of "backing indices", so that names of the concrete ("backing") indices != names of their aliases
- adds versioning based on the current Kibana version

TODO:

- [x] Change index naming (implement the concept of backing indices)
- [x] Include Kibana version into the index template metadata
- [x] Include Kibana version into the document fields
- [x] Remove `version` from `IndexOptions` (parameters provided by solutions/plugins when initializing alerts-as-data indices)
- [x] Fix CI

### Checklist

- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [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-08-25 19:54:25 +02:00
Nathan L Smith 406df4d986
Open in dev tools button for request inspector (#109923)
Add a "Open in Dev Tools" link to the request inspector.

Allow the dev tools to open data uris that are lz-string encoded (the same method used by TypeScript Playground, which are a lot shorter than a base64 encoded string.)
2021-08-25 12:49:13 -05:00
CJ Cenizal 4fced99982
Provide guidance on how to retrieve current cloudId. (#109935) 2021-08-25 10:43:55 -07:00
Dima Arnautov 8fb22e606c
[ML] Fix bytes formatting and default message in the Anomaly detection jobs health rule type (#110069) 2021-08-25 19:10:11 +02:00
Candace Park bc3a349a84
[Security Solution][Endpoint][Host Isolation] Fixes bug where Isolate Host option is missing from alert details take actions menu (#109991) 2021-08-25 13:03:51 -04:00
Mark Hopkin f430411ba2
[Fleet] Do not show upgrade available on latest version of package (#110066)
* fix: use package policy ID when checking hasUpgrade

* fix: latest package version broken link

* refactor: use set for collecting unique namespace values
2021-08-25 12:50:40 -04:00
Casper Hübertz f6f1f22afa
[Uptime/UX] Fixes page template wrapper (#110058) 2021-08-25 18:16:16 +02:00
Dima Arnautov d66397cfe4
[ML] Telemetry for the Anomaly detection jobs health rule type (#110052)
* [ML] add mappings for the new rule type

* [ML] add telemetry for enabled health checks

* [ML] update xpack_plugins.json
2021-08-25 11:52:06 -04:00