Commit graph

45229 commits

Author SHA1 Message Date
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
Mikhail Shustov
3950c436a7
Add execution context data to discover, vega and timelion (#108016)
* propagate exression context with vega fn

* add execution context for discover searches

* propagate execution context for timelion

* update descriptions
2021-08-12 17:03:58 +02:00
Sébastien Loix
338f7c5d7f
[Monaco editor]: Fix accessibility focus trap issue (#107292) 2021-08-12 11:00:29 -04:00
Justin Kambic
da67b7eac3
Include additional functional test dirs in uptime CODEOWNERS entries. (#108368) 2021-08-12 10:40:21 -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
Stratoula Kalafateli
2ebdf3e629
[TSVB] Adds a color picker in percentiles and percentiles rank aggs (#107390)
* WIP - Improve the way that percentiles are rendered in TSVB

* Adds color picker to percentile and percentile ranks

* initialize color

* Be backwards compatible

* Fixes unit tests

* Add a unit test for percentile rank

* Fix unit tests

* Address PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-12 14:53:00 +03: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
Lukas Olson
a2347b2d77
Add scoring support to KQL (#103727)
* Add ability to generate KQL filters in the "must" clause
Also defaults search source to generate filters in the must clause if _score is one of the sort fields

* Update docs

* Review feedback

* Fix tests

* update tests

* Fix merge error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-11 21:45:01 -07:00
Tiago Costa
7860c2aac3
chore(NA): moving @kbn/crypto to babel transpiler (#108189)
* chore(NA): moving @kbn/crypto to babel transpiler

* chore(NA): update configs
2021-08-12 03:09:50 +01: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
Spencer
73e7db5ead
[scripts/type_check] don't fail if --project is a composite project (#108249)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-11 15:32:28 -07: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
Spencer
c39c1292eb
[build-ts-refs] normalize paths before writing them to the FS (#108246)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-11 16:08:10 -04: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
Spencer
f236286b62
[kbn/es-archiver] fix flaky test (#108143)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-08-11 11:51:48 -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
Alejandro Fernández Haro
def97bd734
[Status UI] Use the new output format of API GET /api/status (#107937) 2021-08-11 16:56:23 +01:00