Commit graph

53932 commits

Author SHA1 Message Date
Tiago Costa
1ee0e0a65e
chore(NA): revert bazel upgrade for v5.2.0 (#135096) 2022-06-24 03:57:21 +01:00
Tiago Costa
d5073055fe
docs(NA): breaking up packages into small pieces (#135027)
* docs(NA): update wording around embracing the monorepo

* docs(NA): best practises around breaking up packages

* Update best_practices.mdx

Co-authored-by: Spencer <email@spalger.com>
2022-06-24 03:18:27 +01:00
Rashmi Kulkarni
f75976fea6
a11y tests for watcher. Minimal in scope. (#135046)
* a11y watcher wip

* modified the tests

* addressed the nits
2022-06-23 18:50:40 -07:00
Jonathan Budzenski
8a3975a410 skip flaky suite. #135089 2022-06-23 17:04:13 -05:00
John Dorlus
a92f79c511
Rollup Job a11y Tests (#134975) 2022-06-23 17:44:23 -04:00
Lisa Cawley
61b2fdecf9
[DOCS] Add index connector actions to run connector API (#134538) 2022-06-23 14:13:26 -07:00
Lukas Olson
4db96c5f26
[Data views] Generate ID if non-persisted (#134780)
* [Data views] Generate ID if non-persisted

* Use version to infer isPersisted

* Fix create test
2022-06-23 13:52:33 -07:00
Brandon Morelli
48db1ec0f0
docs: add advanced options (#134960) 2022-06-23 13:08:51 -07:00
Alexey Antonov
691d4b68bd
[XY] Wrong visType for horizontal_bar visualizaiton (#135013) 2022-06-23 22:54:48 +03:00
Alison Goryachev
0dd2c35d18
[Guided onboarding] Observability tour (#133909) 2022-06-23 15:46:41 -04:00
Joey F. Poon
aeab163530
[Security Solution] response actions - enhance ActionDetail interface (#134966)
* add new properties
  * comment
  * parameters
  * createdBy
* remove logEntries property
2022-06-23 12:32:38 -07:00
Christiane (Tina) Heiligers
f68999d631
Create packages for browser-side fatalErrors service (#134962) 2022-06-23 12:29:44 -07:00
Joey F. Poon
acfd0517a2
[Security Solution] response action entity_id number -> string (#135037) 2022-06-23 12:28:03 -07:00
Spencer
61b5349d95
[SUPT] fix apm reporting (#135071) 2022-06-23 12:10:57 -07:00
Emilio Alvarez Piñeiro
705e516701
Fix Client Metrics e2e user (#135056) 2022-06-23 20:26:52 +02:00
Faisal Kanout
6aa6a50e30
[Actionable Observability] - Rule Details Page - Update tag component to show tags out of the popover as an option (#134468)
* Add spread prop to tag

* Use spread prop in Rule Details page

* Add unit test for spread prop

* Update tag props type

* Fix type guard

* use generic type to make code cleaner

* Updating var name

* Update data test obj

* [Code Review] Fix lazy import

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2022-06-23 11:50:08 -06:00
Dominique Clarke
5989f1df49
synthetics - adjust enabled key for browser monitors (#135017) 2022-06-23 13:47:22 -04:00
Lisa Cawley
c6768782f3
[DOCS] Edits OAuth instructions in ServiceNow connector docs (#134970) 2022-06-23 10:25:49 -07:00
Gloria Hornero
051dfe77f2
[Security Solution] Skips Auto refreshes rules failing test to unblock main (#135059) 2022-06-23 10:24:58 -07:00
Baturalp Gurdin
64771d921f
correct apm server url (#135054) 2022-06-23 10:03:31 -07:00
Giorgos Bamparopoulos
76e2d0fe62
[APM] Add OpenTelemetry instructions to APM tutorial (#134451)
* Add config settings for OpenTelemetry to the APM tutorial

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
2022-06-23 09:53:58 -07:00
Yaroslav Kuznietsov
a3c719d958
[Canvas] Fixes Canvas filter behaviour on table. (#134801)
* Fixed the problem with picking the absent page on filter change.

* Fixed weird behavior after the empty table.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-23 19:49:48 +03:00
Giorgos Bamparopoulos
df786126a4
[APM]] Fix broken link to APM (#134665)
* Fix broken link to APM traces
2022-06-23 09:19:08 -07:00
Sander Philipse
d00387e7b4
Add connector service package option to Content plugin (#135029) 2022-06-23 09:01:18 -07:00
Andrew Goldstein
2e844f0c24
[Security Solution] Fixes: Queries with nested field types fail open with failed to create query: [nested] failed to find nested object under path [threat.enrichments] errors for indexes where the nested fields are unmapped (#134866)
## [Security Solution] Fixes: Queries with `nested` field types fail open with `failed to create query: [nested] failed to find nested object under path [threat.enrichments]` errors for indexes where the nested fields are unmapped

This PR implements a fix for <https://github.com/elastic/kibana/issues/130340>, where queries with [nested](https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html) field types failed open with `failed to create query: [nested] failed to find nested object under path [threat.enrichments]` errors for indexes where the nested fields are unmapped.

The fix uses the new `nestedIgnoreUnmapped` option to the `buildEsQuery` API introduced in <https://github.com/elastic/kibana/pull/134580> as a fix for issue <https://github.com/elastic/kibana/issues/130348>.

Please see <https://github.com/elastic/kibana/issues/130340> for a deep dive on the issue being fixed.

### Before

 Before this fix, Timeline queries that used the `nested` query syntax in requests did NOT contain the `ignore_unmapped` option, per the example request below:

```json
                      "nested": {
                        "path": "threat.enrichments",
                        "query": {
                          "bool": {
                            "should": [
                              {
                                "match": {
                                  "threat.enrichments.matched.atomic": "a4f87cbcd2a4241da77b6bf0c5d9e8553fec991f"
                                }
                              }
                            ],
                            "minimum_should_match": 1
                          }
                        },
                        "score_mode": "none"
                      }
```

_Above: Timeline requests for fields with the `nested` query syntax did NOT contain the `ignore_unmapped` option (when inspected)_

When indexes where the nested fields were unmapped were searched:

- Elasticsearch returned a `200` status code
- The response from Elasticsearch included shard failures, per the example response below:

```json
  "_shards": {
    "total": 5,
    "successful": 3,
    "skipped": 0,
    "failed": 2,
    "failures": [
      {
        "shard": 0,
        "index": ".ds-logs-endpoint.events.process-default-2022.06.13-000001",
        "node": "3nAChOVOQKy92bhuDztcgA",
        "reason": {
          "type": "query_shard_exception",
          "reason": "failed to create query: [nested] failed to find nested object under path [threat.enrichments]",
```

_Above: Timeline responses contained shard failures (when inspected)_

### After

 After this fix, Timeline queries that use the `nested` syntax in requests contain the `"ignore_unmapped": true` option, per the example request below:

```json
                      "nested": {
                        "path": "threat.enrichments",
                        "query": {
                          "bool": {
                            "should": [
                              {
                                "match": {
                                  "threat.enrichments.matched.atomic": "a4f87cbcd2a4241da77b6bf0c5d9e8553fec991f"
                                }
                              }
                            ],
                            "minimum_should_match": 1
                          }
                        },
                        "score_mode": "none",
                        "ignore_unmapped": true
                      }
```

_Above: Timeline requests with the `nested` query syntax `"ignore_unmapped": true` option (when inspected)_

When indexes where the nested fields were unmapped are searched:

- Elasticsearch (still) returs a `200` status code
- The response from Elasticsearch does NOT include shard failures, per the example response below:

```json
  "_shards": {
    "total": 5,
    "successful": 5,
    "skipped": 0,
    "failed": 0
  },
```

### A tail of two `convertToBuildEsQuery` functions

While fixing this PR, it was noted that there are two different implementations of the `convertToBuildEsQuery` function in:

- `x-pack/plugins/security_solution/public/common/lib/keury/index.ts`
- `x-pack/plugins/timelines/public/components/utils/keury/index.ts`

The implementations of these functions are not the same. Specifically, the return type of the former implementation is:

```ts
[string, undefined] | [undefined, Error]
```

and the latter is just:

```ts
string
```

- This PR reduces the implementations of `convertToBuildEsQuery` down to a single function exported by the `timelines` plugin in `x-pack/plugins/timelines/public/components/utils/keury/index.ts`

- To minimize the scope of the changes in this PR, the previous Security Solution implementation in `x-pack/plugins/security_solution/public/common/lib/keury/index.ts` re-exports the new `timelines` implementation.

### Desk testing

See the _Reproduction steps_ section of <https://github.com/elastic/kibana/issues/130340> for details
2022-06-23 09:44:06 -06:00
Lisa Cawley
74df8c1736
[DOCS] Add jira connector details to run connector API (#134622) 2022-06-23 08:25:10 -07:00
Sander Philipse
9d435e23c6
[Enterprise Search] Remove doc links for unreleased connectors (#135018) 2022-06-23 17:15:12 +02:00
Jan Monschke
58ba0b8861
[SecuritySolution] Migrate (some) timlines tests to testing-library (#134688)
* test: migrate some tests to testing-library

* test: re-add some data-test-sub attributes

* test: re-add some more data-test-subj attributes

* test: test: migrate some more tests to testing-library

* test: update snapshots
2022-06-23 10:10:51 -05:00
Tre
85dc5b3578
[QA][Code Coverage] Add meta data links ci runs. (#134731)
* [QA][Code Coverage] Add a link to discover pinned to the current build.

When personnel other than myself wish to visually verify code coverage,
this link will be available in the ci output.

* Drop single quotes.

* Add annotation per J Budz.

* Fixup text.

* Drop debug.
2022-06-23 16:00:48 +01:00
Kyle Pollich
7fb3931bb1
Remove beta messaging from Logstash output flyout (#135028) 2022-06-23 08:00:08 -07:00
Julia Bardi
d61253aa0e
limit agent list total count to 10k (#135026) 2022-06-23 07:58:23 -07:00
Mark Hopkin
69caa311bb
[Fleet] Download Elastic GPG key during build (#134861)
* add build step to download gpg key

* add gpg path to config

* add getGpgKey method

* getGpgKey reads config directly

* improve logging

* return undefined on error

* log error code instead of msg

* perform checksum check on GPG key

* fail build if GPG key download fails
2022-06-23 15:51:59 +01:00
Pete Hampton
31db97850d
[Telemetry] Allow message field though. (#134901) 2022-06-23 08:38:29 -06:00
Philippe Oberti
8638f12f4f
Fix small typos in the root md files (#134609)
* FAQ.md
* STYLEGUIDE.mdx
* TYPESCRIPT.md
2022-06-23 09:36:11 -05:00
Jiawei Wu
761850e1e8
Fix tag filter button with incorrect styles (#133454)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-23 07:33:53 -07:00
Uladzislau Lasitsa
8fa2608172
[XY] Add axes support (#129476)
* Added `axes` support

* Refactoring auto-assignment logic

* Fixed reference line position

* Fixed bug with auto-assignment.

* Fixed snapshots

* Fixed behavior of the horizontal reference lines.

Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
2022-06-23 17:09:46 +03:00
Dario Gieselaar
ec3e3b27c6
[APM] Backend operation distribution chart (#134561)
* [APM] Backend operation distribution chart

Closes #133483.

* Update labels

* Take sampleRangeFrom/To into account for span operations table

* Remove console.log statements

* Review feedback

* Add event.outcome and truncated trace id to table

* [CI] Auto-commit changed files from 'node scripts/eslint --no-cache --fix'

* Update API tests

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-06-23 15:49:53 +02:00
Nathan Reese
501927443a
fix onDataLoadEnd and onDataLoadError event handler callbacks only called for source data requests (#134786)
* fix onDataLoadEnd and onDataLoadError event handler callbacks only called for source data requests

* dataLoadEnd

Co-authored-by: Liza Katz <liza.katz@elastic.co>
2022-06-23 06:59:51 -06:00
Byron Hulcher
be71c903b9
[Workplace Search] Hide integration tiles for service not launching with 8.3.0 (#134931) 2022-06-23 13:48:41 +02:00
James Gowdy
ad10bf1334
[ML] Fix put job endpoint when payload contains datafeed (#134986)
* [ML] Fix put job endpoint when payload contains datafeed

* adding tests
2022-06-23 12:35:44 +01:00
Sander Philipse
8e1feb327a
[Enterprise Search]Add util function to create Kea logic files for API calls (#134932)
* [Enterprise Search]Add util function to create Kea logic files for API calls

* Fixed unit tests for add custom source logic

* Make Status an enum, add tests, move flash messages

* Fix some more tests
2022-06-23 13:33:39 +02:00
Paul Power
bee025b3c0
Changed a minor error - "to to" to "to" (#126760)
A minor change, not urgent/important

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-06-23 07:21:30 -04:00
Jonathan Buttner
c82788c4bb
Fixing bug and writing tests (#134945) 2022-06-23 07:19:13 -04:00
Mat Schaffer
ecc1ec993d
[Stack Monitoring] Remove unexpected docs from persistentMetricsetsQuery portion of health API response (#134976) 2022-06-23 12:03:42 +02:00
Dmitry Tomashevich
88c25a9373
[Discover] Cleanup uses of legacy table in functional tests (#134638)
* [Discover] extract doc table tests into a new folder

* [Discover] switch to data grid

* [Discover] apply suggestions

* [Discover] adapt scripted fields tests for data grid

* [Discover] apply suggestions

* [Discover] apply for another part
2022-06-23 12:54:28 +03:00
Mat Schaffer
db728b12a3
Ensure monitoring indices get cleaned during tests (#134978) 2022-06-23 11:47:25 +02:00
Liza Katz
8133605b89
[EBT] Enrich kibana loaded with timings (#134770)
* Add timings to kibana loaded event

* jest

* PR failures

* code review

* docs

* add first_app_nav and first_app

* tests

* [CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'

* Update src/core/public/core_system.ts

Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>

* Update src/core/public/core_system.ts

Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>

* review @afjaro

* typo

* KBN_LOAD_MARKS

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
2022-06-23 12:46:07 +03:00
Julia Bardi
ca532310f2
[Fleet] fix missing fleet server policy from enroll command (#134980) 2022-06-23 01:51:12 -07:00
Walter Rafelsberger
adbd6a5fb8
[ML] @kbn/ml-agg-utils, @kbn/ml-is-populated-object, @kbn/ml-string-hash packages. (#132963)
Moves some ML utility code to packages.

- @kbn/ml-agg-utils contains multiple utilities used in combination related to building aggregations.
- @kbn/ml-is-populated-object contains the isPopulatedObject() utility function used across several plugins.
- @kbn/ml-string-hash contains the stringHash() utility function used across several plugins.
2022-06-23 10:38:23 +02:00
Shahzad
0ee2ae074e
[Synthetics] Monitor details panel (#134814)
Co-authored-by: Abdul Zahid <awahab07@yahoo.com>
2022-06-23 10:34:29 +02:00