Commit graph

17841 commits

Author SHA1 Message Date
renovate[bot]
41162c3940
Update dependency @elastic/elasticsearch to ^8.0.0-canary.17 (#107536)
* Update dependency @elastic/elasticsearch to ^8.0.0-canary.15

* update tests for new error message building mechanism

* fix integration tests

* fix functional test

* mute new type errors

* fix new type errors

* bump es client to canaary.16

* fix integration test

* fix type errors in infra plugin

* mute type error in ml plugin

* fix type errors in monitoring plugin

* fix and mute errors in security solution plugin

* bump version to canary.18

* remove an unnecessary change

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: restrry <restrry@gmail.com>
2021-08-17 08:44:24 -04:00
Scotty Bollinger
b1f38f459f
Add loading states to settings image buttons (#108800) 2021-08-17 08:51:13 -03:00
Scotty Bollinger
db2e8ab8e3
Set maxBytes to fix upload bug (#108792) 2021-08-17 08:48:21 -03:00
Yulia Čech
a884fab069
[ILM] Added index templates flyout to the edit policy form (#108362)
* [ILM] Added index templates flyout to the edit policy form

* Fixed i18n errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:46:33 +02:00
Scotty Bollinger
ca1546c1fa
[Workplace Search] Clear flash messages when saving Settings (#108785)
* Clear flash messages when saving Settings

Previously when making changes to the UI in Settings, the error messages would persist. This PR removes the flash messages when any API requests are made.

* Also reset when staging/removing images
2021-08-17 08:45:56 -03:00
Dario Gieselaar
0074aa439a
[APM] Apply placeholder/filter for backends kuery bar (#108689) 2021-08-17 13:42:33 +02:00
Yulia Čech
a22a079614
[ILM] Fixed policy request flyout requiring policy name to show json (#108550)
* [ILM] Fixed policy request flyout requiring policy name to show json

* [ILM] Fixed policy name in the request flyout for a new policy

* [ILM] Renamed saveAsNew to isClonedPolicy

* Fixed i18n errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:39:04 +02:00
mgiota
8724826468
[RAC][Observability] fix flyout in fullscreen mode (#108746)
* [RAC][Observability] fix flyout in fullscreen mode

* eslint fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:30:24 +02:00
Robert Oskamp
7f8a28049b
[ML] Functional tests - add UI tests for stack management jobs sync (#108402)
This PR adds functional UI tests for job synchronization via the stack management jobs UI.
2021-08-17 13:04:55 +02:00
Esteban Beltran
384700964c
[Security Solution] Show Memory protection specific fields for memory alerts (#108382)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 13:00:25 +02:00
Jean-Louis Leysens
3465cc8b69
[Reporting] Deprecate v1 report types (#108499) 2021-08-17 12:46:35 +02:00
Gabriel Landau
2c3fcdb32c
Update security telemetry sender for latest memory protection schema (#108462) 2021-08-17 11:45:21 +01:00
Ross Wolf
0eae57bab4
Collect Events.* fields for telemetry (#107976)
* Collect Events.* fields for telemetry
* Add process.code_signature
2021-08-17 11:42:19 +01:00
Liza Katz
9d1a8a87f8
[Data][Es Query] Use ES types in Kuery functions (#108367)
* es-query types

* jest and lint

* cc

* options

* type

* types for kuery FUNCTIONS

* doc

* sec fixes

* typey type

* test typescript

* test

* fixes

* test

* cr

* cleanup a bit more

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 11:49:16 +02:00
Dmitry Tomashevich
e258f46167
[Discover] Improve Doc viewer (#107869)
* [Discover] fix doc-vewer

* [Discover] remove redundant stuff

* [Discover] remove redundant i18n

* [Discover] remove unused translation

* [Discover] fix by comments

* [Discover] clean up remaining things

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 12:48:32 +03:00
Stratoula Kalafateli
99e33215fb
[Lens] Fixes flakiness in editing pre-existing runtime field (#108653)
* [Lens] Fixes flakiness in editing pre-existing runtime field

* Field editor changes

* Unskip test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 12:11:05 +03:00
Ester Martí Vilaseca
ae947ceda9
[Metrics UI] Fix refresh button for node details page (#108666)
* Fix refresh button for node details page

* Fix types
2021-08-17 11:09:38 +02:00
Alexey Antonov
8d5c3c835c
[Lens] Fix when clicking "Save and Return" on a Lens visualization the visualization's description gets erased (#108669)
Closes: #107841
2021-08-17 09:38:11 +03:00
Dario Gieselaar
0e547e402d
[APM] Responsive layout for backends detail (#108680)
Closes #108022.
2021-08-17 07:59:35 +02:00
Lukas Olson
6a39dc1880
[data.search] Handle warnings inside of headers (#103744)
* [data.search] Handle warnings inside of headers

* Update docs

* Add tests

* Remove isWarningResponse

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 21:06:19 -07:00
Steph Milovic
82af747532
[RAC][Security Solution] Alert table: Resolver and Cases icons to bulk action menu (#108420) 2021-08-16 21:09:08 -06:00
Tyler Smalley
689d974729
Removes supertest-as-promised dependency (#100486)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-08-16 18:01:34 -07:00
Kate Farrar
e6d446acd7
updating waffle icon and toggle style (#108758) 2021-08-16 18:36:11 -06:00
John Dorlus
9aa1705cd9
Rewrite Grok Debugger Tests to use Standard Functional Test Runner (#108301)
* Converted Grok debugger tests to use standard functional test runner practices.

* Fixed last test.

* Removed old test now that the new test is passing.

* Fixed condition for retry.

* Removed .only to restore test run.

* fixed errors

* Fixed nits.
2021-08-16 20:19:58 -04:00
ymao1
3ab111e5f8
[Alerting] Adding telemetry usage counter for create rule API when predefined ID is specified (#108572)
* Adding telemetry usage counter for create rule API when predefined ID is specified

* Checking explicitly for default space id

* Handling undefined space id when spaces is disabled

* Consolidating logic in single function

* Tracking total usage and custom usage
2021-08-16 20:03:20 -04:00
Joe Portner
3bf7275653
Change unexpected log in error message (#108787) 2021-08-16 19:26:35 -04:00
Michael Marcialis
f80104df0e
Home Page Solutions & Add Data Updates (#108580)
* balance solutions

* clean up solution changes

* change footer button size

* update management section

* apply max-width to management items

* remove right side items from page header

* add data content update

* illustration poc

* add data content updates per feedback

* img size and alignment

* moved shared images to shared assets folder

* more solutions clean up

* rm unneeded import

* remove references to subtitle and appDescriptions

* update tests and snapshots

* more test and snapshot updates

* restore solution sort order

* ts and jest fixes; thx catherine!

* i18n fixes

* use new `KibanaPageTemplateSolutionNavAvatar` comp

* change solution imgs from png to svg

* update tests and snapshots

* rm spacer and update snapshots

* account for flex margin changes in img offset

* Change "Kibana" overview page text to "Analytics"

* update overview icon to match hp changes

* update snapshots

* center justify solutions and update snapshots

* update snapshots

* title case dev tools and stack management

* update text and snapshots

* fix merge error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 19:21:25 -04:00
Kevin Qualters
34eb8c6c46
Prevent unneeded re-renders of tgrid on opening alert flyout (#108781) 2021-08-16 19:05:13 -04:00
Oliver Gupte
678aa4a29f
[APM] Adds Observability Overview to global search results (#99017) (#108778) 2021-08-16 18:38:20 -04:00
Melissa Alvarez
c8ddf94c97
[ML] Data Frame Analytics: replace deprecated EuiCodeEditor (#108306)
* switch dfa create, runtime, and expanded row json editor to new codeEditor

* add aria label. wrap codeEditor in div to allow data attribute for test

* update functional test service for new code editor
2021-08-16 18:29:03 -04:00
Scotty Bollinger
ec120a2cc1
[Workplace Search] Misc tech debt (#108767)
* Remove TODOs

Removes 2 todos:
- in index.tsx, the access is handled somewhere else and visiting any org page as a non-admin results in an error message. No further action needed
- error_state.tsx - this had been completed by Constance in a separate PR but the comment was missed.

* Remove a bunch of unused components

These were left over from the user migration project and mainly have to do with users displayed in the groups section, which is no longer a feature.

* This commit needs no explanition

This was missed in this commit:
19ccd27e04

Refacotred and somehow renaming resulted in this monstrosity 🤦🏼‍♂️

* Remove source descriptions

Since this commit, these are no longer displayed in the UI

16d089acfd (diff-a4761afc86544a299d0129b749e3001625f5b194b95ebc31303824f8f95f4381L173)
2021-08-16 18:02:37 -04:00
Sandra G
7ce9d07746
[Monitoring] change errors dir to typescript (#108297)
* change errors dir to ts

* fix internationalization

* fix internationalization

* change test name
2021-08-16 16:58:27 -04:00
Dominique Clarke
febcfa6ee3
[Uptime] Index alert reason in Uptime alert documents (#107336)
* index alert reason

* adjust imports

* adjust imports

* adjust types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 16:39:46 -04:00
Constance
3ffd6af7c5
[Enterprise Search] Set up basic scaffolding for Cypress tests in Kibana (#108560)
* Set up tsconfigs

- Required if we're going to have several different Cypress suites (one for each plugin/product essentially) in order for global cy.() commands and it()/describe() to register as expected

@see https://docs.cypress.io/guides/tooling/typescript-support#Clashing-types-with-Jest

* Set up shared commands and routes

NOTE: Unlike ent-search, shared/ will *not* have its own set of tests - rather, shared/cypress is a resource/set of helpers for other test suites to extend/import/etc.

* Create basic Enterprise Search Overview E2E tests

- For happy path testing, we _likely_ shouldn't need more than these tests going forward

- If we ever want to add an error connecting test however, this is likely where it should go (or alternatively, use Kibana's FTR with Enterprise Search host set but not spun up)

* Set up App Search Cypress test scaffolding

- placeholder/hello world test only

* Set up Workplace Search Cypress test scaffolding

- placeholder/hello world test only

* Add helper script and update README

* Add config setup & documentation for potentially running Cypress against Kibana functional server

* PR feedback: Fix typescript project names

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 16:30:46 -04:00
Ryan Keairns
36bba6ffe0
Update Analytics overview page to new empty state template (#108532)
* Use empty state page template

* Remove unused translations

* Fixed snaps

* Use docLinks service

* Fix test

* Revert "Use docLinks service"

Use exisiting docLinks.ELASTIC_WEBSITE_URL instead

* Update learn more link and test

* fix test

Co-authored-by: cchaos <caroline.horn@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:54:22 -05:00
Aaron Caldwell
fa64146244
[Maps] Add edit tools defaults for user and timestamp (#103588)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 15:51:07 -04:00
Mikhail Shustov
ea3fcbd8e9
provide execution context information for task and alerting (#108197)
* provide execution context information for task.run and alert.execute

* log default space

* expose setRequestId to plugins for cases when a runtime scope exists outside of requestHandler

* fix typescript errors in jest test files

Unfortunately, some of the tests are still failing.  Not quite sure what's
going on, but it looks like the calls to `withContext()` are not returning
the result of the function passed in, but only in the tests.  Because the
code seems to run fine when I run Kibana - but perhaps we're just lucky
and don't need the results the tests are looking for, for my simple
smoke tests.  But seems unlikely to me - guessing the mock is not being
set up correctly, or there's some weird interaction with jest mocks
and async hooks.

* fix alerting unit tests

* add tests that withContext is called even when exection_context service is disabled

* update docs

* add fakerequestid registration

* do not attach request id when undefined (FakeRequest, for example)

* Revert "add fakerequestid registration"

This reverts commit ca5a396dcc.

* not to expose setRequestId for time being

* cleanup alerting code

* update docs

* add a unit test for alerting execution context

* add a test for execution context of task runner

* improve description readability

* update type definitons

* fall back to unknownId if no requestId is provided

Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
2021-08-16 15:38:52 -04:00
James Gowdy
fa7b414905
[ML] Add support for model_prune_window in job wizard (#108734) 2021-08-16 20:36:53 +01:00
Lisa Cawley
619db1cc5f
[ML] Edits introductory text for uploading files (#108608) 2021-08-16 12:25:11 -07:00
Kerry Gallagher
85e07662d8
[RAC] Disable RAC multi-tenancy (#108506)
* Disable RAC multi-tenancy
2021-08-16 20:01:27 +01:00
James Gowdy
768957a2c2
[ML] Addming failed job import telemetry (#108724) 2021-08-16 19:26:20 +01:00
Thomas Neirynck
911271053b
[Maps] Track proxied EMS requests (#108717) 2021-08-16 14:07:19 -04:00
Dominique Clarke
c5ec5468c5
[Uptime] migrate legacy alert apis (#107863)
* uptime - migrate legacy alert apis

* update alert fetch actions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:02:49 -04:00
Dominique Clarke
024eeed3c3
[Uptime] adjust RAC RBAC and index settings (#108200)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:01:01 -04:00
Frank Hassanabad
9fa62bfd20
[Security Solution][Detection Engine] Fixes agnostic type bug (#108610)
## Summary

Fixes agnostic type bug where in part 1 (#108225), I incorrectly used the same saved object type for both `single` and `agnostic`.

Before the references for SO's were:

```json
"references" : [
  {
    "name" : "param:exceptionsList_0",
    "id" : "endpoint_list",
    "type" : "exception-list" <--- This should have been "exception-list-agnostic" type
  },
  {
    "name" : "param:exceptionsList_1",
    "id" : "50e3bd70-ef1b-11eb-ad71-7de7959be71c",
    "type" : "exception-list"
  }
],
```

After:
```json
"references" : [
  {
    "name" : "param:exceptionsList_0",
    "id" : "endpoint_list",
    "type" : "exception-list-agnostic" <--- This should now be the "exception-list-agnostic" type
  },
  {
    "name" : "param:exceptionsList_1",
    "id" : "50e3bd70-ef1b-11eb-ad71-7de7959be71c",
    "type" : "exception-list"
  }
],
```

Manual testing: Add a new `security_solution` alert and exception list as well as an endpoint list to it. Then save it
<img width="1581" alt="Screen Shot 2021-08-13 at 5 00 39 PM" src="https://user-images.githubusercontent.com/1151048/129425847-78025aba-6d7a-4a5a-9d4f-950ec664596c.png">
<img width="1571" alt="Screen Shot 2021-08-13 at 5 00 47 PM" src="https://user-images.githubusercontent.com/1151048/129425848-42018331-cac6-4411-8153-3441a8af6f34.png">


Do this query in dev tools:
```json
GET .kibana-hassanabad19/_search
{
  "query": {
    "terms": {
      "alert.alertTypeId": [
        "siem.signals"
      ]
    }
  },
  "size": 10000
}
```

And check to ensure that the references look like the after picture where type has : `"type" : "exception-list-agnostic"` if we have an agnostic list. Ensure that on a page reload that the exception types are still there on the rule. Ensure that there are no errors in the console about not finding the correct SO type or anything else odd. 

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-08-16 13:25:02 -04:00
Joey F. Poon
ac4b305023
[Security Solution] bump isolation timeout to 5 minutes (#108568) 2021-08-16 13:24:41 -04:00
Oliver Gupte
2456803f9c
[APM] APM agent instrumentation instructions in Fleet (#108242)
* [APM] APM Agent instrumentation instructions in Fleet integration (#106440)

* moves agent/server instructions to common dir

* fix misspelling of accordion

* more spelling fixes

* fixes missing i18n

* fixes linting errors and missing key

* fixes restricted import issue
2021-08-16 13:22:13 -04:00
Scotty Bollinger
f26eb12728
Remove license badge for platinum users (#108596)
This PR remove license badge for platinum users on the custom source confirmation page
2021-08-16 13:17:13 -04:00
Greg Thompson
f26591fd13
Upgrade EUI to v37.1.1 (#108210)
* eui to 37.1.0

* i18n tokens

* license checker

* disabled prop

* i18n shapshot

* date title snapshots

* date title formatting

* date title formatting

* Revert "disabled prop"

This reverts commit 68a48c4352.

* date title formatting

* eui to 37.2.0

* trial: outsideClickCloses

* Revert "trial: outsideClickCloses"

This reverts commit 4da2299e4f.

* eui to 37.1.1

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 12:15:44 -05:00
Kevin Qualters
1de67c7c80
Prevent observability table actions from ever wrapping (#108704) 2021-08-16 13:07:16 -04:00
Cauê Marcondes
512ab2d82f
[OBS] Editing navigation docs adding badge information (#108530)
* Adding badge description

* apm-new-badge_docs

* adding warning

* addressing PR comments

* changing i18n

* adjusting docs

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 12:44:45 -04:00
Pablo Machado
e2c7313781
Add empty tag validation to cases (#108699) 2021-08-16 12:12:34 -04:00
Cauê Marcondes
0eea6f7ca3
[APM] Refactoring service inventory loading status (#108531) 2021-08-16 11:17:38 -04:00
Annalisa Valente
edb62eed1e
[User Experience] Page title update (#108067)
* Update title User Experience app

* Second rev.

* Modify breadcrumb to say "Dashboard" instead of "Overview".

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-08-16 11:16:10 -04:00
Robert Oskamp
a672fd7988
[ML] Functional tests - stabilize delete annotation test (#108686)
This PR stabilizes the delete annotation UI test by increasing the timeout while waiting for annotation table changes.
2021-08-16 17:04:59 +02:00
Ashokaditya
a4ba1c9274
[Security Solution][Endpoint] Adjust Activity log date picker alignments (#108504)
* set max width on date picker

going with 350px instead of the 250px in the mock in order to fully show the placeholder text for now.

see elastic/security-team/issues/1571

* pad date picker to align with activity log content

see elastic/security-team/issues/1571

* use padding sizes instead

review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 16:20:49 +02:00
Tiago Costa
3ab852f213
Revert "[RAC] integrating rbac search strategy with alert flyout (#108375)"
This reverts commit c6c24e4392.
2021-08-16 15:15:19 +01:00
Dario Gieselaar
cd3cc29133
[APM] Query transaction metrics for alerts (#108167)
Closes #78122.
2021-08-16 09:53:43 -04:00
Katrin Freihofner
a80243aab2
Adjusts panel styling in metrics and logs settings (#108412)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 09:10:59 -04:00
Angela Chuang
c6c24e4392
[RAC] integrating rbac search strategy with alert flyout (#108375)
* add alert consumers for useTimelineEventDetails

* set entityType to events

* rename to AlertConsumers

* set entityType to alerts

* send entity type to search strategy

* fix import

* fix import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 08:58:27 -04:00
Alison Goryachev
650f45b823
[Upgrade Assistant] Create new status endpoint (#105998) 2021-08-16 08:50:36 -04:00
Ashokaditya
a5e97fc21e
[Security Solution][Endpoint] Update endpoint middleware to load data correctly (#108551)
* update endpoint middleware to load data correctly

fixes kibana/issues/108497
modifies changes done in elastic/kibana/pull/107632
and elastic/kibana/pull/108330

* await results

fixes elastic/kibana/issues/108497

* review comments

* Add a test to cover this case

fixes elastic/kibana/issues/108497

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 14:08:23 +02:00
Angela Chuang
fe0322ac1f
[Security Solution] flyout UI adjustment (#108192)
* styling

* fix hover actions

* init overflow button for flyout

* init overflow button

* topN btn

* remove popover from topN

* fix tests

* fix unit test

* add use hover action items hook

* fix for code review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 08:02:42 -04:00
Katrin Freihofner
7f5c1b43ad
Change orientation of the ML setup form (#108339)
Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 08:01:26 -04:00
Tiago Costa
e276554739
skip flaky suite (#95614) 2021-08-16 12:52:35 +01:00
Tiago Costa
b20ccd9514
skip flaky suite (#108352) 2021-08-16 12:43:55 +01:00
Tiago Costa
2c7548ed7c
skip flaky suite (#106651) 2021-08-16 12:38:55 +01:00
Angela Chuang
fc3b3cc2bd
Fix expand hover action in data grid (#108616)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-16 11:51:49 +01:00
Pablo Machado
c2d5d1b6c2
Improve security alerts t-grid loading and empty state (#108527) 2021-08-16 06:15:21 -04:00
Angela Chuang
7888c9cf5f
[Security Solution] Add reason field (#108449)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-15 22:27:54 -04:00
Michael Olorunnisola
565276a90d
[Security Solution][RAC] - Enable tGrid by default (#108632) 2021-08-15 22:10:24 -04:00
Patryk Kopyciński
c347a7e5e5
[Osquery] Add ECS mapping editor (#107706) 2021-08-16 01:17:07 +02:00
Kevin Qualters
0828788b66
[RAC][Security Solution][Observability] Add the add to new case and add to existing case actions to observability alerts table (#108502)
* [RAC][Security Solution][Observability] Add the add to new case and add to existing case actions to observability alerts table

* Remove fake data and make features work with observability data format

* Remove console.log and unused translations

* Remove commented out code

* Remove unneeded copy pasta id, create initializeStore function in timelines

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-15 13:27:28 -04:00
Georgii Gorbachev
2ee11db1fa
[RAC][Rule Registry] Improve RuleDataService API and index bootstrapping implementation (#108115)
**Addresses:** https://github.com/elastic/kibana/issues/106421, https://github.com/elastic/kibana/issues/106428, https://github.com/elastic/kibana/issues/102089, https://github.com/elastic/kibana/issues/106433

## Summary

This PR focuses on consolidation of indexing implementations in `rule_registry` (https://github.com/elastic/kibana/issues/101016). It addresses some of the sub-tasks of the parent ticket.

- [x] Encapsulate index bootstrapping logic in a new improved API exposed by `RuleDataService`.
- [x] Enforce allowed values for the `datasetSuffix` on the API level.
- [x] Migrate plugins using the existing `RuleDataService` API to the improved one.
- [x] Make sure index names comply with design architecture.
    - https://github.com/elastic/kibana/issues/102089
- [x] Improve the API of `RuleDataClient`.
- [x] Enhance index bootstrapping: support custom ILM policy per index (`{registrationContext}.{datasetSuffix}`).
- [x] Enhance index bootstrapping: create index template per namespace and support rollovers properly
    - based on https://github.com/elastic/kibana/pull/107700
- [x] Enhance index bootstrapping: support secondary aliases
    - based on https://github.com/elastic/kibana/pull/107700
- [x] Remove `EventLogService` implementation
    - https://github.com/elastic/kibana/issues/106433

This will be addressed in follow-up PRs:

- [ ] Enhance index bootstrapping: implement suggestions for backwards compatibility (naming scheme for alias and backing indices; versioning).
- [ ] Enhance index bootstrapping: implement upgrades of existing index templates.
- [ ] Make index bootstrapping logic more robust. This _is partially addressed_ in this PR, but more improvements are needed.
- [ ] Change the way index prefix works.
- [ ] Add support for optional TS schema (static typing).
- [ ] Update `README` in `rule_registry`.

### 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-15 14:52:44 +02:00
liza-mae
ee07d710d4
Update infra visual test (#108621) 2021-08-14 14:37:08 -06:00
Ece Özalp
aa8ce39e03
[CTI] adds Range Picker to Threat Intel Tab (#107234) 2021-08-14 16:30:35 -04:00
Patryk Kopyciński
9d0a7b8394
[Osquery] Add Osquery tab to node details tabs (#104272) 2021-08-14 07:25:24 -04:00
Ryland Herrick
a9844db461
[Security Solution][CTI] Update legacy CTI signals to latest ECS threat fields (#107988)
* WIP: Adding integration test

* Replace threat.indicator mappings with threat.enrichments mappings

The nested threat.indicator mappings were experimental, and replaced by
threat.enrichmentsin ECS 1.10. While these fields are also experimental,
they fix the conflict between CTI data's normal threat.indicator
mappings.

* Add threat.enrichments mappings to our signals template mappings

event.* is no longer nested within here; it was determined that event
fields were not relevant to enrichment. All relevant ECS fieldsets
(file, pe, etc) are now nested under threat.enrichments.

* Update snapshot with newest threat.enrichments mappings

This test is a snapshot of the actual mappings applied by our templates. Looks good to me!

* Update ECS types to match latest

We now have two threat fields we care about for CTI, for legacy and
official ECS.

* Add a basic test for behavior of legacy enriched signals.

They're still queryable by threat.indicator, meaning that any existing
dashboards will still work.

* WIP: First pass at a data migration for CTI signals

* Defines reindex script to move things around
* Adds integration tests to make sure the migration and new mappings
  work
* Need to test a few more things and verify corner cases
* Need to extract some helpers from tests

* Bump our template version to ensure devs roll over

Marshall bumped to 55, giving us 10 versions for 7.14.x updates.
However, devs would not otherwise roll over and get my mapping updates
without destroying their signals index and rebuilding (which is also not
the same thing, exactly), so this trades having one higher signals
version for a more streamlined dev workflow.

* More robust guard against data migration

We only attempt to migrate legacy enrichments if the document:

* is a signal from an indicator match rule
* has a `threat.indicator` field
* does not have a `threat.enrichments` field

* Minor reorder of operations to make logic clearer

* Add more assertions around our signals data migration

Tests a few more pieces of the resulting document, giving more
confidence that it's the correct transformation (and mappings).

This also modifies/anonymizes the data that was originally generated on
a work machine.

* Remove outdated note

This was for when these tests were driven via the UI; the API is more
responsive and now synchronization is currently needed here, beyond the
200 responses.

* Fix typo in comment

These fields are in ECS 1.11.

* Update snapshot test

We bumped the version previously, causing this test to become outdated.

* Update ECS typings in timelines plugin

These were copied from the security_solution plugin. I updated those,
but neglected to update these.

Until there's a better mechanism for deduplication here, I'm going to
kick the can and update both for now.

* Update enrichments logic to read/write from threat.enrichments

* indicator match rule logic
  * we now simply copy from the specified indicator path, and place that
    in `threat.enrichments.indicator`
* event enrichment API logic
  * We were previously returning fields from `indicator.*`, we now
    include the `indicator.*` suffix in order to be more consistent with
    the sibling `matched.*` fields
* row renderer logic
  * removal of dataset
  * updates relevant to API changes above

* Fix logical error in generating links from indicator fields

We want to link the reference field, not a `first_seen` field.

* Always include the indicator prefix in first-party indicator fields

Prior to this change we would display e.g. `threatintel.indicator.foo`
for investigation enrichment fields. Now that the structure has changed
slightly and we return both `indicator.*` and `matched.*` fields for
existing enrichents, we want to display investigation enrichment
similarly.

* Update indicator match rule integration tests

Now that we've updated our enrichment logic, we need to update our
enrichment tests.

* Remove unused translation

* Update example row renderer data for enriched alerts

* Update parallel CTI constants to get our CTI row renderer working

We were not requesting the necessary fields for our row renderer, since
these constants (specifically CTI_ROW_RENDERER_FIELDS) now exist in both
security_solution and the timelines plugin. I had updated the former,
but only the latter is actually used.

* Update CTI enrichment UI tests

* Update prepackaged threat timeline template with new threat fields

Also bumps the timelineTemplateVersion.

* Update Indicator Match rule tests

These needed three things:

* Update to timeline template (see previous commit)
* Changing expectations from `threat.indicator` to `threat.enrichments`
* Update row renderer expectation to exclude dataset

* Update mock data with newest CTI enrichment fields

* Fix assertion on our threat details

These fields are prefixed with `indicator` now because:

1. This data pertains to the indicator, not the match per se
2. The actual field is prefixed with indicator (or, it at least
   specifies an indicator in the case of a custom threat index (via
   threat_indicator_path))

* Update test data and tests for our field parsing helpers

* Update more event-parsing tests

Ths one involved updating a mock in another package.

* Modify our helper function to support old filebeat indicators

When we query indicators for enrichment matches, the current expectation
is that we'll be querying 7.14 filebeat modules, which have an indicator
path of 'threatintel.indicator'. The only place that matters on the UI
is on the threat intel panel, where these indicators come back with such
a prefix.

This change has one behavior: it brings back the `provider` field on the
Alert summary tab for queried enrichments from filebeat modules.

* Update variable and method names to be more consistent with internal terminology

Indicators come from a CTI index. Enrichments are the application of
indicator data to other documents, and contain both indicator fields and
matched context.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-14 01:57:23 -04:00
Davis Plumlee
5f947c2531
[Security Solution][Detections] Moves last updated info inline with status filter (#108096) 2021-08-14 01:24:00 -04:00
Yara Tercero
94d16f8882
[Security Solution] - remove alerts subfeature UI from behind feature flag (#108450)
### Summary
This removes the feature flag check for showing the alerts subfeature under security solution Kibana roles UI.
2021-08-14 00:12:31 -04:00
Sergi Massaneda
a7661a553c
[TGrid] Alerts status update use RAC api (#108092)
Co-authored-by: Devin Hurley <devin.hurley@elastic.co>
2021-08-13 22:11:53 -04:00
liza-mae
78e7e40b77
Update map visual test (#108593)
* Update map visual test

* Up to latest
2021-08-13 19:35:01 -06:00
Caroline Horn
e33cdc29c6
[Enterprise Search] Updated product_selector to match new No Data screens (#108592)
And updated product selector images to match new Kibana UI
2021-08-13 20:29:10 -04:00
CJ Cenizal
bfea4a1c2b
Add EuiCodeEditor to ES UI Shared. (#108318)
* Export EuiCodeEditor from es_ui_shared and consume it in Grok Debugger. Remove warning from EuiCodeEditor.
* Lazy-load code editor so it doesn't bloat the EsUiShared plugin bundle.
* Refactor mocks into a shared jest_mock.tsx file.
2021-08-13 16:49:55 -07:00
Marshall Main
5ef1f95711
Add signal.original_event.reason to signal_extra_fields for insertion into old indices (#108594) 2021-08-13 18:51:23 -04:00
Ross Bell
1311fe38ae
Add Workplace Search sync controls UI (#108558)
* Wip

* Things are more broken, but closer to the end goal

* Get patch request working

* Update event type

* Other two toggles

* Force sync button

* Remove force sync button for now

* Disable the checkbox when globally disabled and introduce click to save

* Wip tests

* One test down

* Test for skipping name alert

* Linter

* Fix undefined check

* Prettier

* Apply suggestions from code review

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>

* Refactor some structures into interfaces

* UI tweaks

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-08-13 18:41:17 -04:00
Sébastien Loix
b24d44d165
[Index pattern field editor] Add preview for runtime fields (#100198) 2021-08-13 18:27:23 -04:00
Clint Andrew Hall
d78d66d424
[canvas] Create Labs Service; remove legacy service (#107354) 2021-08-13 17:31:37 -04:00
Ece Özalp
f952643e54
[CTI] adds securitySoluion:defaultThreatIndex uiSetting (#108389) 2021-08-13 16:32:32 -04:00
Tim Sullivan
8ea29b6c5a
[Reporting] Implement a round of server code cleanup of types, unused files, and test mocks (#108480)
* rewrite createMockLevelLogger

* Remove redundant BaseParams references that were inlined

* remove unused files related to the 7.x compatibility shim

* remove unused legacy mock
2021-08-13 13:12:33 -07:00
Tim Sullivan
2fb785de64
[Reporting/Mgmt] Fix the missing deprecation warning under job status (#108484)
* [Reporting/Mgmt] Fix the missing deprecation warning under job status

* improve unit test

* add space before the text and update snapshots
2021-08-13 13:11:35 -07:00
Paul Tavares
3b31ffc5fd
[Security Solution][Endpoint] Improve logic for determining count of pending actions and reenable pending status on UI (#108114)
- Re-enable display of Pending isolation status on the UI along with a experimental feature flag to be able to turn it back off
- Improves the logic around determining if an isolation action has actually been processed by the Endpoint by looking for an endpoint metadata update whose `event.created` timestamp is more recent than the timestamp on the isolation Action Response. The goal is to minimize/avoid the UX around isolation where a user might not see the result from the Endpoint (isolated or released) after having seen the pending status on the UI.
- Add some protective code around our server side license watcher so that failures are not bubbled up and instead are logged to the kibana logs
- Added new `findHostMetadataForFleetAgents()` method to the `EndpointMetadataService`
- Added test mocks for `EndpointMetadataService` and tests for new method
2021-08-13 15:42:14 -04:00
Frank Hassanabad
c922005644
Changes out cypress pipe (#108457)
## Summary

Reduces flake by changing out a Cypress pipe for a `cy.wait`. This UI element does unusual things that make it unfit for Cypress pipe such as multiple clicks against it will cause the component to have a dialog appear and disappear with transition effects which can make pipe not able to click once when the click handler is present.


### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-08-13 13:41:17 -06:00
Nathan Reese
505043898e
[Maps] 'show this layer only' layer action (#107947)
* [Maps] 'show this layer only' layer action

* review feedback

* remove ts code from js file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-13 13:38:57 -06:00
Clint Andrew Hall
2d385b339d
[canvas] Fix setup server expressions cache; move to mount (#108473) 2021-08-13 13:19:16 -04:00
Clint Andrew Hall
44014c78b6
[canvas] Create Custom Elements Service (#107356)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-13 13:08:50 -04:00
Jason Stoltzfus
f3e094c836
[App Search] Added a CrawlRulesTable to the Crawler view (#108458) 2021-08-13 13:08:46 -04:00
Joe Portner
e35be9d87c
Fix flaky security/spaces tests (#108088) 2021-08-13 13:05:11 -04:00
Marta Bondyra
e33daccca3
[Lens] Disable the global timepicker for index pattern without primary timefield and visualizations without timefield (#108052) 2021-08-13 18:24:00 +02:00
Sandra G
dd85150f73
[Monitoring] Convert elasticsearch_settings dir to typescript (#108112)
* convert elasticsearch_settings dir files to typescript

* fix type

* change tests to ts
2021-08-13 12:07:46 -04:00
Dima Arnautov
fe3b7d61c8
[ML] Fix the Job audit messages service (#108526)
* [ML] refactor to ts

* [ML] fix types
2021-08-13 11:55:38 -04:00
Walter Rafelsberger
fa3ae84b5b
[ML] APM Latency Correlations: Improve log log chart loading behavior and axis ticks. (#108211)
- Makes use of ChartContainer to improve the loading behavior of the log log chart to include a loading indicator.
- Improves y axis ticks for the log log chart. Will set the max y domain to the next rounded value with one more digit, for example, if the max y value is 4567, the y domain will be extended to 10000 and 10000 being the top tick. This makes sure we'll always have a top tick, fixes a bug where with low number <10 we'd end up with just a low 1 tick.
- Improves x axis ticks to support different time units.
2021-08-13 11:52:04 -04:00
Casper Hübertz
4a1366ca52
[APM] Change table SparkPlot content properties (#108516) 2021-08-13 17:01:56 +02:00
Brian Seeders
212b1898e6
Revert "[Enterprise Search] Set up basic scaffolding for Cypress tests in Kibana (#108309)" (#108541)
This reverts commit 4d7aa45e14.
2021-08-13 10:10:53 -04:00
Jason Stoltzfus
5bfba1b014
[App Search] Added a SitemapsTable to the Crawler view (#108405) 2021-08-13 10:00:48 -04:00
Ece Özalp
a8b4433294
[CTI] Fixes AlienVaultOTX counts on the Overview page (#108448) 2021-08-13 09:50:43 -04:00
Dario Gieselaar
a474a63a7f
[APM] Make environment & kuery required (#108338) 2021-08-13 09:50:14 -04:00
Tiago Costa
3c75b1faf5
skip flaky suite (#106660) 2021-08-13 14:15:45 +01:00
Kevin Qualters
dcfb19fb53
Reposition the take action popover on scroll (#108475) 2021-08-13 08:51:52 -04:00
David Sánchez
37053e6a8d
[Security solution][Endpoint] Don't hide "add trusted app" button if we are checking if data exists and there was data before (#108373)
* Don't hide add button if we are checking if data exists and there was data before

* Moves duplicated code in a useCallback
2021-08-13 14:37:50 +02:00
Jen Huang
7fb30ba6f4
[Fleet] Link to Add Data (Beats tutorials) when there are no integrations found (#108224)
* Link to add data/beats tutorials when there are no integrations found

* Address PR feedback + fox i18n

* Update integrations page subtitle

Co-authored-by: Kyle Pollich <kpollich1@gmail.com>
2021-08-13 08:22:52 -04:00
Dario Gieselaar
444355cdc3
[APM] Index reason field for alerts (#108019) 2021-08-13 07:05:45 -04:00
Cauê Marcondes
3b4dca1efb
[APM] Backends UI: Show "NEW" badge in the Observability solution nav for the new Backends view (#108397)
* adding badge to obs nav

* addressing PR comments

* refacroting
2021-08-13 06:38:54 -04:00
Esteban Beltran
8cc5f49eeb
[Security Solution] Move Endpoint details flyout and related middleware to their own functions (#108330)
* Split function to load endpoint details using parameters

* Add action to load endpoint details

* Moving all the endpoint details content to a separate component

* Rename endpoint details to endpoint details content

* Rename temporal file into EndpointDetails

* Remove unused dispatch

* Refactor ingestPolicies dispatching in the middleware
2021-08-13 09:54:58 +02:00
Yaroslav Kuznietsov
ac0d785eba
[Canvas] DatasourcePreview refactor. (#106644)
* Moved `DatasourcePreview` from `recompose` to `hooks`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-13 08:55:40 +03:00
Yaroslav Kuznietsov
3e542e556a
[Canvas] ESFieldSelect refactor. (#107004)
* Refactored `ESFieldSelect`.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-13 08:54:46 +03:00
Davey Holler
21397b65e8
Enterprise Search UI Copy Pass (#107812)
* First session of copy passes. More to come.

* Setup guide copy changes

* can not → cannot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 21:55:14 -04:00
Chris Roberson
b5bd063f51
Deprecate ability to disable alerting, actions, task manager, stack alerts, and event log plugins (#108281)
* Add deprecation warnings for .enabled config for all our plugins

* Add tests

* Add stackAlerts

* Fix stack alerts

* Add tests

* Add triggers_action_ui

* Add deprecated warning to the docs
2021-08-12 21:34:05 -04:00
liza-mae
e235a0a8b0
Fix unhandled promise rejection (#108430)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 18:39:14 -06:00
DeviousLab
6a053a5d10
[APM] Update throughput chart tooltip content (#108351) 2021-08-12 20:04:43 -04:00
Caroline Horn
ba14713623
[KibanaPageTemplate] Adding a noDataConfig for templated add data screens (#108293) 2021-08-12 20:01:54 -04:00
Constance
4d7aa45e14
[Enterprise Search] Set up basic scaffolding for Cypress tests in Kibana (#108309)
* Set up tsconfigs

- Required if we're going to have several different Cypress suites (one for each plugin/product essentially) in order for global cy.() commands and it()/describe() to register as expected

@see https://docs.cypress.io/guides/tooling/typescript-support#Clashing-types-with-Jest

* Set up shared commands and routes

NOTE: Unlike ent-search, shared/ will *not* have its own set of tests - rather, shared/cypress is a resource/set of helpers for other test suites to extend/import/etc.

* Create basic Enterprise Search Overview E2E tests

- For happy path testing, we _likely_ shouldn't need more than these tests going forward

- If we ever want to add an error connecting test however, this is likely where it should go (or alternatively, use Kibana's FTR with Enterprise Search host set but not spun up)

* Set up App Search Cypress test scaffolding

- placeholder/hello world test only

* Set up Workplace Search Cypress test scaffolding

- placeholder/hello world test only

* Add helper script and update README

* Add config setup & documentation for potentially running Cypress against Kibana functional server

* PR feedback: Remove unnecessary return true
2021-08-12 17:58:26 -04:00
Devon Thomson
33f3933118
[Dashboard] [Embeddable] Add Ability to Defer Embeddable Loaded State (#107227)
Added defer embeddable loading flag to embeddable for embeddables which aren't finished loading after their constructor is finished
2021-08-12 17:43:57 -04:00
Katrin Freihofner
5876f8a4e1
changes investigate icon to eye icon (#108436) 2021-08-12 17:15:52 -04:00
Frank Hassanabad
e072409a0c
Uses the transient for the styled component to avoid React stack traces (#108435)
## Summary

When running the tests for detections like so:

```sh
node scripts/jest.js x-pack/plugins/security_solution/public/detections
```

We see two stack traces come up:
```sh
 PASS  x-pack/plugins/security_solution/public/detections/pages/detection_engine/detection_engine.test.tsx (51.663 s)
  ● Console

    console.error
      Warning: React does not recognize the `isActive` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isactive` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
          in button (created by EuiButtonEmpty)
          in EuiButtonEmpty (created by EuiFilterButton)
          in EuiFilterButton (created by Styled(EuiFilterButton))
          in Styled(EuiFilterButton) (created by AlertsTableFilterGroupComponent)
          in div (created by EuiFilterGroup)
          in EuiFilterGroup (created by Styled(EuiFilterGroup))
          in Styled(EuiFilterGroup) (created by AlertsTableFilterGroupComponent)
          in AlertsTableFilterGroupComponent (created by DetectionEnginePageComponent)
          in div (created by Display)
          in Display (created by DetectionEnginePageComponent)
          in div (created by Wrapper)
          in Wrapper (created by SecuritySolutionPageWrapperComponent)
          in SecuritySolutionPageWrapperComponent (created by DetectionEnginePageComponent)
          in div (created by styled.div)
          in styled.div (created by DetectionEnginePageComponent)
          in DetectionEnginePageComponent (created by ConnectFunction)
          in ConnectFunction
          in Router
          in Provider (created by App)
          in App (created by ErrorBoundary)
          in ErrorBoundary (created by DragDropContext)
          in DragDropContext (created by TestProvidersComponent)
          in ThemeProvider (created by TestProvidersComponent)
          in Provider (created by TestProvidersComponent)
          in Provider
          in Unknown (created by TestProvidersComponent)
          in PseudoLocaleWrapper (created by I18nProvider)
          in IntlProvider (created by I18nProvider)
          in I18nProvider (created by TestProvidersComponent)
          in TestProvidersComponent (created by WrapperComponent)
          in WrapperComponent

      at warningWithoutStack (node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at validateProperty$1 (node_modules/react-dom/cjs/react-dom.development.js:7462:7)
      at warnUnknownProperties (node_modules/react-dom/cjs/react-dom.development.js:7505:19)
      at validateProperties$2 (node_modules/react-dom/cjs/react-dom.development.js:7528:3)
      at validatePropertiesInDevelopment (node_modules/react-dom/cjs/react-dom.development.js:7575:5)
      at setInitialProperties (node_modules/react-dom/cjs/react-dom.development.js:7860:5)


 PASS  x-pack/plugins/security_solution/public/detections/pages/detection_engine/rules/details/index.test.tsx (54.841 s)
  ● Console

    console.error
      Warning: React does not recognize the `isActive` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `isactive` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
          in button (created by EuiButtonEmpty)
          in EuiButtonEmpty (created by EuiFilterButton)
          in EuiFilterButton (created by Styled(EuiFilterButton))
          in Styled(EuiFilterButton) (created by AlertsTableFilterGroupComponent)
          in div (created by EuiFilterGroup)
          in EuiFilterGroup (created by Styled(EuiFilterGroup))
          in Styled(EuiFilterGroup) (created by AlertsTableFilterGroupComponent)
          in AlertsTableFilterGroupComponent (created by RuleDetailsPageComponent)
          in div (created by Wrapper)
          in Wrapper (created by SecuritySolutionPageWrapperComponent)
          in SecuritySolutionPageWrapperComponent (created by RuleDetailsPageComponent)
          in div (created by styled.div)
          in styled.div (created by RuleDetailsPageComponent)
          in RuleDetailsPageComponent (created by ConnectFunction)
          in ConnectFunction
          in Router
          in Provider (created by App)
          in App (created by ErrorBoundary)
          in ErrorBoundary (created by DragDropContext)
          in DragDropContext (created by TestProvidersComponent)
          in ThemeProvider (created by TestProvidersComponent)
          in Provider (created by TestProvidersComponent)
          in Provider
          in Unknown (created by TestProvidersComponent)
          in PseudoLocaleWrapper (created by I18nProvider)
          in IntlProvider (created by I18nProvider)
          in I18nProvider (created by TestProvidersComponent)
          in TestProvidersComponent (created by WrapperComponent)
          in WrapperComponent

      at warningWithoutStack (node_modules/react-dom/cjs/react-dom.development.js:530:32)
      at warning (node_modules/react-dom/cjs/react-dom.development.js:1018:27)
      at validateProperty$1 (node_modules/react-dom/cjs/react-dom.development.js:7462:7)
      at warnUnknownProperties (node_modules/react-dom/cjs/react-dom.development.js:7505:19)
      at validateProperties$2 (node_modules/react-dom/cjs/react-dom.development.js:7528:3)
      at validatePropertiesInDevelopment (node_modules/react-dom/cjs/react-dom.development.js:7575:5)
      at setInitialProperties (node_modules/react-dom/cjs/react-dom.development.js:7860:5)
      at finalizeInitialChildren (node_modules/react-dom/cjs/react-dom.development.js:9478:3)
```

This is because it looks like we should be using transient variables for styled per [here](https://styled-components.com/docs/api#transient-props)

This was introduced from this [PR](https://github.com/elastic/kibana/pull/107249)

### Checklist

- [ ] [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-12 16:49:53 -04:00
Nicolas Chaulet
b3b97e1210
[Fleet] Fix yaml loading (#108421) 2021-08-12 16:22:33 -04:00
Felix Stürmer
45b33ba806
[Observability] Remove outdated top_alerts route and related types (#107579)
* Remove outdated top_alerts route and related types

* Remove tests for deleted code

* Remove test for deleted API

* Remove reference to deleted type

* Remove unused translations

* Remove unused mock from story

* Remove no-op alerts page story for now

* Remove unsafe type assertions

* Factor out alert field type

* Compile kbn-io-ts-utils for the browser as well

* Avoid deep import which doesn't work cross-platform

* Revert "Avoid deep import which doesn't work cross-platform"

This reverts commit 492378c6b5.

* Revert "Compile kbn-io-ts-utils for the browser as well"

This reverts commit a1267b139d.

* Revert "Factor out alert field type"

This reverts commit def6987498.

* Revert "Remove unsafe type assertions"

This reverts commit c88d4cd005.

* Remove unsafe type assertions (again)
2021-08-12 22:22:21 +02:00
Corey Robertson
4291a1507b
[Presentation] Adds owner to presentation team plugin kibana.json. Updated CODEOWNERS (#108408)
* Adds owner to presentation team plugin kibana.json. Updated CODEOWNERS

* Adds a few more owners for presentation
2021-08-12 15:54:39 -04:00
Liza Katz
e91baea5dc
[Data][Es Query] Use ES types instead of DslQuery (#108290)
* es-query types

* jest and lint

* cc

* options

* type

* type
2021-08-12 21:23:33 +02:00
Chris Roberson
fb215edf55
Revert "[Task Manager] [8.0] Remove xpack.task_manager.index (#108111)" (#108398)
This reverts commit 9dce033408.
2021-08-12 14:46:46 -04:00
Justin Kambic
3c41b3fe63
[Uptime] Extract o11y page template from page components (#104939)
* Refactor synthetics page components to avoid directly rendering o11y page template.

* Add tests for synthetics check page components.

* TEMP COMMIT.

* Implement PR feedback.

* Remove file.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 14:34:55 -04:00
Marius Dragomir
51d4b36c4e
update reporting URLs (#108358)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 20:11:14 +02:00
Lisa Cawley
17abc9ca15
[ML] Update intro text for ML in Stack Management (#108280) 2021-08-12 11:10:56 -07:00
Nicolas Chaulet
db9407c47c
[Fleet] Link from Fleet Agent policy to integration (#108254) 2021-08-12 10:49:23 -07:00
Kevin Qualters
1b88880a21
[RAC][Security Solution] Add to case actions in detail flyout (#108057)
* add to case action in flyout

* Fix most type errors

* Use context menu item instead of empty button for popover items

* Remove unused import

* Fire action on case modal close

* Update tests to use both components and remove console.log

* Update mocks in unit tests

* Use an onClose prop instead of closeCallbacks

* Pr feedback, create shared mock and rename handler

* Make app usable when timelines is not enabled

* Remove unused translations
2021-08-12 13:45:08 -04:00
Rashmi Kulkarni
320fc8b650
test user with specific roles and permissions- for create index pattern wizard test (#107984)
* test user with specific roles and permissions

* added SO method logging, added test data stream to the role and modified createindexpattern function

* removed unused method added in settings page

* removed unused index name- logs-*

* remove unused function from settings page

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 10:15:06 -07:00
Pete Harverson
34080b20b0
[ML] Adds initial record score to the anomalies table expanded row content (#108216)
* [ML] Adds initial record score to the anomalies table expanded row content

* [ML] Edits to tooltip text following review

* [ML] Add check for undefined when outputting probability
2021-08-12 18:02:27 +01:00
Pete Harverson
c412aa1d10
[ML] Fixes callout in rule editor when no filter lists created (#108369)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 18:01:33 +01:00
Jean-Louis Leysens
f08005e0e7
[Reporting] Create reports with full state required to generate the report (#101048)
* very wip

* - Reached first iteration of reporting body value being saved with
  the report for **PDF**
- Removed v2 of the reporting since it looks like we may be able
  to make a backwards compatible change on existing PDF/PNG
  exports

* reintroduced pdfv2 export type, see https://github.com/elastic/kibana/issues/99890\#issuecomment-851527878

* fix a whol bunch of imports

* mapped out a working version for pdf

* refactor to tuples

* added v2 pdf to export type registry

* a lot of hackery to get reports generated in v2

* added png v2, png reports with locator state

* wip: refactored for loading the saved object on the redirect app URL

* major wip: initial stages of reporting redirect app, need to add a way to generate v2 reports!

* added a way to generate a v2 pdf from the example reporting plugin

* updated reporting example app to read and accept forwarded app state

* added reporting locator and updated server-side route to not use Boom

* removed reporting locator for now, first iteration of reports being generated using the reporting redirect app

* version with PNG working

* moved png/v2 -> png_v2

* moved printable_pdf/v2 -> printable_pdf_v2

* updated share public setup and start mocks

* fix types after merging master

* locator -> locatorParams AND added a new endpoint for getting locator params to client

* fix type import

* fix types

* clean up bad imports

* forceNow required on v2 payloads

* reworked create job interface for PNG task payload and updated consumer code report example for forcenow

* put locatorparams[] back onto the reportsource interface because on baseparams it conflicts with the different export type params

* move getCustomLogo and generatePng to common for export types

* additional import fixes

* urls -> url

* chore: fix and update types and fix jest import mocks

* - refactored v2 behaviour to avoid client-side request for locator
  instead this value is injected pre-page-load so that the
  redirect app can use it
- refactored the interface for the getScreenshot observable
  factory. specifically we now expect 'urlsOrUrlTuples' to be
  passed in. tested with new and old report types.

* updated the reporting example app to use locator migration for v2 report types

* added functionality for setting forceNow

* added forceNow to job payload for v2 report types and fixed shared components for v2

* write the output of v2 reports to stream

* fix types for forceNow

* added tests for execute job

* added comments, organized imports, removed selectors from report params

* fix some type issues

* feedback: removed duplicated PDF code, cleaned screenshot observable function and other minor tweaks

* use variable (not destructured values) and remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 18:40:19 +02:00
Jason Stoltzfus
4d7fd0a0ad
[App Search] Added an EntryPointsTable (#108316) 2021-08-12 12:39:58 -04:00
mgiota
caaa76feab
[RAC] display timestamp value instead of triggered (#108029)
* [RAC] display timestamp value instead of triggered

* remove unused value

* fix imports

* fix imports

* Update x-pack/plugins/observability/public/pages/alerts/alerts_table_t_grid.tsx

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>

* add some explanations

* more explanations

* 108035: change relative time for timestamp to absolute

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-08-12 12:39:32 -04:00
Chris Cowan
acba612586
[Metrics UI] Move saved views button to page header (#107951)
* [Metrics UI] Move saved views button to page header

* fixing types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 10:25:56 -06:00
Chris Cowan
9045f736e4
[Metrics UI] Remove alert previews (#107978)
* [Metrics UI] Remove alert previews

* Fixing i18n strings

* Adding back in isTooManyBucketsPreviewException for evaluate_alert

* Fixing import

* Removing more obsolete code

* removing unused strings for i18n

* removing unused range function
2021-08-12 10:24:59 -06:00
Cauê Marcondes
40842e1d65
[APM] Removing loading spinner while fetching comparison data from tables (#108256)
* removing loading from tables

* renaiming readme file

* changing apm readme file

* addressing PR comments
2021-08-12 12:16:09 -04:00
Michail Yasonik
7f19e57ee5
Enabling a11y test (#108284) 2021-08-12 12:04:41 -04:00
Dario Gieselaar
75db4e56a6
[APM] Merge environments from metric-only services (#108185) 2021-08-12 11:54:27 -04:00
Dario Gieselaar
4505f3ba4f
[APM] Show relevant nodes in focused service map (#108028)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 11:53:22 -04:00
Pablo Machado
79fefe0311
[Security solution] [RAC] Add row renderer popover to alert table "reason" field (#108054)
* Add row renderer popover to alert table reason field

* Add a title to row renderer popover on alert table

* Fix issues found during code review
2021-08-12 11:11:53 -04:00
Sébastien Loix
338f7c5d7f
[Monaco editor]: Fix accessibility focus trap issue (#107292) 2021-08-12 11:00:29 -04:00
Ece Özalp
6a51acc408
[CTI][RAC] adds indicator match rule (#107977) 2021-08-12 10:34:06 -04:00
Pablo Machado
f498b7aad2
Update Alert page header style (#108359) 2021-08-12 10:28:46 -04:00
Joey F. Poon
76cab016f4
[Security Solution] update host isolation support (#108230) 2021-08-12 08:34:15 -05:00
Jonathan Budzenski
2ab5c2c40a Revert "[RAC] integrating rbac search strategy with alert flyout (#107748)"
This reverts commit e9ac0c6674.
2021-08-12 08:20:28 -05:00
David Sánchez
de9d784035
Adds new operatorsList prop in exceptions builder to allow pass a list of operators. Add this prop in event filters form (#108015)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 12:59:33 +02:00
mgiota
99e73c7960
[Observability RAC] Alerts page header updates (#108110)
* [RAC] remove gear icon from manage rules button

* change text

* Change to empty button

* remove unused translations

* change href const

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 12:47:11 +02:00
Angela Chuang
e9ac0c6674
[RAC] integrating rbac search strategy with alert flyout (#107748)
* add alert consumers for useTimelineEventDetails

* set entityType to events

* rename to AlertConsumers

* set entityType to alerts

* send entity type to search strategy

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 10:54:17 +01:00
Esteban Beltran
997e9ec9b9
[Security Solution] User can make Exceptions for Behavior Protection alerts (#106853) 2021-08-12 09:14:47 +02:00
Marco Liberati
dc2a1e1cea
[Lens] Introduce new layer types (#107791) 2021-08-12 08:29:31 +02:00
spalger
31b8a8229c skip flaky suite (#107911) 2021-08-11 17:37:36 -07:00
Scotty Bollinger
33cd67a4b0
[Workplace Search] Add custom branding controls to Settings (#108235)
* Add image upload route

* Add base64 converter

Loosely based on similar App Search util https://github.com/elastic/kibana/blob/master/x-pack/plugins/enterprise_search/public/applications/app_search/components/document_creation/utils.ts

I opted to use this built-in class and strip out what the server does not need. Will have to manually add the prefix back in the template the way eweb does it:

https://github.com/elastic/ent-search/blob/master/app/javascript/eweb/components/shared/search_results/ServiceTypeResultIcon.jsx#L7

* Swap out flash messages for success toasts

Will be doing this app-wide in a future PR to match App Search

* Make propperties optional

After the redesign, it was decided that both icons could be uploaded individually.

* Add constants

* Add BrandingSection component

* Add logic for image upload and display

* Add BrandingSection to settings view

* Fix failing test

* Fix some typos in tests
2021-08-11 19:07:38 -04:00
Michael Olorunnisola
09470dcccf
[Security Solution][RAC] - Add reason field (#107532) 2021-08-11 17:18:04 -04:00
Nathan Reese
a4f261a187
[Maps] convert Join resources folder to TS (#108090)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 14:53:30 -06:00
Chris Roberson
9dce033408
[Task Manager] [8.0] Remove xpack.task_manager.index (#108111)
* Remove support for the config field index

* Fix type issues

* Remove references from a few more places
2021-08-11 16:23:58 -04:00
Michael Dokolin
1eae08e2c1
[Expressions] Add support of partial results to the switch expression function (#108086) 2021-08-11 22:16:53 +02:00
Tim Sullivan
6563fad7be
[Reporting] implement content changes per feedback (#108068) 2021-08-11 13:13:40 -07:00
Melissa Alvarez
124c85ed8c
[ML] Data Frame Analytics: add evaluation quality metrics to Classification exploration view (#107862)
* add evaluation quality metrics to Classification exploration view

* move type to common file

* fix path

* switch accuracy and recall columns and update MetricItem name

* add evaluation metrics title

* ensure evaluation metrics section is left aligned
2021-08-11 16:07:41 -04:00
Nathan Reese
2ce80869be
[maps] add indication in layer TOC when layer is filtered by map bounds (#107662)
* [maps] add indication in layer TOC when layer is filtered by map bounds

* fix i18n id collision

* use ghost color so icons are more visible

* revert icon color change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 13:48:22 -06:00
Lukas Olson
12115d680c
[data.search] Add owner/description properties to kibana.json (#107954)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 12:42:10 -07:00
Kerry Gallagher
900052f32c
[APM] Add a logs tab for services (#107664)
* Add a logs tab for APM services

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-08-11 19:51:32 +01:00
ymao1
d07f0e6d14
[Alerting] Alerting authorization should always exempt alerts consumer (#108220)
* Reverting changes to genericize exempt consumer id

* Adding unit test for find auth filter when user has no privileges
2021-08-11 14:49:38 -04:00
Vadim Yakhin
c0baf834cc
[Enterprise Search] Fix search not working on some table columns on Users and Roles page (#108228)
* Fix role mappings table search not working on some columns

Not searchable columns had non-string data: arrays, objects.
The default implementation of search doesn't perform a search on non-string data.

The solution used here is to have a custom search callback that converts the entire
role mapping object to string and then checks if user query exists in this string.

It was copied and adjusted from example in EUI docs:
https://elastic.github.io/eui/#/tabular-content/in-memory-tables#in-memory-table-with-search-callback

* Fix copy

* Fix the same issue for Users table

The search was not performed on Engines/Groups column.

Also adjust the variable names in role_mappings_table to closely match
variable names in users_table
2021-08-11 14:27:10 -04:00
Candace Park
e1843f9252
[Security Solution][Endpoint][Admin] Endpoint List UI update (#106568) 2021-08-11 13:16:54 -04:00
James Gowdy
6710a0643d
[ML] Job import/export calendar and filter warnings (#107416)
* [ML] Job import/export calendar and filter warnings

* fixing translation id

* adding export callout

* fixing translation id

* translation ids

* bug in global calendar check

* code clean up based on review

* updating text

* updatiung text

* updating apidoc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 18:13:48 +01:00
Byron Hulcher
0d55d30c97
[App Search] Migrate Crawl Schedule form (#108066) 2021-08-11 12:45:25 -04:00
Oliver Gupte
ae73cf8416
[APM] Displays callout when transaction events are used instead of aggregrated metrics (#108080)
* [APM] Displays callout when transaction events are used instead of aggregrated metrics (#107477)

* Apply suggestions from code review

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>

* PR feedback, and isolates the logic for getting the fallback strategy

* PR feedback

Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-08-11 12:11:29 -04:00
Ryland Herrick
947657118c
[Security Solution, Timelines] Replace more legacy elasticsearch types (#108087)
* Replace more legacy elasticsearch types

* Handle possibly undefined response fields

These are both number | undefined, so we default to 0 if we need a
value. Fixes the type errors resulting from the previous type changes.
2021-08-11 11:02:09 -05:00
Frank Hassanabad
6d2c1da2ba
[Security Solutions][Detection Engine] Adds exception lists to the saved object references when created or modified (part 1) (#107064)
## Summary

This is part 1 to addressing the issue seen here: https://github.com/elastic/kibana/issues/101975

This part 1 wires up our rules to be able to `inject` and `extract` parameters from the saved object references. Follow up part 2 (not included here) will do the saved object migrations of existing rules to have the saved object references.

The way the code is written it shouldn't interfere or blow up anything even though the existing rules have not been migrated since we do fallbacks and only log errors when we detect that the saved object references have not been migrated or have been deleted.

Therefore this PR should be migration friendly in that you will only see an occasional error as it serializes and deserializes a non migrated rule without object references but still work both ways. Non-migrated rules or rules with deleted saved object references will self correct during the serialization phase when you edit a rule and save out the modification. This should be migration bug friendly as well in case something does not work out with migrations, we can still have users edit an existing rule to correct the bug.

For manual testing, see the `README.md` in the folder. You should be able to create and modify existing rules and then see in their saved objects that they have `references` pointing to the top level exception list containers with this PR.

* Adds the new folder in `detection_engine/signals/saved_object_references` with all the code needed
* Adds a top level `README.md` about the functionality and tips for new programmers to add their own references 
* Adds a generic pattern for adding more saved object references within our rule set
* Adds ~40 unit tests
* Adds additional migration safe logic to de-couple this from required saved object migrations and hopefully helps mitigates any existing bugs within the stack or previous migration bugs a bit for us.

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-08-11 09:45:36 -06:00
Tiago Costa
dfaf54082a
chore(NA): moving @kbn/rule-data-utils to babel transpiler (#107573)
* chore(NA): moving @kbn/rule-data-utils to babel transpiler

* chore(NA): update imports

* chore(NA): targetted imports for apm

* chore(NA): fix imports

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 15:59:21 +01:00
David Sánchez
7a1448aa08
[Security Solution][Endpoint] Add new fleet PackagePolicy DELETE API extension point (#107507)
* Refactor - moved extension types to its own type file

* initial add of new extension point type

* Removes unused imports

* fix import order

* try to fix ts errors

* Add ts types for delete callback and register it. Also add packagePolicy to the delete response

* Use logger instead of console log

* Removes array check

* Try fix some types and added TODO's

* Fix ts errors and remove @ts-ignore 's

* Remove useless ts-ignore

* Remove useless todo

* Remove enforced assertion by checking externalCallbackType

Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 16:50:04 +02:00
Melissa Alvarez
2071b58494
[ML] Data Frame Analytics wizard: ensure cloning retains hyperparameters and results field is correct (#107811)
* ensure all hyperparameters are retained on clone

* ensure resultsField is set to default when switch enabled

* Add FeatureProcessor type

* ensure state persists for advanced fields when switching to form
2021-08-11 10:41:46 -04:00
Kyle Pollich
35f55ce262
[Fleet] Update Package Policy UI to Support Upgrading Package Policies (#107171)
* Remove description column, replace w/ tooltip

* Add upgrade tooltip to version column in package policy table

* Add update policy action

* Add inline upgrade package policy button

* Clean up types + add upgrade CTA's to integrations policy table

* Fix i18n

* Fix button widths

* Upgrade package policy when saving integration w/ upgrade param

* Update edit policy page description for upgrades

* Support setting vars on new package version before saving to upgrade

* Add flyout for JSON of previous policy version

* Compile package policy before displaying in flyout

* Support different success redirects following package policy upgrades

* Fix i18n

* Fix more type errors

* Fix even more type errors 🙃

* Fix type errors

* Don't throw errors for missing vars, include them in missingVars response object

* Update tests for new missingVars field

* Fix failing tests

* Address PR feedback

* Fix missing i18n value

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 10:32:41 -04:00
Søren Louv-Jansen
6054d7e352
[APM] Rename "Error rate" to "Failed transaction rate" (#107895) 2021-08-11 10:19:32 -04:00
Cauê Marcondes
96ddfe6f7e
[APM] Latency threshold incorrect value (#107963)
* fixing threshold

* removing console

* adding unit test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 09:20:59 -04:00
Jen Huang
77d7d1730b
[Fleet] Add owner to kibana.json (#108136) 2021-08-11 07:59:07 -04:00
Alexey Antonov
82bec98cd7
[Lens] Register all expression functions to the server (#107836)
Part of:  #97134

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 13:59:49 +03:00
Yara Tercero
cec5d3f27a
[RAC] - Update field names (#107857)
### Summary
### Fields used moving forward
`kibana.alert.rule.consumer` will refer to the context in which a rule instance is created. Rules created in:
- stack --> `alerts`
- security solution --> `siem`
- apm --> `apm`

`kibana.alert.rule.producer` will refer to the plugin that registered a rule type. Rules registered in:
- stack --> `alerts`
- security solution --> `siem`
- apm --> `apm`

So an `apm.error_rate` rule created in stack will have:
- consumer: `alerts` and producer: `apm`
 An `apm.error_rate` rule created in apm will have:
- consumer: `apm` and producer: `apm`

`kibana.alert.rule.rule_type_id` will refer to a rule's rule type id. Examples:
- `apm.error_rate`
- `siem.signals`
- `siem.threshold`

Also renamed the following because `rule.*` fields are meant to be ecs fields pulled from the source/event document, not refer to our rule fields.
`rule.name` --> `kibana.alert.rule.name` will refer to the rule's name.

`rule.category` --> `kibana.alert.rule.category` will refer to the rule's category.

`rule.id` --> `kibana.alert.rule.uuid` will refer to the rule's uuid.
2021-08-11 06:25:46 -04:00
Walter Rafelsberger
86c17daec2
[ML] APM Latency Correlations: Field/value candidates prioritization (#107370)
- Makes sure fields defined in `FIELDS_TO_ADD_AS_CANDIDATE` and prefixed with one of `FIELD_PREFIX_TO_ADD_AS_CANDIDATE` get queried first when retrieving the `correlation` and `ks-test` value.
- Correctly consider the `includeFrozen` parameter.
- The bulk of the PR is a refactor:
  - Moves `query_*` files to `queries` directory
  - Introduces `asyncSearchServiceStateProvider` to manage the state of the async search service in isolation so that we no longer mutate individual vars or plain objects.
  - Introduces `asyncSearchServiceLogProvider` and extends the log to not only store messages but original error messages retrieved from ES too.
  - Refactors some more functions in separate files and adds unit tests.
  - Removes some deprecated code no longer needed.
2021-08-11 10:46:35 +02:00
Tim Sullivan
a444d8a4ab
[Reporting] Add lenience to a test on the order of asserted logs (#108135) 2021-08-11 10:15:38 +02:00
Alexey Antonov
ee10819ef0
[Lens] fix do not submit invalid query in filtered metric (#107542)
* [Lens] Do not submit invalid query in filtered metric

Closes: #95611

* fix CI

* fix PR comments

* fix PR comments

* fix PR comment

* move closePopover to useCallback

* add filter validation to utils/isColumnInvalid

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 10:56:44 +03:00
spalger
65a5cb1476 fix newly introduced type error (#107593) 2021-08-10 22:37:06 -07:00
Tim Sullivan
e4e22ab928
[Reporting] server side code clean up (#106940)
* clean up the enqueue job function

* clean up the screenshots observable

* clean up authorized user pre routing

* clean up get_user

* fix download job response handlers

* clean up jobs query factory repetition

* clean up setup deps made available from plugin.ts

* update test for screenshots observable

* Revert "clean up setup deps made available from plugin.ts"

This reverts commit 91de680ebf.

* revert renames

* minor rename

* fix test after rename

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 22:34:42 -07:00
Spencer
c0395c9ef6
[build_ts_refs] improve caches, allow building a subset of projects (#107981)
* [build_ts_refs] improve caches, allow building a subset of projects

* cleanup project def script and update refs in type check script

* rename browser_bazel config to avoid kebab-case

* remove execInProjects() helper

* list references for tsconfig.types.json for api-extractor workload

* disable composite features of tsconfig.types.json for api-extractor

* set declaration: true to avoid weird debug error

* fix jest tests

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-10 22:12:45 -07:00
Cauê Marcondes
6ed4b4f70c
[APM] Add new ftr_e2e to kibana CI and remove current e2e tests. (#107593) 2021-08-10 23:40:20 -04:00
Sandra G
bfad9e354f
add manage rules link to alerts dropdown (#107950)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 21:03:14 -04:00
Quynh Nguyen
4df34e1188
[ML] Enable Index data visualizer document count chart to update time range query (#106438)
* Add brush listener

* Fix back button not working

* [ML] Remove api names in apidoc.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 20:33:55 -04:00
Frank Hassanabad
978c44e381
[Security Solutions][Detection Engine] Fixes "undefined" crash for author field by adding a migration for it (#107230)
## Summary

Fixes https://github.com/elastic/kibana/issues/106233

During an earlier upgrade/fix to our system to add defaults to our types, we overlooked the "author" field which wasn't part of the original rules. Users upgrading might get errors such as:

```
params invalid: Invalid value "undefined" supplied to "author"
```

This fixes that issue by adding a migration for the `author` field for `7.14.1`.

See https://github.com/elastic/kibana/issues/106233 for test instructions or manually remove your author field before upgrading your release and then upgrade and this should be fixed on upgrade.


### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-08-10 20:19:12 -04:00
Yuliia Naumenko
538a6d9288
[Actions UI] Fixed Jira Api token label. (#107776)
* [Actions UI] Fixed Jira Api token label.

* fixed tests

* fixed username

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 17:11:11 -07:00
Yuliia Naumenko
e89d069f09
[Alerting UI] Fixed display permissions for edit/delete buttons when user has read only access. (#107996)
* [Alerting UI] Fixed display permissions for Edit/delete buttons when user has read only access

* fixed due to comments
2021-08-10 17:10:49 -07:00
Constance
40766dcc08
Do not render page header for loading domains (#108078) 2021-08-10 18:01:39 -04:00
Søren Louv-Jansen
1c9edebf99
[APM] Display throughput as tps (instead of tpm) when bucket size < 60 seconds (#107850)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-10 23:31:41 +02:00