Commit graph

42860 commits

Author SHA1 Message Date
Kibana Machine f70385fcee
[Exploratory View] Multi Series View (#103855) (#106498)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2021-07-22 06:30:38 -04:00
Andrea Del Rio 5d718448b6
[Discover] Improve empty state page (#103602) (#106489)
Co-authored-by: Tim Roes <tim.roes@elastic.co>

Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-07-21 22:16:08 -04:00
Ece Özalp 7b0218c2c4
[7.x] [CTI] Adds integration test coverage to CTI Overview (#104785) (#106183)
* [CTI] Adds integration test coverage to CTI Overview (#104785)

* [CTI] Adds integration test coverage to CTI Overview

* remove unnecessary line

* increases coverage

* updates tests"

* removes comments & unusued files

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security_solution/public/overview/components/overview_cti_links/cti_disabled_module.tsx
#	x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx

* fix linting error

* [CTI] fix doclink in integration test (#106416)

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 20:19:46 -04:00
gchaps 9070e9ed8b
Updates painless doc to use runtime fields (#106462) (#106479) 2021-07-21 16:02:55 -07:00
Kibana Machine fbc4c87351
[Security Solution][Detection Rules] Fixes import rules modal text (#106188) (#106474)
Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2021-07-21 18:47:16 -04:00
Ignacio Rivas a867d44a5b
[Ingest pipelines] add community id processor (#103863) (#106376)
* wip: community_id processor

* fix up validation conditions for fields

* add tests

* Fix layout and tests

* Fix copy and validations

* Remove unused prop

* fix test matchers

* lowercase copy

* Convert hardcoded values to variables

* Remove extra dollar sign

* fix copy variable

* Update x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/shared/map_processor_type_to_form.tsx

Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>

* Update x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/shared/map_processor_type_to_form.tsx

Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>

* Update x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/shared/map_processor_type_to_form.tsx

Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>

* Update x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/community_id.tsx

Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>

* Update x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/community_id.tsx

Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>

* No need to whitelist known fields

* CR changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
2021-07-21 18:42:49 -04:00
Tiago Costa a91dc36b26
chore(NA): improves @kbn/ui-shared-deps build performance (#105971) (#106472)
* chore(NA): move packages assets optimization into the distributable build

* chore(NA): include terser task on distributable build

* chore(NA): migrate everything into the build tasks

* chore(NA): update webpack config to include react profiler

* chore(NA): optional fsevents

* chore(NA): redo optional fsevents

* chore(NA): remove noparse for fsevents

* chore(NA): include missing task declaration

* chore(NA): include sourcemaps

* chore(NA): include metrics bundle file generation during distributable build

* chore(NA): correctly setup paths

* chore(NA): change sourcemap types

* chore(NA): remove useless sourcemaps

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh
2021-07-21 18:42:06 -04:00
Kibana Machine ac1d7655b7
[Fleet] More accurate types for setup. nonFatalErrors is always present (#106004) (#106471)
* Make types for setup more accurate. nonFatalErrors is always present

* Rename PostIngestSetupResponse to PostFleetSetupResponse

* Missed a rename to PostFleetSetupResponse

* Define schema for setup responses & share

* Add response schema for GET /agents/setup

* Response is array of enum; not enum

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

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-07-21 18:32:21 -04:00
Kibana Machine 5f837a5745
Fixed usage data collection for import and copy (#106305) (#106456)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-07-21 17:12:37 -04:00
Devon Thomson 92e52d0e7f
[Dashboard] Index Pattern Observable Error Handling (#106155) (#106443)
* add error handling to dashboard index pattern observable to prevent issues when embeddables do not load
2021-07-21 16:07:24 -04:00
Chris Roberson 489666f891
[Alerting] Allow rule to execute if the value is 0 and that mets the condition (#105626) (#106441)
* Allow rule to execute if the value is 0 and that mets the condition

* PR feedback

* Fix type issue

* PR feedback

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 16:01:51 -04:00
Kibana Machine 5d3b1132c7
🐛 Improve network error message (#106246) (#106437)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-07-21 15:33:33 -04:00
Kibana Machine 9e14cb8958
[Docs] Clarify that explore underlying data is not enabled (#105693) (#106459)
* [Docs] Clarify that explore underlying data is not enabled

* Update formatting

* Update from feedback

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-07-21 15:16:24 -04:00
gchaps 99ef391d01
[DOCS] Graph: updates text and screenshots (#106190) (#106450)
* [DOCS] Graph: updates text and screenshots

* [DOCS] Created customize section

* [DOCS] Combines graph troubleshooting and limitations

* [DOCS] Fixes error in redirects

* [DOCS] Reduces size of read-only image
2021-07-21 14:32:37 -04:00
Kibana Machine 808945447b
[data.search.autocomplete] Remove usage of ES client transport.request (#106288) (#106431)
* Use es client method rather than transport.request

* Fix test

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-07-21 14:25:26 -04:00
Kibana Machine 33d1cc50ef
fix: incorrect useBreadcrumbs for integrations (#106409) (#106430)
Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-07-21 14:22:46 -04:00
Kibana Machine 242d3504e3
[data.search.session] Include version in search session for restore warnings (#105528) (#106427)
* [data.search.session] Include version in search session saved object for warnings

* Don't show version message if not restorable

* Fix build

* fix ts, fix jest, add migration

* tests ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-21 14:20:12 -04:00
gchaps 4ddbd8ed77
[DOCS] Adds missions to landing page (#104572) (#106447)
* [DOCS] Adds missions to landing page

* [DOCS] Adds links to release docs and improves missions

* [DOCS] Uses bold for top links

* [DOCS] Minor changes in ordering of items

* [DOCS] Updates links in landing page

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 14:03:01 -04:00
gchaps 43a16b027c
[DOCS] Intro doc--updates screenshots (#106185) (#106444)
* [DOCS] Intro doc--updates screenshots

* [DOCS] Adds link to Discover in sharing section
2021-07-21 13:59:38 -04:00
Kibana Machine 2c4aaf67b6
[Es query] Move to package (#103530) (#106417)
May the forces of bootstrapping helps us 🙏🏻 😉

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-07-21 13:32:55 -04:00
Yaroslav Kuznietsov 8039d6fe7f
[Canvas] Expression shape (#103219) (#106414)
* expression_reveal_image skeleton.

* expression_functions added.

* expression_renderers added.

* Backup of daily work.

* Fixed errors.

* Added legacy support. Added button for legacy.

* Added storybook.

* Removed revealImage from canvas.

* Types fixed.

* Fixed test suite error.

* Fixed eslint error.

* Moved UI and elements, related to expressionRevealImage from canvas.

* Fixed unused translations errors.

* Moved type of element to types.

* Fixed types and added service for representing elements, ui and supported renderers to canvas.

* Added expression registration to canvas.

* Fixed

* Fixed mutiple call of the function.

* Removed support of a legacy lib for revealImage chart.

* Removed legacy presentation_utils plugin import.

* Removed useless translations and tried to fix error.

* One more fix.

* Small imports fix.

* Fixed translations.

* Made fixes based on nits.

* Removed useless params.

* fix.

* Fixed errors, related to jest and __mocks__.

* Removed useless type definition.

* Replaced RendererHandlers with IInterpreterRendererHandlers.

* fixed supported_shareable.

* Moved elements back to canvas.

* Moved views to canvas, removed expression service and imported renderer to canvas.

* Fixed translations.

* Moved libs to presentation utils.

* Fixed types and removed function_wrapper.ts

* Fixed types of test helpers.

* Fixed imports.

* One more fix.

* Fixed public API.

* Moved css to component.

* Fixed spaces at element.

* Removed unused plugin.

* Basic setup of error plugin.

* Removed not used `function` files at `error` expression.

* Moved related components from canvas.

* Changed imports of components.

* Removed useless translations and fixed .i18nrc.json

* More fixes of i18nrc.

* Fixed async functions.

Written current code, based on https://github.com/storybookjs/storybook/issues/7745

* Fixed one test with Expression input.

After changing the way of rendering in stories, all elements are mounting and componentDidMount is involved. The previous snapshot was without
mounted `monaco` editor.

* generated plugin and copied code from expression_reveal_image

* fixed double import after merge.

* Changed all names from reveal_image to shape.

* moved shape to plugin and added all necessary configs

* Fixed translations, fixed all imports and debug of svg.

* `function` moved to `server`.

* One shape is rewritten to `React` and rendering is written with passing necessary props.

* changed default width and heigth.

* Added `ShapeHOC`.

* Shapes changed.

* small refactor.

* Removed useless import.

* one more refactor.

* Refactor + fix errors + updated limits.

* Changed ShapePreview from pure js to react and removed `dangerouslySetInnerHTML`

* Fixed types of viewbox.

* Changed types source for Shape components.

* small refactor.

* Fixed imports.

* Removed `shape` from `canvas`

* Updated docs.

* Basic setup of error plugin.

* Removed not used `function` files at `error` expression.

* Changed imports of components.

* Fixed errors, related to shape and autosuggestions.

* Fixed i18n for shape.

* Moved function from public to common and registered at server.

* Fixed types error.

* Fixed snapshots and shape mocks.

* Moved some libs from `presentations_util` to `expression_shape`

* Shape refactored.

* Shape picker fixed.

* Moved `Popover` back to `canvas`

* Removed `Popover` export from presentation_utils components.

* Moved error_component and debug_component from presentation_util to expression_error.

* Removed `.i18nrc.json`.

* Removed `.i18nrc.json`.

* Removed useless scss.

* Fixed color of `error`.

* added fixes of rebase.

* More fixes of rebase error .

* Removed useless .i18nrc.json file.

* More fixes.

* More fixes of rebase.

* One more fix.

* More fixes.

* Fixed limits and translations.

* Added.

* Fixed i18nrc.

* Fixed error..

* Moved shapes to async chunks.

* One more fix.

* Some fixes.

* Trying to fix the typecheck error.

* Added temp of drawer.

* Moved shapes to the async chunk in a less complex way.

* Made `ShapeDrawer` reusable among different `expressions`.

* Changed type of `shapes` from `any` and `Shape` to `string`.

* Made changes, based on nits.

* Removed not necessary changes.

* Moved all reusable libs to `expression_shapes`.

* Reduced the size of the bundle.

* Hope, fixed type check errors.

* Removed getDefaultShapeData.

* Removed `getViewBox` from bundle.
# Conflicts:
#	packages/kbn-optimizer/limits.yml
2021-07-21 13:07:36 -04:00
Kibana Machine c37c573031
[Sample data] Use Lens in ecommerce data (#106039) (#106413)
* [Sample data] Use Lens in ecommerce data

* Fix tests

* Update from comments

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-07-21 12:48:36 -04:00
Kibana Machine 0451402be4
[APM] Backends inventory & overview page routes (#106223) (#106407)
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-07-21 11:52:31 -04:00
Diana Derevyankina 09c2bfcfaf
[TSVB] Add more functional tests for Gauge and TopN (#105361) (#106403)
* [TSVB] Add more functional tests for Gauge and TopN

* Update visual_builder_page.ts

* Update functions related to gauge color and filter ratio numerator in visual_builder_page

* Update visual_builder_page and add some more test subjects

* Update _tsvb_chart.ts

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 11:15:07 -04:00
Yulia Čech fd3fe8cc1c
Fixing the merge conflict change (#106402) 2021-07-21 11:05:23 -04:00
Kibana Machine 5f08a4478a
Add toggle to enable/disable rule install from SOs (#106189) (#106397)
* Add toggle to enable/disable rule install from SOs
* Fix lint and type tests
* Fix types for tests
* Enable prebuiltRulesFromSavedObjects with extra rules in fleet
* Restore rules and disable prebuiltRulesFromSavedObjects
* Pass explicit arguments instead of full config
* Set values in 'endpoint' setup
* Propagate prebuiltRulesFrom{FileSystem,SavedObjects} from configs

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
2021-07-21 10:25:57 -04:00
Kibana Machine 411510a948
Remove recursive plugin status in meta field (#106286) (#106391)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-21 09:56:45 -04:00
Stratoula Kalafateli 5270b83153
[XY axis] Fixes the values inside bar charts (#106198) (#106370)
* [XY axis] Fixes the values inside bar charts

* Apply PR comments
2021-07-21 07:52:09 -04:00
Kibana Machine f4276af2a9
[data.search] Set default expiration to 1m if search sessions are disabled (#105329) (#106367)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Liza K <liza.katz@elastic.co>

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Liza K <liza.katz@elastic.co>
2021-07-21 07:26:05 -04:00
Jean-Louis Leysens 5b36316ae3
set the doc title when navigating to reporting and unset when navigating away (#106253) (#106354) 2021-07-21 05:36:22 -04:00
Stratoula Kalafateli 9f1d07024d
[Lens] Display legend inside chart (#105571) (#106351)
* [Lens] Legend inside chart

* Apply design feedback

* Add unit tests

* Update snapshot

* Add disabled state and unit tests

* revert css change

* Address PR comments

* Reduce the max columns to 5

* Address last comments

* minor

* Add a comment

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-21 04:38:17 -04:00
Kibana Machine 1a27afb621
[RAC] [TGrid] Migrate the TGrid's rendering to EuiDataGrid (#106199) (#106348)
## [RAC] [TGrid] Migrate the TGrid's rendering to `EuiDataGrid`

This PR migrates TGrid's rendering to use `EuiDataGrid`, per the screenshots below:

![o11y_alerts](https://user-images.githubusercontent.com/4459398/126413504-e825a5a2-1cb5-475e-b514-01fb819793e1.png)

![security_solution_alerts](https://user-images.githubusercontent.com/4459398/126413546-28df8f28-fa81-4b97-91c6-667589ea683c.png)

Related RAC Issue: https://github.com/elastic/security-team/issues/1299

### Prerequisites to deleting legacy code (reducing bundle sizes)

To reduce the size of the `timelines` and `security_solution` plugins, legacy TGrid code and the dependency on `react-beautiful-dnd` will be removed in a follow-up PR.

- Related issue: https://github.com/elastic/kibana/issues/105941

The legacy code and dependencies will be deleted when the following tasks are completed (in follow-up PRs):

- Sorting: Map `redux` sort state to `EuiDataGrid`'s `sorting` prop
- Actions: Migrate draggable hover actions to `EuiDataGrid` `cellActions`
  - related PR: <https://github.com/elastic/kibana/pull/105500>
- Use `BrowserFields` to display field metadata when hovering over a column
  - related PR: <https://github.com/elastic/kibana/pull/105207>
- Migrate Security Solution's actions column config from a single column to multiple columns

### Desk testing

To desk test this PR, you must enable feature flags in the Observability and Security Solution:

- To desk test the `Observability > Alerts` page, add the following settings to `config/kibana.dev.yml`:

```
xpack.observability.unsafe.cases.enabled: true
xpack.observability.unsafe.alertingExperience.enabled: true
xpack.ruleRegistry.write.enabled: true
```

- To desk test the TGrid in the following Security Solution, edit `x-pack/plugins/security_solution/common/experimental_features.ts` and in the `allowedExperimentalValues` section set:

```typescript
tGridEnabled: true,
```

Co-authored-by: Andrew Goldstein <andrew-goldstein@users.noreply.github.com>
2021-07-21 02:12:46 -04:00
Kibana Machine 5f97b42c81
[Security Solutions] Removes the elastic legacy client from lists and security_solution plugins (#106130) (#106342)
## Summary

Addressees https://github.com/elastic/kibana/issues/83910 by removing the elastic legacy client from:
* `lists` plugin
* `security_solution` plugin
* `kbn-securitysolution-es-utils` package

Removes found dead code in `security_solution` plugin:
* `server/lib/configuration/inmemory_configuration_adapter.ts`
* `server/lib/detection_engine/privileges/read_privileges.ts`
* `server/lib/configuration/index.ts`
* `server/lib/configuration/adapter_types.ts`
* `server/lib/compose/kibana.ts`
* `server/lib/ecs_fields/extend_map.test.ts`
* `server/lib/ecs_fields/extend_map.ts`
* `server/lib/index_fields/elasticsearch_adapter.ts`
* `server/lib/index_fields/index.ts`
* `server/lib/index_fields/mock.ts`
* `server/lib/index_fields/types.ts`
* `server/lib/source_status/elasticsearch_adapter.ts`
* `server/lib/source_status/index.ts`
* `server/lib/source_status/query.dsl.ts`
* `server/lib/source_status/types.ts`
* `server/lib/sources/configuration.test.ts`
* `server/lib/sources/configuration.ts`
* `server/lib/sources/index.ts`
* `server/lib/sources/types.ts`

Removes dead code in `lists` plugin:
* `server/schemas/common/get_call_cluster.mock.ts`
* `server/lib/ecs_fields/index.ts`
* `server/lib/framework/kibana_framework_adapter.ts`

Removes dead types from `security_solution` plugin:
* `server/lib/framework/types.ts`
* `server/lib/types.ts`

Removes dead functions from `security_solution` plugin:
* `server/utils/build_query/calculate_timeseries_interval.ts`
* `server/utils/runtime_types.ts`

### What to check as a reviewer
* Ensure that there is no left over words of `legacy` such as `legacy.something`
* Ensure there are no more `callAsCurrentUser` since that is all dead and gone
* Ensure anywhere you see `esClient.someThing` it returns the `.body` at the end or destructors it as in `{ body } = esClient.someThing`


### Risk Matrix

| Risk                      | Probability | Severity | Mitigation/Notes        |
|---------------------------|-------------|----------|-------------------------|
| Telemetry might stop working or have invalid values. | Med | High | We will have to manually test telemetry. Pinged people from telemetry for a code review |
| An REST route returns invalid values. | Med | High | e2e tests caught some of these already. The rest of the code was re-checked by hand |
| Deleted function/code might actually be still in use somewhere. | Low | High | e2e and unit tests should catch any of this. |



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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-07-20 22:33:31 -04:00
Kibana Machine 4f958a3c3b
[Alerting] Allow rule types to extract/inject saved object references on rule CRU (#101896) (#106333)
* Adding function hooks into rule type definition and call extract fn on rule create

* Adding hooks for extracting and injecting saved object references. Adding extractReferences to create and update workflow

* Adding type template for extracted params

* Adding type template for extracted params

* Adding type template for extracted params

* Adding type template for extracted params

* Calling injectReferences function if defined. Finishing unit tests for create and update

* Adding tests for get

* Adding tests for find

* Cleanup

* Fixing types check

* Fixing functional tests

* Fixing functional tests

* Fixing tests

* Updating README

* Throwing boom error instead of normal error

* Adding framework level prefix to extracted saved object reference names

* Fixing types

* Fixing types

* PR fixes

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

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-07-20 19:27:46 -04:00
Kibana Machine eba4bdc76b
Jest and Storybook fixes (#104991) (#106332)
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-07-20 19:24:14 -04:00
Kibana Machine 112f03d8e5
[kbn/dev-utils] pull in extract() helper (#106277) (#106324)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-20 18:37:56 -04:00
gchaps e46a8874aa
[DOCS] Updates text and screenshots in tags doc (#105853) (#106337)
* [DOCS] Updates text and screenshots in tags doc

* [DOCS] Minor tweaks to tags text
2021-07-20 18:14:56 -04:00
gchaps 08a9a6531b
[DOCS] Updates screenshots in Dev Tools docs (#105859) (#106335)
* [DOCS] Updates screenshots in Dev Tools docs

* [DOCS] Combines all Search Profiler content in one doc
2021-07-20 18:12:49 -04:00
Kibana Machine a4d393738c
[Uptime] handle unequal steps between check group changes for step details page in Uptime (#106289) (#106321)
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-07-20 18:07:21 -04:00
Lisa Cawley 486965ffbe
[ML] Edits rare anomaly detection job summaries (#105694) (#106317)
Co-authored-by: Pete Harverson <peteharverson@users.noreply.github.com>

Co-authored-by: Pete Harverson <peteharverson@users.noreply.github.com>
2021-07-20 17:37:24 -04:00
Ece Özalp 7470241367
[CTI] shortens large numbers on Dashboard Link Panel (#105269) (#106182)
# Conflicts:
#	x-pack/plugins/security_solution/public/overview/components/overview_cti_links/threat_intel_panel_view.tsx
2021-07-20 17:32:54 -04:00
Devon Thomson d4b7bb2d6b
[Dashboard] Allow Reporting after Discarding Unsaved Changes (#106026) (#106313)
Allowed dashboard diffing to happen in view mode to  fix dashboard unsaved changes not updating after discard changes
2021-07-20 16:52:08 -04:00
Kibana Machine a687dc74f2
[Security Solution] Ransomware supported migration expanded for upgrade corner case (#106280) (#106312)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-07-20 20:51:27 +00:00
Kibana Machine f343b458d7
bugfix: default to null when agentPolicy not loaded (#106092) (#106122)
Co-authored-by: Mark Hopkin <mark.hopkin@elastic.co>
2021-07-20 20:49:24 +00:00
Brandon Morelli 248a89dbda
[DOC] APM settings fix (#106296) (#106325)
Co-authored-by: Luca Belluccini <luca.belluccini@elastic.co>
2021-07-20 16:42:07 -04:00
Yuliia Naumenko cdebc809df
[Alerting UI]Changed rules table to support visual indication for disabled and muted alerts (#104190) (#106282)
* [Alerting UI]Changed rules table to support visual indication for disabled or muted alerts

* changed columns styles due to the mockup

* added tests

* fixed quotas

* fixed popover

* fixed due to the lates UI updates

* fixed errors

* moved enabled to a separate component

* fixed tests

* fixed due to comments

* Update x-pack/plugins/triggers_actions_ui/public/application/sections/alerts_list/components/alerts_list.scss

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

* removed test code

* fixed tests

* fixed due to comments

* fixed due to comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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-07-20 13:31:17 -07:00
Kibana Machine a52c94f2e4
[Enterprise Search] Create reusable EntSearchLogStream component (#105804) (#106303)
* Set up Kibana dependencies required by LogStream component

- notably, `infra` and `data` - @see https://github.com/elastic/kibana/blob/master/x-pack/plugins/infra/public/components/log_stream/log_stream.stories.mdx#prerequisites

- tsconfig.json note - I believe I missed kibana_react from when we previously started requiring it for KibanaPageTemplate. Because LogStream requires it for KibanaContextProvider anyway I decided to add as a reference just in case

* Set up log source configuration for ent search logs

@see https://github.com/elastic/kibana/blob/master/x-pack/plugins/infra/public/components/log_stream/log_stream.stories.mdx#with-a-source-configuration

or, monitoring plugin also has example usage

* Set up providers required by the LogStream component

@see https://github.com/elastic/kibana/blob/master/x-pack/plugins/infra/public/components/log_stream/log_stream.stories.mdx#prerequisites

Note: there's some overlap in KibanaContextProvider with KibanaLogic that may be worth investigating/DRYing out in the future

* Create reusable EntSearchLogStream component

- light wrapper over LogStream with certain prepopulated defaults

+ Update LogStreamProps from infra team to be exported publicly for reuse (eslint will error otherwise)

* Fix bad type export

- thanks @afgomez!!

* Fix failing security_only nav_links test

- which was caused by `spaces` being required by infra but optional for our plugin. I moved `spaces` to required by `enterprise_search for clarity.

- I'm still not sure I actually fixed the nav_links test correctly. I have almost no memory of adding those lines 12 months ago 🙈

* Fix spaces typing

- remove `?` notation now that it's a required and non-optional plugin
+ reorder required plugins slightly

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-07-20 16:14:47 -04:00
Kibana Machine 19a7b7fc82
[Fleet] Update list of Fleet users that issue API keys (#106036) (#106302)
Include the user that Cloud uses to run the Fleet server in the list of
trusted users. And include the elastic/fleet-server service account.

Part of the `agent.id` validation is the check that the user that issued
the API key is trusted before trusting the metadata attached to the API key.

In the long run I think it would make sense to have Fleet automatically
manage this list of trusted users based on the users being used to operate
Fleet servers.

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

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
2021-07-20 16:08:22 -04:00
Kibana Machine 2f0a3e7940
Fix up undefined handling in EP Meta telem task (#106269) (#106300)
* Fix up undefined handling in EP Meta telem task

* Check for null and undef.

* inverse the ternary op.

Co-authored-by: Pete Hampton <pjhampton@users.noreply.github.com>
2021-07-20 15:54:16 -04:00
Chris Roberson c18ac126dc
[Alerting] Change execution of alerts from async to sync (#97311) (#106298)
* added ability to run ephemeral tasks

* fixed typing

* added typing on plugin

* WIP

* Fix type issues

* Hook up the ephemeral task into the task runner for actions

* Tasks can now run independently of one another

* Use deferred language

* Refactor taskParams slightly

* Use Promise.all

* Remove deferred logic

* Add config options to limit the amount of tasks executing at once

* Add ephemeral task monitoring

* WIP

* Add single test so far

* Ensure we log after actions have executed

* Remove confusing * 1

* Add logic to ensure we fallback to default enqueueing if the total actions is above the config

* Add additional test

* Fix tests a bit, ensure we log the alerting:actions-execute right away and the tests should listen for alerts:execute

* Better tests

* If the queue is at capacity, attempt to execute the ephemeral task as a regular action

* Ensure we run ephemeral tasks before to avoid them getting stuck in the queue

* Do not handle the promise anymore

* Remove unnecessary code

* Properly handle errors from ephemeral task lifecycle

* moved acitons domain out of alerting and into actions plugin

* Remove some tests

* Fix TS and test issues

* Fix type issues

* Fix more type issues

* Fix more type issues

* Fix jest tests

* Fix more jest tests

* Off by default

* Fix jest tests

* Update config for this suite too

* Start of telemetry code

* Fix types and add missing files

* Fix telemetry schema

* Fix types

* Fix more types

* moved load event emission to pollingcycle and added health stats on Ephemeral tasks

* Add more telemetry data based on new health metrics for the ephemeral queue

* Fix tests and types

* Add separate request capacity for ephemeral queue

* Fix telemetry schema and add tests for usage collection

* track polled tasks by persistence and use in capacity estimation instead of executions

* fixed typing

* Bump default capacity

* added delay metric to ephemeral stats

* Fix bad merge

* Fix tests

* Fix tests

* Fix types

* Skip failing tests

* Exclude ephemeral stats from capacity estimation tests

* PR feedback

* More PR feedback

* PR feedback

* Fix merge conflict

* Try fixing CI

* Fix broken lock file from merge

* Match master

* Add this back

* PR feedback

* Change to queue and add test

* Disable ephemeral queue in tests

* Updated desc

* Comment out ephemeral-specific tests tha require the entire test suite to support ephemeral tasks

* Add clarifying comment

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-20 15:42:01 -04:00