Commit graph

4395 commits

Author SHA1 Message Date
Tre 33b501c5c7
[Archive Migration] xpack..saved_objects_management/spaces_integration (#113047) 2021-10-01 16:51:15 +01:00
Xavier Mouligneau 3b958e76aa
[Security Solution] Top-level Cases feature under the Security (#112980)
* add the new top cases feature in security

* fix api intyegration and cypress

* fix api integration

* fix cypress roles test

* missing api integration

* review Joe

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 20:18:25 -04:00
Rashmi Kulkarni de8bb8f7d8
trying to fix the skipped test - infra-home-page test (#113484)
* trying to fix the unskipped test

* remove .only and comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 12:49:01 -07:00
Jonathan Budzenski 6ad596f402 skipy flaky test. #112749 2021-09-30 12:24:19 -05:00
Quynh Nguyen 747212ce45
[ML] Add KQL filter bar, filtering functionality, and compact design to Index data visualizer (#112870)
* [ML] Initial embed

* [ML] Initial embed props

* [ML] Add top nav link to data viz

* Add visible fields

* Add add data service to register links

* Renames, refactor, use constants

* Renames, refactor, use constants

* Update tests and mocks

* Embeddable

* Update hook to update upon time udpate

* Add filter support to query

* Refactor filter utilities

* Add filter support for embeddable

* Fix saved search data undefined

* Prototype aggregated view/document view switcher

* Prototype flyout

* Prototype save document view option in storage

* Fix filter and query conflict with saved search

* Minor styling edits

* [ML] Update functional tests to reflect new arrow icons

* [ML] Add filter buttons and KQL bars

* [ML] Update filter bar onChange behavior

* [ML] Update top values filter onChange behavior

* [ML] Update search filters when opening saved search

* [ML] Clean up

* [ML] Remove fit content for height

* [ML] Fix boolean legend

* [ML] Fix header section when browser width is small to large and when index pattern title is too large

* [ML] Hide expander icon when dimension is xs or s & css fixes

* [ML] Delete embeddables because they are not use

* [ML] Make doc count 0 for empty fields, update t/f test

* [ML] Add unit testing for search utils

* [ML] No need to - padding

* [ML] Fix expand all/collapse all behavior to override individual setting

* [ML] Fix functional tests should be 0/0%

* [ML] Fix docs content spacing, rename classnames, add filters to Discover, lens, and maps

* [ML] Fix icon styling to match Discover but have text/keyword/histogram

* [ML] Fix filters not persisting after page refresh & on query change

* [ML] Rename classnames to BEM style

* [ML] Fix doc count for fields that exists but have no stats

* [ML] Clean up unused styles

* [ML] Fix eui var & icon & file geo

* [ML] Fix navigating to Lens from new saved search broken

* [ML] Change types back to Index pattern for 7.16

* [ML] Update not in docs content and snapshots

* [ML] Fix Lens and indexRefName

* [ML] Fix field icon and texts not aligned, remove span because EuiToolTip now supports EuiToken

* [ML] Fix data view
2021-09-30 11:37:56 -05:00
Ashokaditya 530408c2f5
[Security Solution][Endpoint] Action and responses data generators for .logs-endpoint.action* data streams (#113403) 2021-09-30 15:51:07 +02:00
Chris Roberson fb2ee109b8
[Actions] Better enqueue test (#112434)
* Try and add logging here

* Fix linting

* Only this test

* Better logging

* More debugging

* More debug

* Try something different

* Better way to do the test

* Get this PR ready

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-30 08:55:36 -04:00
Tiago Costa 2548f9b323
skip flaky suite (#113496) 2021-09-30 13:17:57 +01:00
spalger 9c00debcd5 skip failing suite (#113486) 2021-09-30 00:26:06 +00:00
ymao1 3eb93a84f5
[Alerting] Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout·ts - Actions and Triggers app create alert should show save confirmation before creating alert with no actions (#112888)
* Adding delay

* Splitting tests

* Fixing tests

* Reverting change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-29 16:56:55 -04:00
mgiota 72097aed00
[RAC][Observability]: test cases for alerts pagination functional tests (#112617)
* [RAC][Observability]: test cases for alerts pagination functional tests

* page size selector tests

* create OPEN_ALERTS_ROWS_COUNT in workdlow status tests

* add tests to check if page selector is rendered or not

* reorganize tests to visible and non visible pagination controls

* default rows per page test

* page size selector tests

* more page selector tests

* write tests for pagination controls

* move pagination tests to a new file

* remove unused variables

* reorganize observability alerts service

* undo configuration change

* fix workflow status tests after refactoring

* clean up

* pr review comments

* change variable name

* rewording pagination tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-29 15:31:04 -04:00
spalger f79a96fe7f skip flaky suite (#113043) 2021-09-29 17:15:06 +00:00
Marco Liberati b567351b15
[Lens] Thresholds: moving a threshold to another group should carry also its styling (#112853)
* 🐛 When dragging a threshold to another group carry also its styling

*  Add functional test

*  Make duplicate carry style too

*  Add functional test for duplicate use case

* 🐛 Fix table duplication issue

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-29 18:52:50 +02:00
Pete Harverson 408cf173fa
[ML] Convert APM transaction anomaly detection job to analyze metric data (#111957)
* [ML] Convert APM transaction anomaly detection job to analyze metric data

* [ML] Fix test and edit manifest query and defaultIndexPattern

* Remove queries for ml module, upgrade version

* Update ML anomaly searches

* Add metricset.name term query to datafeed

* Add metricset.name/processor.event queries to module setup

* [ML] Edit setup module API integration test to not start datafeed

* [ML] Edit aggregation names

* Edit home.spec E2E test URLs

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-09-29 17:52:00 +01:00
Nathan L Smith f4a95f9b97
Alert creation and freeform selection (#111883)
Allow selecting any service name, transaction type (where appropriate), and environment when creating and editing rules, both in APM and Stack Management.

- Create /internal/apm/suggestions endpoint that uses `terms_enum`
- Use combo box for environment, service name, and transaction type with suggestions endpoint on all alerts
- Remove "Go to APM" callouts on new alert creation
- Wrap calls to `createCallApmApi` in alert triggers with `useEffect`
- Use `getEnvironmentLabel` for value in environment field expression
- Make all `AlertParams` fields optional (except in latency threshold alert)
- Add e2e tests for creating an alert
- Remove `NewAlertEmptyPrompt` component and `isNewApmRuleFromStackManagement` helper
- Replace `maxServiceEnvironments` and `maxServiceSelections` config options with `maxSuggestions` advanced setting.


![CleanShot 2021-09-28 at 10 35 58](https://user-images.githubusercontent.com/9912/135119948-e247615a-d235-4feb-b197-b803f165ad1e.gif)

Fixes #106786
2021-09-29 11:18:44 -05:00
spalger c7e06ab7d3 skip suite failing es promotion (#113439) 2021-09-29 15:46:56 +00:00
Patryk Kopyciński 47c9efded8
Bump cypress@8.4.1 (#104301) 2021-09-28 15:07:54 +02:00
Robert Oskamp b146f82969
[ML] Functional tests - adjust custom URL timeout (#113223)
This PR adjusts the timeout for checking the custom URL label.
2021-09-28 12:38:27 +02:00
Robert Oskamp fddb6493ac
[ML] Functional tests - stabilize and re-enable feature importance tests (#113125)
This PR re-enables and stabilizes the feature importance tests by making them independent from the number of features returned by the backend.
2021-09-28 10:50:21 +02:00
Vadim Kibana c0bf0540dc
Short URLs (#107859) 2021-09-28 10:34:25 +02:00
Jonathan Budzenski 73af4f8054 fix skip. #113067 2021-09-27 21:09:42 -05:00
John Dorlus 39e06326dc
Migrate Index Management Functional Tests To Use Test User (#113078)
* Added config and code to make index management use test user.

* Removed unused reference.

* Changed config back to only modifying the permissions on the indices.

* Fixed assertion for new permission.
2021-09-27 20:47:44 -04:00
Joey F. Poon 94e7844301
[Security Solution] update endpoint list api to support united index (#112758) 2021-09-27 14:51:31 -05:00
Tim Sullivan cb37ae8142
[Reporting] Stabilize CSV export tests (#112204)
* [Reporting] Stabilize CSV export tests

* add debugging logging for results metadata

* restore accidentally deleted tests

* restore "large export" test

* remove redundant availability test

* do not filter and re-save

* fix getHitCount

* fix large export test

* skip large export test :(

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-27 11:44:29 -07:00
Ece Özalp 76d966a33a
[CTI] adds Risky Host Overview Card (#109553) 2021-09-27 14:28:09 -04:00
Walter Rafelsberger ae4e7ccc51
[ML] Transforms: Align privileges checks with ML plugin. (#112970)
To check the available node count, the ML plugin has an additional privileges check before returning the result. This PR uses the same approach for the corresponding transforms node endpoint.
2021-09-27 15:35:27 +02:00
Robert Oskamp 314227d259
[ML] Functional tests - stabilize custom URLs tests (#113096)
This PR stabilizes the functional custom URLs tests by adding retries for the dashboard and other type URL save service methods, similar to what we already have in the discover type URL save service method.
2021-09-27 15:30:24 +02:00
Tiago Costa d2d0da7c7d
skip flaky suite (#113082) 2021-09-27 13:16:19 +01:00
Tiago Costa 5f264441f3
skip flaky suite (#93354) 2021-09-27 12:58:59 +01:00
Robert Oskamp 149d4025b9
[ML] Functional tests - re-enable tests after ES fix (#113095)
With the Elasticsearch fix https://github.com/elastic/elasticsearch/pull/77801 merged, we can now re-enable the test suites that have been skipped due to the corresponding sort optimization issue.
2021-09-27 13:38:05 +02:00
Jonathan Budzenski d27c72302d skip flaky suite. #104578 2021-09-26 16:29:06 -05:00
Jonathan Budzenski 0a30434086 skip flaky suite. #100296 2021-09-26 16:06:40 -05:00
Jonathan Budzenski affeb996fd skip flaky suite. #113067 2021-09-26 10:39:31 -05:00
Marius Dragomir aa98fab25e
[Stack Functional Integration] Add minimal hearbeat tests (#112986)
* add hearbeat tests and convert to TS

* fix ts errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 22:02:41 +02:00
Jonathan Budzenski f5ccf18da1 skip flaky suite. #70928 2021-09-23 14:36:12 -05:00
Zacqary Adam Xeper 4ac8bd2b0e
[Metrics UI] Fix No Data alerts on Metric Threshold with groupBy (#111465)
* [Metrics UI] Fix No Data alerts on Metric Threshold with groupBy

* Fix typecheck

* Add integration test for no data groupBy scenario

* Uncomment test files

* Uncomment test files

* Reset stored groups when groupBy parameter changes

* Test for groupBy arrays

* Fix initial No Data result when no groups are detected yet

* Fix linting error

* Fix detecting groups with doc count 0

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 12:44:20 -05:00
Christos Nasikas 1153afc428
[Cases] Check cases configuration on functional testing (#112968) 2021-09-23 18:47:54 +03:00
Jonathan Budzenski 94bbeecf67 skip flaky suite. #112749 2021-09-23 10:32:40 -05:00
Jonathan Budzenski 9d44ff1f07 skip flaky suite. #112913 2021-09-23 10:16:31 -05:00
Sergi Massaneda 9c30f87ff4
[Cases][Sharable SOs] Resolve deep link ids (#111984)
* backend implementation

* front UI changes to manage all resolve outcomes

* add spaces dependency to o11y

* tests fixed

* hack removed

* added resolve api integration test

* unit tests for the front changes

* add base resolve cypress test

* non-null assertions removed

* add resolve operation for logging

* eslint fix new rule

* create test snapshot

* migration resolve functional test
2021-09-23 17:08:13 +02:00
David Sánchez d75df38786
[Security Solution][Endpoint] Displays Trusted apps card in policy fleet integration page - UI (#111708)
* Displays Trusted apps card in policy fleet integration page

* Fixes translation

* Use FF to display the card or not

* Revert FF to false by defaul

* Fix back external button props in router stats

* redesign TA card for fleet policy page

* Address pr comments. Added experimental feature singleton service. Added FTR test for TA card in fleet policy

* Change wrong fleet name and SIEM to Security Solutions

* Fix test-subject prop because test is failing

* Use different designs in fleet and integration. Pending to confirm by design team

* UI changes on summary cards

* Adds same card design in fleet policy and integration policy pages

* Fix ts error making prop as optional

* Use eui props for sizing. Use reverseRow to switch label/numbers depending on isSmall prop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 15:06:40 +02:00
Angela Chuang 931c55a0ac
[Security Solution] Update data field for JA3 fingerprint (#112813)
* update data field for JA3 fingerprint

* update unit test

* update query

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-23 08:42:53 -04:00
Justin Kambic 26d19e7fd1
[Uptime] Redirect to error page when Heartbeat mappings are missing (#110857)
* Initial PoC of redirect on mapping error is working.

* Update copy. Add comments.

* Include headline element for page title.

* Create mappings for failing functional tests.

* Add functional test for mappings error page.

* Add mapping for certs check.
2021-09-23 06:55:43 -04:00
Sergi Massaneda 1b061d8638
fix order problem and un-skip test (#112863) 2021-09-23 11:50:01 +02:00
Walter Rafelsberger f4c164c69b
[ML] APM Correlations: Remove unused code. (#112645)
- Removes CustomFields component.
- Removes fetchTransactionDurationHistogramInterval query.
- Removes unused legacy API endpoints used for the correlations feature.
2021-09-23 11:38:04 +02:00
Brian Seeders 9d7290d9ad
[CI] Balance CI Groups (#112836) 2021-09-22 15:42:01 -04:00
Jonathan Buttner 93cc4fcd9b
[Security Solution][Timeline] Pinned events migrations (#112360)
* Starting migration class

* Fleshing out migrator

* Adding migration tests

* Refactoring

* Adding migrator to each client

* gzipping file

* Fixing cypress tests

* Cleaning up types and adding additional test

* Starting notes migrations

* Finishing notes references migration

* gzipping data.json

* Fixing unit tests

* Updating the archive and fixing spelling

* Starting pinned events

* Fixing more conflicts

* Finishing pinned events

* fixing pinned events not showing bug

* Fixing lint errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 09:09:34 -04:00
Jonathan Buttner 70f635b14d
[Cases] Migrate user actions connector ID V2 (#112710)
* Making progress

* Fleshing out the extraction logic

* Finishing migration logic and starting more tests

* Finishing migration unit tests

* Making progress on services

* Finishing transform to es schema

* Finishing transform functionality and unit tests

* reverting migration data updates

* Cleaning up type errors

* fixing test error

* Working migration tests

* Refactoring retrieval of connector fields

* Refactoring connector id in and tests in frontend

* Fixing tests and finished refactoring parse string

* Fixing integration test

* Fixing integration tests

* Removing some duplicate code and updating test name

* Fixing create connector user action bug

* Addressing feedback and logging error

* Moving parsing function to common

* Fixing type errors

* Fixing type errors

* Addressing feedback

* Fixing lint errors

* Adjusting import for user action changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 08:59:49 -04:00
Marta Bondyra 0cbdf3f259
[Lens] Thresholds added (#108342)
Co-authored-by: Marta Bondyra <marta.bondyra@gmail.com>
Co-authored-by: dej611 <dej611@gmail.com>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-22 11:14:40 +02:00
Diana Derevyankina abdb7a4c49
[TSVB] Disables the input string mode (#110571)
* [TSVB] Remove the input string mode

* Fix some tests

* Add some functional tests and fix failing CI

* Update telemetry mappings

* Rename useStringIndices to allowStringIndices, move it from TSVB to Data constants and refactor test

* Apply text suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply formatting and remove unused translations

* Fix labels

* Remove unused import

* Move popover toggling  to checkIndexPatternSelectionModeSwitchIsEnabled function to prevent flakiness

* Update some visual_builder_page functions

* Remove accidentally added newlines

* Move TSVB ui settings to constants, remove tooltip and update popover text

* Handle the case of editing advanced settings is restricted

* Add requiresPageReload to UI setting and condition for the case the setting is already enabled

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-09-22 11:13:53 +03:00