Commit graph

5017 commits

Author SHA1 Message Date
Tiago Costa
8a2f610866
skip flaky suite (#104249) 2021-12-13 13:42:24 +00:00
Kibana Machine
ec02f3d747
[8.0] [Security Solution][Platform] - Exceptions imports (#118816) (#120824)
* [Security Solution][Platform] - Exceptions imports (#118816)

## Summary

Addresses https://github.com/elastic/kibana/issues/92613 and https://github.com/elastic/kibana/issues/117399

Goal is to allow users to import their exception lists and items alongside their rules. This PR does not complete all the UI updates needed, but does tackle the majority of use cases. The bulk of the changes occur in `import_rules_route` and the new `import_exceptions_route`.

- Adds exceptions import endpoint in `lists` plugin
- Adds exceptions import logic in import rules route in `security_solution` plugin
- Adds integration tests for exception import endpoint
- Adds integration tests for rules import endpoint to account for new functionality
- Purposely not yet adding an import modal in the exceptions table UI until further list management features added (checked with product on this front)
2021-12-12 18:39:41 -08:00
Kibana Machine
23d22569de
[Security Solutions] Fixes telemetry to work with rule types (#120809) (#121028)
## Summary

What this does:
* Fixes telemetry to work with the newer rule types
* Updates the queries to the new rule types and rule query names
* Uses constants where I can from cases and the new rule types
* Changes the index to the new index type alias
* Adds e2e backend tests we didn't have before

What this does not do:
* Doesn't add e2e backend tests for alerts added to cases
* Doesn't add e2e backend tests for ML jobs for security_solution

Those two test scenarios have to be manually tested still.

Manual testing:
To see telemetry go to advanced settings -> Usage Data (and click cluster data):
<img width="2193" alt="Screen Shot 2021-12-08 at 4 14 43 PM" src="https://user-images.githubusercontent.com/1151048/145310671-b7350892-d290-4f3d-ab8c-4e9ec86f4120.png">

Create alerts of different types and add them to cases:
<img width="1464" alt="Screen Shot 2021-12-08 at 4 48 21 PM" src="https://user-images.githubusercontent.com/1151048/145310800-2fae6373-5e84-46ec-9e44-f7a140ea9c36.png">

Activate ML_jobs and any alerts that have ML jobs associated:
<img width="754" alt="Screen Shot 2021-12-08 at 5 08 42 PM" src="https://user-images.githubusercontent.com/1151048/145310978-861f4bb7-2575-4a07-a55f-1e4fdfe288e7.png">

When clicking advanced settings -> Usage Data -> Click cluster data

Search for `security_solution` and then ensure that the data looks as expected underneath the different values such as:

`ml_jobs`
<img width="750" alt="Screen Shot 2021-12-08 at 3 08 25 PM" src="https://user-images.githubusercontent.com/1151048/145311124-c3523d4e-b31b-4bab-b14e-267155bf2b92.png">

`detection_rules` and `cases` working again:
<img width="420" alt="Screen Shot 2021-12-08 at 4 43 10 PM" src="https://user-images.githubusercontent.com/1151048/145311192-e062c435-e8c3-4919-b4e9-8a786dc588c6.png">

Note, `detection_rule_detail` will only be filled in if have prepackaged rules installed:
<img width="761" alt="Screen Shot 2021-12-08 at 5 14 50 PM" src="https://user-images.githubusercontent.com/1151048/145311446-1d78541f-1211-4389-b947-7c0939d7c946.png">

Also note that the `detection_rule_detail`'s `rule_id` is its UUID and not its `rule_id`. That's the way it's been in the codebase for a while it looks like so I have not changed that behavior.

### 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-12-09 22:04:22 -07:00
Michael Dokolin
1ec14ab03e
[Reporting] Decouple screenshotting plugin from the reporting (#120110) (#120937)
* Add screenshotting plugin
* Move screenshotting plugin configuration options
* Remove unused browser type configuration option
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	x-pack/plugins/reporting/server/export_types/common/generate_png.ts
#	x-pack/plugins/reporting/server/export_types/png/execute_job/index.ts
#	x-pack/plugins/reporting/server/export_types/png_v2/execute_job.ts
#	x-pack/plugins/reporting/server/export_types/printable_pdf/lib/tracker.ts
#	x-pack/plugins/reporting/server/export_types/printable_pdf_v2/lib/tracker.ts
#	x-pack/plugins/reporting/server/lib/screenshots/observable.ts
#	x-pack/plugins/reporting/server/lib/screenshots/observable_handler.ts
2021-12-09 09:49:57 -07:00
Kibana Machine
d9aed2a8de
[Fleet] Fix bug caused by API changes (#120886) (#120919)
* fix endpoint integration

* added test

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
2021-12-09 09:20:58 -07:00
spalger
5aa05f028f skip flaky suite (#120056)
(cherry picked from commit d9f436ccd0)
2021-12-09 01:06:29 -07:00
Kibana Machine
32fe956760
[8.0] [Fleet] Make API responses consistent (#119494) (#120753)
* [Fleet] Make API responses consistent (#119494)

* make apis consistent

* UI and test fixes

* test fixes

* fixed test

* fix tests

* fix test

* removed deprecated shared_id from openapi spec

* added back list prop as deprecated

* renamed apis with hyphens

* openapi update

* fix checks

* fix test

* renamed epm api path and response

* fix tests

* fix ml

* moved splitPkgKey

* fixed edit package policy page

* fixed storybook

* fix prettier after conflict

* fix tests

* fix tests

* fix tests

* fix test

* fix test

* added back semver validation

* fix test

* pkgVersion optional

* fix tests

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

* fixed tests

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
Co-authored-by: Julia Bardi <julia.bardi@elastic.co>
2021-12-08 10:51:49 -07:00
Kibana Machine
63777ab69d
[Metrics UI] Add migration to fix incorrect action group spelling (#119626) (#120466)
* Add a migration function for incorrectly spelt action group

Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
2021-12-08 06:59:09 -07:00
Tiago Costa
39b77c36d5
skip flaky suite (#113993) 2021-12-08 13:57:42 +00:00
Sébastien Loix
485aad9d2f
[Mappings editor] Add support for the _size parameter (#119365) (#120739) 2021-12-08 04:42:16 -07:00
Dima Arnautov
6e7c791067
[ML] API integration tests for ML Anomaly detection alerting rule (#118726) (#120728)
* WIP AD alerts tests

* update assertion

* delete jobs in afterEach

* add sleep and increase topN buckets

* remove console.log

* update CODEOWNERS
# Conflicts:
#	.github/CODEOWNERS
2021-12-08 03:51:26 -07:00
Melissa Alvarez
74200e2ed2
[ML] Data frame analytics wizard: Only allow data view creation if job will be started (#120042) (#120716)
* Only allow data view creation if job will be started

* update tests

* no stat fetching when job not started

* ensure result index exists before dataview creation attempt

* update error message and increase retry delay

* use getIdsWithTitle to avoid fieldsWithWildcard call

* move dataview validation to create step

* use exists api in ml index_exists endpoint

* refactor retry function

* fix duplicate i18n ids

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-08 00:53:13 -07:00
Davis Plumlee
32ff2d11e9
[8.0] [Security Solution] Switches remaining rule types to use new Rule Preview API (#116374) (#120700)
* [Security Solution] Switches remaining rule types to use new Rule Preview API (#116374)

# Conflicts:
#	x-pack/plugins/security_solution/server/lib/detection_engine/routes/rules/preview_rules_route.ts

* fix conflicts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 23:05:56 -07:00
Kibana Machine
e62439dbfc
[Synthetics Integration] add enabled toggle (#119994) (#120539)
* add enabled toggle

* adjust types

* adjust types

* add wrapper for simple fields

* adjust icmp simple fields

* Update x-pack/plugins/uptime/public/components/fleet_package/custom_fields.test.tsx

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

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-12-07 21:38:04 -07:00
Tiago Costa
51f01483c0
chore(NA): splits types from code on @kbn/dev-utils (#120531) (#120676)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	packages/kbn-es-archiver/src/actions/rebuild_all.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 16:34:41 -07:00
Kibana Machine
a56ee61103
Enterprise Search Stack Monitoring (#114303) (#120630)
* Added enterprise search panel, corrected queries

* Update the index pattern for Enterprise Search

* Typescript error ignore

* Our timestamp fields are called @timestamp (per ECS)

* Adjust Enterprise Search index patterns with the rest of monitoring plugin patterns (including CCS, etc)

* Initial implementation of the Enterprise Search overview panel (health only)

* Add a basic stub for enterprise search response fields

* Cleanup aggs configs

* Bring back a file deleted by mistake

* Started working on the overview page

* Correctly use heap_max as the total heap

* Ent search breadcrumbs

* Simple overview

* Allow the cluster_uuid filter to be skipped while fetching metrics

* Cleanup

* Switch to module-level uuid field and use both types of events

* Add stats-based product usage metrics + apply filter paths to reduce traffic

* Change the name of the ent search overview class

* Move the standalone cluster hack in the the internal function

* Change the overview page to show product usage metrics + introduce enterprise search stats in addition to metrics (they are fetched differently and allow us to reuse the stats code we have for the main page panel)

* Cluster UUID is at the module level now

* Simplify ent search pages structure, only have one overview page

* Fix ent search icon

* Add total instances

* Product usage metric graphs

* Simplify metrics loading in the overview page since we load all metrics anyways

* Add more enterprise search overview metrics

* Avoid duplicate labels

* linting

* Revert "Simplify metrics loading in the overview page since we load all metrics anyways"

This reverts commit 4bd67ab88a.

* Switch to multiple timeseries per graph

* Reorder graphs and metrics for better experience

* Typescript fixes

* i18n fixes

* Added a couple more JVM metrics

* Completely covered JVM metrics

* Convert Enterprise Search component to Typescript

* Switch config setting back

* Remove the nodes link since it raises more questions than it solves

* Update jest snapshots with the new metrics

* Remove console statement

* Properly handle cases when aggregations return no data for Enterprise Search

* Add a functional test for the Enterprise search cluster list panel

* Add a functional test for Enterprise Search overview page

* Update multicluster API response fixture with the new enterprise search response key

* Default uptime value is 0

* update overview fixture

* More fixture updates

* Remove fixmes

* Fix imports

* Properly export type

* Maybe fix the type checking error

* PR Feedback

* TS fixes

Co-authored-by: cdelgado <carlos.delgado@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jason Stoltzfus <jason.stoltzfus@elastic.co>

Co-authored-by: Oleksiy Kovyrin <oleksiy@kovyrin.net>
Co-authored-by: cdelgado <carlos.delgado@elastic.co>
Co-authored-by: Jason Stoltzfus <jason.stoltzfus@elastic.co>
2021-12-07 09:33:11 -07:00
Kibana Machine
2aaca4681c
FTR should use the new kibana_system user (#120436) (#120626)
* FTR should use the new kibana_system user

* Fix security api integration tests

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

Co-authored-by: Rudolf Meijering <rudolf.meijering@elastic.co>
2021-12-07 08:59:27 -07:00
Kibana Machine
9b212241e9
[APM] Offer users upgrade to multi-metric job (#119980) (#120605)
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-12-07 07:44:56 -07:00
Khristinin Nikita
4b1ae0e99a
Add support for threat.feed.name (#120250) (#120584)
* Add support for threat.feed.name

* fix cy tests

* Remove provider field

* fix tests

* Provider to feed.name

* Fix tests

* Fix tests

* fix comments

* Fix i18n

* fix type

* Fix types

* fix tests

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-07 04:34:16 -07:00
Kibana Machine
e71d6dcc84
[CTI] Threat Intel Card on Overview page needs to accommodate Fleet TI integrations - (#120459) (#120578)
* Add support integrations

* Fix types

* fix unit tests

* Fix tests and types

* fix eslint

* fix file case

* add cy tests

* Revert test

* Add tests

* Add support of installed integrations

* Fix types

* Add isntalled ingtegration case for cypress tests

* Fix cypress tests

* Fix comments

* Fix capital naming

* Fix again capital naming

* Add dynamic dashboard for a new integrations packages

* intermidiate changes, to keep it remote

* Big refactoring

* Tests and refactoring

* Remove unused constanrs

* Fix e2e tests

* PR comments fix

* fix ts

* Fix translations

* Remove stubs

* Rename isSomeIntegrationsDisabled -> allIntegrationsInstalled

* Add buildQuery tests

* Fix type

* Add tests for Enable Source button

* Remove copied file

* Move api call to api.ts

* Rename fetchFleetIntegrations

* Remove __mocks__

* Fix path

Co-authored-by: Khristinin Nikita <nikita.khristinin@elastic.co>
2021-12-07 03:30:36 -07:00
Kibana Machine
785faa4b04
[RAC] Rename occurrences of alert_type to rule_type in Infra (#120455) (#120573)
[RAC] Rename occurrences of alert_type to rule_type in Infra

Co-authored-by: Ersin Erdal <92688503+ersin-erdal@users.noreply.github.com>
2021-12-07 01:33:42 -07:00
Frank Hassanabad
a398d467b8
[8.0] [Security Solutions] Removes tech debt of exporting all from linter rule for cases plugin in the common section (#120559)
* [Security Solutions] Removes tech debt of exporting all from linter rule for cases plugin in the common section (#120310)

See: https://github.com/elastic/kibana/issues/110903, https://github.com/elastic/kibana/issues/120234

This removes as many top level API `export *` spots from:
* `cases` plugin within the common section

as we can. This reduces the number of metrics and warning about undocumented functions and reduces the page load size from `cases/common/index.ts`. Look at the metrics from the build below and you will see drop off numbers across the board for required API documentation to the page load size.

In the file `cases/common/index.ts` I now put the advice of:

```
// Careful of exporting anything from this file as any file(s) you export here will cause your page bundle size to increase.
// If you're using functions/types/etc... internally or within integration tests it's best to import directly from their paths
// than expose the functions/types/etc... here. You should _only_ expose functions/types/etc... that need to be shared with other plugins here.

// When you do have to add things here you might want to consider creating a package such as kbn-cases-constants to share with
// other plugins instead as packages are easier to break down and you do not have to carry the cost of extra plugin weight on
// first download since the other plugins/areas of your code can directly pull from the package in their async imports.
// For example, constants below could eventually be in a "kbn-cases-constants" instead.
// See: https://docs.elastic.dev/kibana-dev-docs/key-concepts/platform-intro#public-plugin-api
```

Some of those that are exposed such as `throwErrors` might actually be small simple mistakes as `security_solution` is using it but it has a "copy" of the same utility within just its server section rather than within its common section. That can be done in a different cleanup PR and cases team can decide what to do moving forward with their API before or post 8.0.0 release.

For the metric increasing of:
| id | [before](f01106c100) | [after](f2e5d6a848) | diff |
| --- | --- | --- | --- |
| `cases` | 16 | 22 | +6 |

Running that suggestion:

```sh
node --max-old-space-size=6096 scripts/build_api_docs --plugin cases --stats exports
```

I see this:
<img width="1851" alt="Screen Shot 2021-12-03 at 9 30 45 AM" src="https://user-images.githubusercontent.com/1151048/144638952-43d50478-ea12-4ce1-8f73-585c735772b4.png">

I don't know if there is a way just yet to mark undocumented public API's but I don't feel concerned with it at the moment and if the case team wants to re-expose those or are going to support API's through documentation they can decide what to do. This PR is more about just removing as much as possible to start with and then go the other direction where the individual teams can decide what to expose and if the download weight is worth it or if it's just `export type` and holds no weight, etc...

* Updated staged files

* Fixed prettier issues
2021-12-06 18:54:44 -07:00
Kibana Machine
99f26c912e
[Rule Registry] Rewrite APM registry rules for Observability (#117740) (#120557)
* [Actionable Observability] Rewrite APM registry rules for Observability

* removing apm's rule registry test

* Moving everything under observability_api_integration

* removing old observability directory under api_integrations since it's not being used

* removing observability from api_integration tests

* renaming file

* moving test to x-pack/test/rule_registry

* Adding error handing to cleanupTargetIndices

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

Co-authored-by: Chris Cowan <chris@elastic.co>
2021-12-06 17:20:40 -07:00
Kibana Machine
6c3dcb6795
[Security Solution] Remove redundant API call (#120217) (#120534)
## Summary

**Addresses: https://github.com/elastic/kibana/issues/120229**

- Adjusted `rues/_find` API also to return execution metrics. It was returning only execution status information before.
- Removed `rues/_find_statuses` API as it is not used anymore.
- To display the rules management table, now we need to make only one API call. That greatly improves the rule management table performance, making user interactions like changing pages, sorting, filtering, etc., much smoother.

### Performance improvements

| 20 rules per page | Before | After |
|------------------|--------|-------|
| Response time    | 200-250 ms | 60-70 ms|
| ES requests count | 23 | 2 |

| 100 rules per page  | Before | After |
|------------------|--------|-------|
| Response time    | 800-1200ms | 80-90ms |
| ES requests count | 103 | 2 |

Co-authored-by: Dmitry Shevchenko <dmitrii.shevchenko@elastic.co>
2021-12-06 15:04:50 -07:00
Joey F. Poon
4ced3fab3c
[Security Solution] endpoint metadata transform stats API (#120429) (#120537)
# Conflicts:
#	x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/store/middleware.ts
2021-12-06 14:05:46 -07:00
Kibana Machine
bd90843b9e
[ML] Fixes data grid column actions button when histogram charts are visible (#120202) (#120519)
* [ML] Fixes data grid column actions button when histogram charts are visible

* [ML] Adjust histogram color tolerance values

* [ML] Remove test tag

* [ML] Stabilize canvas element test by rounding color values

* [ML] Adjust color tolerance values

* [ML] Further color tolerance adjustments

* [ML] Adjust more color tolerance expected values

* [ML] More color stat adjustments

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

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-12-06 10:57:04 -07:00
Kibana Machine
03a203dfb7
[Uptime] Add throttling parameters to the Fleet UI (#118594) (#120502)
* [Uptime] add throttling parameters to the browser synthetic monitor form

This commit adds three fields to the browser synthetic monitor creation
form, these fields are: `download_speed`, `upload_speed`, and `latency`.

Each of these fields is used to test how applications behave under
particular network conditions.

This commit closes #114155.

* [Uptime] add functional tests for synthetic monitors throttling fields

* [Uptime] add toggling for throttling fields

* [Uptime] add normalizer for editing browser throttling fields

Co-authored-by: Lucas F. da Costa <lucas@lucasfcosta.com>
2021-12-06 09:29:15 -07:00
Joe Reuter
0ad93a7b49
fix order of Lens tests (#120460) (#120492)
# Conflicts:
#	x-pack/test/functional/apps/lens/index.ts
2021-12-06 08:31:38 -07:00
Kibana Machine
626af079ba
[Fleet] Handle Saved Object ID changes (#108959) (#119527) (#120481)
* Do not add fields to index patterns

* remove redundant tests

* install index patterns before package install

* update remove comment

* use import to create package assets

Here I have also moved to importing all assets at once. This is essential when importing to ensure that all saved objects references are imported at once. There is also an efficiencey improvement.

* Import index patterns

* use resolve when deleting index patterns

* fix: asset type validation

* add option to override supported import types

* make ml-module importable

* Revert "add option to override supported import types"

This reverts commit 1f48e6ee193fea5e5cb0f37c70cbfa7ae47eeab5.

* remove hidden: false from ml-module

* use resolve when deleting assets

* make security-rule SO type importable

* use bulkResolve to get package assets

* fix tests

* fix 'multiple' tests

* remove unused function

* create index patterns at the same time as other assets

* remove unused test

* Fix integration tests
We were checking for an error before the import was complete.

* tidy for PR

* add missing test assets

* do not attempt to delete missing assets

* resolve any reference errors that occur on import

* await installKibanaAssets immediately

* show assets not found when assets installed in a different space

* fix delete asset check on force upgrade

* add comment about reference errors

* remove a couple of appContextService dependencies

Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-12-06 07:53:13 -07:00
Tiago Costa
df60601d50
skip flaky suite (#109260) 2021-12-06 13:49:01 +00:00
Tiago Costa
dffb7e1375
skip flaky suite (#116882) 2021-12-06 13:42:14 +00:00
Tiago Costa
e3c514993c
skip flaky suite (#99879) 2021-12-06 13:35:37 +00:00
Tiago Costa
d1b0cacbe6
skip flaky suite (#120433) 2021-12-06 13:20:55 +00:00
Shahzad
fbebe24060
[Uptimes] Push configs to service (#120069) (#120458)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-06 04:23:58 -07:00
Kibana Machine
3972763603
Update read_privileges_route to look at alerts-as-data indices (#120052) (#120424)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2021-12-03 17:01:25 -07:00
Tim Sullivan
56d52f71aa
[Discover] Fix csv report for filtered discover result on dashboard (#119583) (#120418)
* [Discover] fix csv report for filtered discover result on dashboard

* [Discover] fix tests

* [Discover] add functional test

* [Discover] fix the case when timeFilter was not applied, but others filters were applied for non time based data views

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/discover/public/application/apps/main/utils/get_sharing_data.ts

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-12-03 16:08:01 -07:00
Kibana Machine
36d2ab49f7
More descriptive audit integration test errors (#120354) (#120408)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-12-03 14:16:20 -07:00
Joe Portner
f974ecc001
[8.0] Prevent endless loop for saved object migrations (#120146) (#120350)
* Prevent endless loop for saved object migrations (#120146)

* Fix invalid saved objects

* Fix more invalid saved objects
2021-12-03 12:14:23 -07:00
Kibana Machine
a7b09bd991
[Fleet] Wire Fleet setup status to core Kibana status API (#120020) (#120381)
* Wire Fleet setup status to core Kibana status API

* Remove fake error from testing 🙃

* Apply suggestion for PR review

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* Add error message to meta upon Fleet setup failure

* Mark fleet as available if setup fails - for now

* Fix failing API key tests

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

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-12-03 11:19:34 -07:00
Jen Huang
d40fb7621e
[8.0][Fleet] Renable skipped test for limited packages (#120294)
* Renable skipped test for limited packages

* Try with newer endpoint package version. Test pass locally...
2021-12-03 08:27:48 -08:00
Cauê Marcondes
ed336b676f
[APM] Service maps: Add sparklines to the detail popover (#120021) (#120298)
* adding error rate and latency timeseries

* adding sparklines

* fixing ui

* fixing spaces

* adjusting error color

* fixing api tests

* deleting unnecessary test

* changing loading spinner

* addressing pr comments

* fixing ci
2021-12-02 15:46:22 -07:00
Frank Hassanabad
3a289aa77e
[Security Solutions] Removes tech debt of exporting all from linter rule for security_solution plugin (#120188) (#120270)
## Summary

See: https://github.com/elastic/kibana/issues/110903

This removes the top level API `export *` spots from:
* `security_solution` plugin

by removing _all_ the exports from `security_solution/common/index.ts` since non of those were shared outside this plugin. Look at the metrics from the build below and you will see _huge_ drops off numbers across the board for required API documentation to the page load size.

In the file `security_solution/common/index.ts` I now put the advice of:

 ```
// Careful of exporting anything from this file as any file(s) you export here will cause your page bundle size to increase.
// If you're using functions/types/etc... internally it's best to import directly from their paths than expose the functions/types/etc... here.
// You should _only_ expose functions/types/etc... that need to be shared with other plugins here.
```

But really I doubt we will have to share anything from `security_solutions` plugin to another plugin or expose it for anyone else. So I think this is 👍 the way forward to not expose anything directly from `security_solution/common/index.ts` anymore.
2021-12-02 13:48:13 -07:00
Jen Huang
1ab415e52b
[8.0][Fleet] Re-enable registry version check (#120049)
* Re-enable registry version check

* Update registry image

* Use dockerized registry for base x-pack api integration and functional tests

* Revert "Use dockerized registry for base x-pack api integration and functional tests"

This reverts commit 2fd4ec17d4.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-02 08:01:59 -08:00
Ersin Erdal
e829d98930
[RAC] fix failing alerts table pagination functional tests (#119985) (#120220)
* [RAC] fix failing alerts table pagination functional tests
2021-12-02 08:33:00 -07:00
Faisal Kanout
f2e3762e91
[8.0][RAC] 19482 t grid fix always show checkboxes (#119608) (#120207)
* Add showCheckboxes prop

* Hide leading checkboxes from Alerts page and updates the tests.

* Skip tests

* Skip test

* Testing FLAKY tls alert

* Remove exclusive test

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-02 06:53:31 -07:00
Faisal Kanout
7b9763f6f4
[8.0][RAC] 117686 replace alert workflow status in alerts view (#118723) (#120198)
* Add AlertStatus types

* Add alert status filter component

* Remove Filter in action from the t grid table

* Update group buttons to applied Alert status filter instead of Workflow status

* Keep the Alert status button in sync when typing and first page load

* Fix data test object name and translation keys label

* Add possibility to hide the bulk actions

* Update how hide the bulk actions

* Fix showCheckboxes hardcoded "true". Instead use the leadingControlColumns props

* Hide the leading checkboxes  in the T Grid with the bulk actions

* Update showCheckboxes to false

* Fix test as the leading checkboxes are hidden

* Update tests

* Get back disabledCellActions as it's required by T Grid

* Update tests to skip test related to Workflow action buttons

* Skip workflow tests

* Revert fix showCheckboxes

* Remove unused imports

* Revert the o11y tests as the checkBoxes fix is reverted

* Reactive the tests effected by checkBoxes

* Skip alert workflow status

* [Code review] use predefined types

* Remove unused prop

* Use the alert-data index name in the RegEx

* Detect * in KQL as "show al"l alert filter

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-02 04:15:58 -07:00
Dario Gieselaar
563d7935d0
[8.0] [APM] Display relevant anomalies (#119709) (#120112)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-12-02 08:32:40 +01:00
Kibana Machine
5d0dd050e8
[Security Solution] remove POST metadata list API (#119401) (#120183)
Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2021-12-01 16:59:39 -07:00
Kibana Machine
4529047901
[Alerts] Uses aggregations in RulesClient.aggregate() method (#119852) (#120166)
* Replaces multiple find requests with aggregations

* Updates unit tests

* Removes commented out code

* Removes unused import

* Adds muted and enabled aggregations

* Updates tests

* Updates snapshot

* Fixes functional test

* Fixes functional test

* Review feedback, fixes API tests

* Logs audit event and updates tests

Co-authored-by: Claudio Procida <claudio.procida@elastic.co>
2021-12-01 14:48:59 -07:00
Kibana Machine
32cd3f4c20
[Fleet] Fix typo in Fleet fixtures (#120098) (#120141)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-12-01 12:03:49 -07:00