* 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>
* [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
* 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>
* [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>
* 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>
* 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>
* 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>
* 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
* [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>
* 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
* [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>
* [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>
* 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.