Commit graph

44255 commits

Author SHA1 Message Date
gchaps d1b58d8d63
Update index.asciidoc (#104677) 2021-07-07 09:28:45 -07:00
Mikhail Shustov e01e682917
Add execution context service (#102039)
* add execution context service on the server-side

* integrate execution context service into http service

* add integration tests for execution context + http server

* update core code

* update integration tests

* update settings docs

* add execution context test plugin

* add a client-side test

* remove requestId from execution context

* add execution context service for the client side

* expose execution context service to plugins

* add execution context service for the server-side

* update http service

* update elasticsearch service

* move integration tests from http to execution_context service

* integrate in es client

* expose to plugins

* refactor functional tests

* remove x-opaque-id from create_cluster tests

* update test plugin package.json

* fix type errors in the test mocks

* fix elasticsearch service tests

* add escaping to support non-ascii symbols in description field

* improve test coverage

* update docs

* remove unnecessary import

* update docs

* Apply suggestions from code review

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

* address comments

* remove execution context cleanup

* add option to disable execution_context service on the server side

* put x-opaque-id test back

* put tests back

* add header size limitation to the server side as well

* fix integration tests

* address comments

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-07 17:46:35 +02:00
Scotty Bollinger 979c6e8031
[Workplace Search] Refactor OAuth permissions modal to be a conditional heading (#104323)
* Rename constants

* Refactor to use alternate heading instead of modal

* Fix i18n order

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 10:09:55 -05:00
Sergi Massaneda 1c0dbea7ae
[Security] Add description component key (#104603)
* detections empty timelines crash patch

* cleaning unnecesary key

* bring description key back to force rerender
2021-07-07 16:46:51 +02:00
Janeen Mikell-Straughn 9aa3280c86
[DOCS] Elastic Sec Overview (Fixing Image) (#104529)
Co-authored-by: lcawl <lcawley@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 09:58:09 -04:00
Anton Dosov 44d4d2398b
[Index Patterns] Use deprecation api for scripted fields (#100781) 2021-07-07 15:29:29 +02:00
Stratoula Kalafateli 186b936fbb
[VisTypePie] Fixes color migrations of pie charts (#104373)
* [Pie] fix color migrations of pie charts

* Fix color picker

* Fix functional test

* revert

* Apply PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 16:19:56 +03:00
Nathan L Smith 24afb1a52d
Fix comparison breakpoint (#104560)
It was overlapping the navigation.

Fixes #103881.
2021-07-07 08:02:10 -05:00
Scotty Bollinger 874882ead8
[Workplace Search] Fix bug where error was behind modal stuck in loading state (#104360)
* Fix an issue from previous PR

In https://github.com/elastic/kibana/pull/104024, the error handling incorrectly used the `message` property on the response, when it should have been the attributes.errors array.

* Use inline error for duplicate name
2021-07-07 09:42:21 -03:00
Scotty Bollinger 5baff65863
[Workplace Search] Fix a couple of Source Display settings bugs (#104355)
* Remove `exact` prop on route

This was preventing the rendering of the subroute. Not sure why it was working before

* Replace `EuiFlexGrid` with `EuiFlexGroup`

Again, not sure why this was chosen, but although the EuiFlexGrid component renders fine in the standalone UI, it does not look correct in Kibana. EuiFlexGroup seems to render as intended.
2021-07-07 09:39:40 -03:00
Alejandro Fernández Gómez f729d4a8ab
[Fleet] Fix fn call (#104608) 2021-07-07 08:27:26 -04:00
renovate[bot] 2138c0e33d
Update dependency @elastic/charts to v31.1.0 (#104455)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-07 14:09:21 +02:00
Jonathan Budzenski 02b05c97cb
[docs] Update default memory limit (#104535)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-07-07 13:13:43 +02:00
Joe Reuter a72d0192cb
improve debounce behavior (#104421) 2021-07-07 11:41:12 +02:00
Alejandro Fernández Gómez f5c4a05701
[Fleet][Logs UI] Ensure the <LogStream /> component reacts to query changes (#103876)
* Ensure the <LogStream /> component reacts to query changes

* Remove unused import
2021-07-07 11:37:01 +02:00
Joe Reuter 1f06898beb
[Lens] Fix state setting via mutation (#104420) 2021-07-07 11:28:30 +02:00
Thomas Neirynck f9f5cf2249
[Maps] fix import (#104518) 2021-07-07 10:58:09 +02:00
Alejandro Fernández Gómez 40d2b2b61c
[Fleet] Fix miscelaneous bugs in the fleet setup page (#104479) 2021-07-07 10:30:30 +02:00
Thom Heymann 689173f0aa
Upgrade prismjs (#104131)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 09:19:15 +01:00
Thom Heymann acf1ff1c7b
Upgrade nodemailer (#104122)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-07 09:18:53 +01:00
James Gowdy 85f831bb16
[ML] Adding tests for ML's field caps endpoint (#104315)
* [ML] Adding tests for ML's field caps endpoint

* fixing typos
2021-07-07 09:01:30 +01:00
James Gowdy d0986c2eee
[ML] Removing broken data recognizer test (#104387) 2021-07-07 09:00:38 +01:00
Tiago Costa 8b0fc7843f
chore(NA): remove legacy dev dep on @kbn/test from xpack package.json (#104476) 2021-07-07 02:22:22 +01:00
Frank Hassanabad bc20a9eaa8
Removes older configuration that is no longer in use, removes un-used configuration keys (#104540)
## Summary

* Removes `kibana.yml` (configuration) keys that are not in use 
* Removes an older configuration schema file from before the merge of endpoint with security solutions

Unused schema file was:
```
server/endpoint/config.ts
```

Unused keys removed:

```
xpack.securitySolution.alertResultListDefaultDateRange
xpack.securitySolution.validateArtifactDownloads
```

### 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-07-06 18:07:58 -04:00
Spencer 99b9a2bc5e
[apm-config-loader] refactor config loading (#104197)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-06 18:00:20 -04:00
Patryk Kopyciński b17ad5d316
[Osquery] Fix issue with plugin initialization (#100208) 2021-07-06 17:59:40 -04:00
Michael Olorunnisola 7d51136523
[Security Solution] - Fix flyout pane z index (#104465) 2021-07-06 17:52:29 -04:00
Pablo Machado 52c7824bff
Fix long data for investigation not truncate on the rule details page (#104428)
Author: Pablo Machado <machadoum@gmail.com>
Co-authored-by: Pablo Machado <machadoum@gmail.com>
2021-07-07 00:04:57 +03:00
Nathan L Smith aae6ae47ea
Remove schema heading from schema settings (#104520)
Also add a story.

Fixes #103753.
2021-07-06 15:58:13 -05:00
Kyle Pollich 4da6c4f93d
[Integrations UI] Fix missing agent flyout on package policy page (#104493)
* Fix missing agent flyout on package policy page

Handle query string changes if user clicks "add agent" link in toast
content while still on the package policy listing page.

Closes #103266

* Unbind history listener in useEffect
2021-07-06 16:47:12 -04:00
Spencer 1d993b6f26
[kbn/optimizer] maintain bundle ref support when using --filter (#104512)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-06 13:45:55 -07:00
Jonathan Budzenski 90d6b223a6
[target/windows] Fix KBN_PATH_CONF expansion in bin/*.bat (#104517)
When setting the environment variable KBN_PATH_CONF in Windows, paths
containing special characters will be expanded and interpreted, instead
of being treated as a string.  This wraps `%KBN_PATH_CONF%` in quotes to
prevent this.

Testing:
1) set "KBN_PATH_CONF=C:\With space\special()%$characters\kibana\config"
2) bin\kibana*.bat should run
2021-07-06 14:58:43 -05:00
Sandra Gonzales 08257f1f93
[Monitoring] update SM rule template variables (#104176)
* continue to support shardIndices template variable

* add unit test for large shard size alert

* change template variables in CCR rule

* add CCR rule unit test

* fix internationalization

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-06 15:11:01 -04:00
Tim Sullivan b794e7b7ca
[Reporting] Add warning logs about CSV export type being deprecated (#104025)
* add deprecation logging to csv export type

* fix payload.isDeprecated

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-06 12:01:27 -07:00
Frank Hassanabad dcd84ea81a
Fixes indeterminism with the cy.intercept by moving it upwards above the clicks (#104501)
## Summary

Fixes indeterminism with cypress by moving the `cy.intercept('PATCH', '/api/timeline').as('updateTimeline');` above where the click is happening.

Backport to 7.14.0 to hopefully stabilize it better as well.

You can make the indeterminism deterministic by adding (for testing only), a `cy.wait(5000)` like so:

```ts
// Keep clicking on the disable all button until the first element of all the elements are no longer checked.
// In cases where the click handler is not present on the page just yet, this will cause the button to be clicked
// multiple times until it sees that the click took effect. You could go through the whole list but I just check
// for the first to be unchecked and then assume the click was successful
cy.root()
  .pipe(($el) => {
    $el.find(TIMELINE_ROW_RENDERERS_DISABLE_ALL_BTN).trigger('click');
    return $el.find(TIMELINE_ROW_RENDERERS_MODAL_ITEMS_CHECKBOX).first();
  })
  .should('not.be.checked');
 cy.wait(5000); // <--- Temp addition for testing to ensure our intercept works above this. If the intercept is below this then we see the same indetermism behavior but deterministically.
``` 

### 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-07-06 14:47:55 -04:00
Brian Seeders 194a8a87a8
[Docs] Add a tutorial for how to open a pull request (#103697) 2021-07-06 14:35:00 -04:00
Melissa Alvarez ebc103f619
[ML] Data Frame Analytics creation: ensure included fields selection table is shown when no docs contain all mapped fields (#104191)
* use indexPatternFields if explain error due to missing values in docs

* fix types
2021-07-06 13:43:55 -04:00
Angela Chuang d5ca242098
fix links for rule monitoring table (#104473) 2021-07-06 18:22:51 +01:00
Angela Chuang 8564b3af0f
[Security Solution] Remove total count for events table on hosts and details page (#104114)
* remove total count for events table on hosts and details page

* hide events count when analyzing an event

* fix unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-06 18:17:27 +01:00
Michael Olorunnisola 71ad073d67
[Security Solution][Analyze Event] Fix resolver range slider (#104475) 2021-07-06 13:17:07 -04:00
Xavier Mouligneau cf9e88c7d7
[RAC] ALerts table in observability (#103270)
Closes #98611

## Summary

Add alerts table in Observability => 

![image](https://user-images.githubusercontent.com/189600/123854490-c68ddf00-d8ec-11eb-897e-2217249d5fba.png)


### Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

| Risk                      | Probability | Severity | Mitigation/Notes        |
|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces&mdash;unexpected behavior in non-default Kibana Space. | Low | High | Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces. |
| Multiple nodes&mdash;Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. | High | Low | Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure. |
| Code should gracefully handle cases when feature X or plugin Y are disabled. | Medium | High | Unit tests will verify that any feature flag or plugin combination still results in our service operational. |
| [See more potential risk examples](https://github.com/elastic/kibana/blob/master/RISK_MATRIX.mdx) |


### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2021-07-06 10:28:21 -06:00
Domenico Andreoli 5b49380787
CCS Cypress integration (#103941)
* Add CCS Cypress test runner

* Split flow for CCS Cypress tests

* Make esArchiver load data onto the remote cluster

* Add CCS specific rules with customizable remote name

* Allow overriding @kbn/dev-utils's CA_CERT_PATH

* Add CCS related docs

Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
2021-07-06 09:20:54 -07:00
Dima Arnautov 901ad6391a
[Transform] Fix aggregation name override for the top_metrics aggs (#104446)
* [Transform] Fix aggName for the top_metrics agg

* [Transform] update comment
2021-07-06 11:39:13 -04:00
David Sánchez 763ba305d4
[Security Solution][Endpoint] Event filters text adjustments to be consistent with trusted apps (#104438)
* Text adjustments to be consistent with trusted apps

* Changes flyout submit button text
2021-07-06 17:38:14 +02:00
Lisa Cawley 3d2c2ed1ca
[DOCS] Fixes links to anomaly detection overview (#104350) 2021-07-06 08:27:38 -07:00
Corey Robertson 694f8caeb3
[Canvas] Move away from lib/workpad_service (#104183)
* Move away from lib/workpad_service

* Adds stubs

* Fix types. Swap fetching zip to workpad service

* Fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-06 11:25:34 -04:00
Kyle Pollich eb57dd4a7e
[Fleet] Update "Policies" breadcrumb to "Agent Policies" (#104436)
* Update Policies breadcrumb to Agent Policies

Closes #103447

* Convert tab titles + breadcrumbs to sentence case
2021-07-06 11:05:26 -04:00
Sergi Massaneda 1bc2d9e89a
[Security Solutions] Detect navigation crash fix (#104329)
* detections empty timelines crash patch

* cleaning unnecesary key
2021-07-06 17:01:07 +02:00
Tiago Costa 87971e74e1
skip failing es promotion suite (#104469) 2021-07-06 15:39:08 +01:00
Tiago Costa c72ad3edcb
skip failing es promotion suite (#104467) 2021-07-06 15:34:40 +01:00