Commit graph

46333 commits

Author SHA1 Message Date
Kaarina Tungseth b546762668
[DOCS] Adds preview to runtime fields (#110327)
* [DOCS] Adds preview to runtime fields

* Final draft changes

* Review comments
2021-09-09 11:44:22 -05:00
ymao1 604a745de0
[Event Log][8.0] Set all event log index assets to hidden (#110929)
* Setting event log indices to hidden

* Cleaning up cluster client and adding unit tests

* Unit tests

* Unit tests

* Unit tests

* Unit tests

* PR feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 12:14:39 -04:00
Kuldeep M 7ae423c5bb
Workplace Search remove extraneous tooltip from Recent Activity table (#111709)
* remove extraneous tooltip

remove remove extraneous tooltip from Recent Activity table on the Source Overview page

* remove unused import

* rename trigger name to something more relevant
2021-09-09 17:09:29 +01:00
Stacey Gammon a7c3172285
add doc about git clean for working around ts issues (#111572)
* add doc about git clean for working around ts issues

* Update dev_docs/troubleshooting.mdx

Co-authored-by: Spencer <email@spalger.com>

* Update dev_docs/troubleshooting.mdx

Co-authored-by: Spencer <email@spalger.com>

* Update troubleshooting.mdx

Co-authored-by: Spencer <email@spalger.com>
2021-09-09 12:05:43 -04:00
Robert Oskamp 7f441b49b3
[ML] Functional tests - skip color assertions in cloud (#111695)
This PR skips color assertions during functional tests in cloud environments.
2021-09-09 11:58:58 -04:00
Kevin Qualters 930bc9c1e3
Use correct z-index for timeline global footer (#111492) 2021-09-09 11:55:57 -04:00
Lisa Cawley fdc7aac4aa
[DOCS] APM failed transaction correlations (#111219) 2021-09-09 08:28:05 -07:00
Marta Bondyra c6c4f52fc3
[Lens] comment redux logger (#111513)
* [Lens] comment redux logger

* Update x-pack/plugins/lens/public/state_management/index.ts

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

* Update x-pack/plugins/lens/public/state_management/index.ts

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 17:15:44 +02:00
Jonathan Budzenski 13f948d6d1
Remove unused dependencies (#109279)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 10:11:23 -05:00
Scotty Bollinger 86d61a4f6c
Fix a bug where users not populated (#111660)
In https://github.com/elastic/kibana/pull/109008, we fixed an issue where Role mappings were not populated on changes (adding/deleting). However, we did not apply the same fix for Users in the table under Role mappings. This PR does that.
2021-09-09 09:51:32 -05:00
Scotty Bollinger a045c8ab4a
Fix bug where flyout state was not reset (#111662)
This PR fixes a bug in both App Search and Workplace Search where the role mappings flyout state was not being cleared when updating a role mapping. The issue is that the state of the flyout is determined by the existence of a role mapping and this was not being cleared when the role mapping was saved.
2021-09-09 09:50:14 -05:00
Jonathan Budzenski 72dfb9c7e3 skip flaky suite, #109564 2021-09-09 09:29:27 -05:00
ymao1 334f129bcb
[Alerting] Fixing flaky tests (#111366)
* Unskipping test

* Retrying deletes

* Unskipping test

* Changing fn signature

* hmm

* Removing unnecessary code

* Unskipping test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 09:43:42 -04:00
Chris Cowan 36cec00c6d
[Metrics UI] Remove rounding from Metric Threshold start time (#111634)
* [Metrics UI] Remove rounding from Metric Threshold start time

* adding missed files
2021-09-09 07:20:33 -06:00
István Zoltán Szabó cac4957ef2
[APM] Changes link version to master in APM links. (#111685)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:10:12 +02:00
Thomas Watson 29142a6fb8
Fix audit log tests (#111706)
This ensures that the config object given to the `AuditService` setup
method is in fact the `xpack.security.audit.*` config options.
Previously the entire `xpack.security.*` config object would be passed
in.

The reason why this didn't fail the tests before was that both happen to
have a similarly named config option called `enabled`, which these tests
rely on.
2021-09-09 14:01:07 +01:00
Ahmad Bamieh b001830d58
[Deprecations service] Expose level field to config deprecations (#111516) 2021-09-09 08:59:44 -04:00
Yaroslav Kuznietsov 764256573a
[Canvas] SidebarContent refactor. (#111672)
* Refactored sidebar.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:56:46 +03:00
Dmitry Tomashevich 9792c1079e
[Discover] Fix pagination when applying filter (#110763)
* [Discover] fix pagination when applying filter

* [Discover] refactoring to forward ref usage

* [Discover] remove console log debug

* [Discover] hide pagination on empty result

* [Discover] add usePager test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:48:20 +03:00
Nicolas Chaulet a1a717862b
[Fleet] Fix config migration from ingestManager to support both xpack.fleet and xpack.ingestManager config values (#111612) 2021-09-09 08:39:18 -04:00
Angela Chuang dd69697517
[Security Solution] add timeline id to context (#111435)
* add timeline context

* remove an unused file
2021-09-09 07:44:52 -04:00
Dario Gieselaar c1697a1163
[APM] Use new path syntax in waterfall (#111689) 2021-09-09 06:40:07 -04:00
Yaroslav Kuznietsov 2c7d13b7b9
[Canvas] Expression types and Function form refactor. (#107516)
* Refactored `FormFunction` to ts.

* Converted components to ts and added types for expression_types.

* Fixed types and refactored `function_component`.

* Added types to base_form, function_form, transform, etc.

* Arg types added.

* Moved model to ts and fixed all types.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 11:37:18 +03:00
Pablo Machado db07147091
Fix focus jumps from Case description box back to Alerts table with first <return> keystroke (#111273)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 10:35:47 +02:00
juliaElastic ec461a223e
[Integrations] Fixed wording (#111519)
for integration upgrade
2021-09-09 08:47:36 +02:00
Dario Gieselaar 96bffbfaf8
[APM] Use full path in route definition (#111501) 2021-09-09 08:30:26 +02:00
Dzmitry Lemechko b324ca3115
[jest] update config files to get coverage per plugin (#111299)
* [jest] update config files to get coverage per plugin

* [docs] add details about plugin coverage collection

* fix path for newsfeed jest config

* fix lint error

* update documentation

* fix lint errors again

* update doc

* fix another lint error

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* [kibana_legacy] fix path

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 08:14:56 +02:00
Tim Sullivan c4c653606a
[Reporting] Remove any, improve telemetry schema for completeness (#111212)
* [Reporting] Remove `any`, improve telemetry schema for completeness

* remove another any

* rename file per exported function

* test variable name

* use variable for DRY

* update reporting telemetry contract

* added csv_searchsource_immediate to telemetry

* fix types

* update jest snapshots

* remove tests on large literal objects

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 16:39:42 -07:00
Tim Sullivan af06aec5b0
[Reporting] Remove encryption logic from export types (#111472)
* [Reporting] change CreateJobFn type to not handle KibanaRequest

* fix enqueueJob

* fix tests

* fix imports

* convert enqueue_job into a method of request_handler

* Update types.ts

* Update report.ts

* fix import

* update comment and structure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 16:39:28 -07:00
Jonathan Budzenski 543a7cbd7d
Bump geckodriver to 2.0.4 (#111605) 2021-09-08 17:30:23 -05:00
Stacey Gammon 98b7e99747
Clean up some of the API doc code (#111635)
* Clean up api doc infra

* updated docs

* Update api dics
2021-09-08 17:50:25 -04:00
Søren Louv-Jansen d3f6303014
[APM] Show badge for failed spans in waterfall (#109812)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2021-09-08 23:37:28 +02:00
Rudolf Meijering 5464af6923
legacy dashboards import/export API: deprecation logs and usage data (#111283)
* Move legacy dashboards API to core and adds usage data

* More legacy_export plugin removal

* Log a warning for deprecated dashboard import/export API

* Review comments
2021-09-08 16:15:52 -04:00
Jonathan Budzenski dda09b6b39
[docs/docker] Include server.shutdownTimeout in default configuration (#111468) 2021-09-08 15:04:12 -05:00
spalger 32e98730b5 skip flaky suite (#111628) 2021-09-08 12:56:46 -07:00
spalger b328fb3981 skip flaky suite (#108352) 2021-09-08 12:53:37 -07:00
Jonathan Budzenski f2c00fdd5a
[os/kibana.yml] Use new logger (#111192)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 14:43:34 -05:00
Jonathan Budzenski 97f9497269
[ci] Update list of storybooks to build (#111556) 2021-09-08 14:40:03 -05:00
Jonathan Budzenski d30f447dff
[yarn.lock] Dedupe browserslist (#111584) 2021-09-08 14:39:38 -05:00
Walter Rafelsberger 28af11a601
[ML] APM Correlations: Fix API integration tests. (#111532)
A bugfix for significant terms on the ES side resulted in changes to assertions we have for api integration tests for APM correlations. This PR updates the affected tests.
2021-09-08 21:33:16 +02:00
Cauê Marcondes 958adc57af
[APM] Bug with Transaction Latency Threshold rule (#111541) 2021-09-08 15:23:52 -04:00
Brian Seeders 3e1e90fd47
[CI] Disable running ES Snapshots pipelines in Jenkins for everything above 6.8 (#111554) 2021-09-08 14:47:08 -04:00
Brian Seeders 7971283bbe
[CI] Buildkite ES Snapshots Pipelines / attempt 2 (#111565) 2021-09-08 14:31:04 -04:00
Candace Park 05495a336b
[Security Solution][Endpoint][TrustedApps][EventFilters] Change add button color (#111218) 2021-09-08 12:22:07 -06:00
Byron Hulcher d03efa227b
Fix logic issues resulting from CrawlerLogic/CrawlerOverviewLogic split (#111564) 2021-09-08 14:13:09 -04:00
Matthias Wilhelm 284bc6663c
[Discover] Cleanup legacy code fragments (#110646) 2021-09-08 19:55:40 +02:00
Andrew Goldstein 99ee803459
[Security Solution] Enable schema-driven sorting descriptions in column headers (#111232)
## Summary

This PR resolves issue <https://github.com/elastic/kibana/issues/110041> reported by @snide to enable schema-driven sorting descriptions in column headers.

@chandlerprall recommends obtaining a **+1** from the Machine Learning and Observability solutions, because the fix updates an `i18n` constant in Kibana common to all consumers of `EuiDataGrid`.

## Details

Thanks @chandlerprall for paring on this!

The Alerts table, `Host > Events`, and other `EuiDataGrid`-based views in the Security Solution make use of the default [`EuiDataGrid` schemas](https://elastic.github.io/eui/#/tabular-content/data-grid-schemas-and-popovers).

The default schemas enable `EuiDataGrid` to automatically display, for example, `Old-New` and `New-Old` sorting descriptions for datetime fields, as opposed to generic `A-Z` and `Z-A` descriptions.

The following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` is expected to be rendered a `string` at runtime:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) =>
      i18n.translate('core.euiColumnActions.sort', {
        defaultMessage: 'Sort {schemaLabel}',
        values: { schemaLabel },
      }),
```

But the constant was rendered in `EuiDataGrid` column headers as `[object Object]` when schemas were enabled, as shown in the screenshot below:

![column-header-object-object](https://user-images.githubusercontent.com/4459398/132079843-a8b0f5e5-9d47-4816-8baa-e29577511bf1.png)

_Above: The `sortTextAsc/Desc` text was rendered as `[object Object]`_

The temporary workaround described by [#110041](https://github.com/elastic/kibana/issues/110041) ensured that `Sort A-Z` and `Sort Z-A` labels were always displayed (in lieu of `[object Object]`), as shown in the screenshot below:

![image](https://user-images.githubusercontent.com/324519/130789326-bfe67cae-e4f7-469a-9b57-320cbf733cc8.png)

_Above: `Sort A-Z` and `Sort Z-A` labels were always displayed as a workaround_

The fix in this PR updates the following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` to use a `FormattedMessage`:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) => (
      <FormattedMessage
        id="core.euiColumnActions.sort"
        defaultMessage="Sort {schemaLabel}"
        values={{ schemaLabel }}
      />
    ),
```

, which ensures a schema-specific sorting label is displayed as-expected.

It also removes the workaround, as shown in the animated gif below:

![after](https://user-images.githubusercontent.com/4459398/132080352-1ee41a7e-8884-45ad-ae3c-daa9a0127aac.gif)

_Above: Schema-specific sorting descriptions are displayed for `datetime`, `text`, and `numeric` column headers_
2021-09-08 11:54:39 -06:00
spalger 65bdbe71d0 Revert "[Canvas] SidebarContent refactor. (#110051)"
This reverts commit 6a958a5e83.
2021-09-08 10:34:17 -07:00
Shahzad 032810e46a
[Uptime] Added loading for certificates page on initial load (#111526) 2021-09-08 13:33:54 -04:00
Marco Liberati b36ffc98fc
[Lens] Fix Heatmap in dashboard with numeric color stops (#111117)
* 🐛 Fix heatmap numeric stops problem + tests

* 🏷️ Fix type issue

*  Add dashboard functional tests for this issue

*  Simplify functional test

*  fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 19:02:10 +02:00