Commit graph

5017 commits

Author SHA1 Message Date
Kibana Machine
18a89f3dc1
[Infra UI] Select the palette option in test using clicks (#119042) (#119151)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-11-19 07:46:54 -07:00
Tiago Costa
9d56919cb4
skip flaky suite (#75044) 2021-11-19 14:36:03 +00:00
Kibana Machine
2d6c10a1e9
[Fleet] Split package policy Upgrade endpoint (#118854) (#119140)
* [Fleet] Split package policy Upgrade endpoint

* Add openapi specs

Co-authored-by: Cristina Amico <criamico@users.noreply.github.com>
2021-11-19 05:01:51 -07:00
Kibana Machine
5214a4bca1
[Security Solution] Dedupe alerts by querying _id before creation (#119045) (#119122)
* Dedupe alerts by querying _id before creation

* Update alert chunk size

* Use aggregations to find existing alert _ids

* Remove tightly coupled tests

* Add api integration test for alert deduplication

* Remove unused import

* Cleaner util implementation

* Skip flaky test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marshall Main <55718608+marshallmain@users.noreply.github.com>
2021-11-18 17:54:25 -07:00
Kibana Machine
7ab9dfb8dc
Fix upgrade tests for maps and dashboards (#119046) (#119118)
Co-authored-by: liza-mae <liza-mae@users.noreply.github.com>
2021-11-18 17:25:56 -07:00
Kibana Machine
7e3e1f8eeb
Performance test for login and home page (#117861) (#119088)
- Remove reporting-dashboard test from performance tests and add login page and home page tests to get
performance metrics.
- Set network latency (KBN_TEST_NETWORK_LATENCY), download throughput (KBN_TEST_DOWNLOAD_THROUGHPUT) and upload throughput (KBN_TEST_UPLOAD_THROUGHPUT) through environment variables and fallback to default 100ms latency for network latency, 5MB for download throughput and 1MB for upload throughput.

Co-authored-by: Baturalp Gurdin <9674241+suchcodemuchwow@users.noreply.github.com>
2021-11-18 15:47:12 -07:00
Kibana Machine
0329c62b52
[Uptime] Add 7* to supported index pattern defaults (#112861) (#119108)
* Add `7.16` to supported index pattern defaults.

* Update supported index pattern based on requirements update.

* Fix broken unit tests.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
2021-11-18 15:35:19 -07:00
Tyler Smalley
5fe9fb692a skip flaky suite (#106631) 2021-11-18 16:31:13 -06:00
Kibana Machine
76f073f846
[Security Solution] add new GET endpoint metadata list api (#118968) (#119099)
Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2021-11-18 14:50:30 -07:00
Kibana Machine
a2fd420d6e
[Alerting] Handle errors with scheduled task document during rule disable (#118618) (#119083)
* Catching errors during rule disable

* Adding functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-11-18 13:46:11 -07:00
Kibana Machine
4ea934c2ce
Lens tests: heatmap fix (#119010) (#119033)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-11-18 12:08:19 -07:00
Kibana Machine
25507793a0
Lens tests: increase window height to avoid scrolling (#119003) (#119036)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-11-18 09:02:35 -07:00
Kibana Machine
6b8a29532e
[APM] Improve server file structure by colocating files related to the route (#118649) (#119018)
* [APM] Improve server file structure by colocate files related to the route

* [APM] co-locate the rest of files

* Fix unit test

* Remove obsolete code

* Fix broken paths in tests

Co-authored-by: Kate Patticha <kate@kpatticha.com>
2021-11-18 07:20:37 -07:00
Kibana Machine
309df6c3df
[ML] Fix field stats assertions to match fields sampled (#118203) (#118936)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Quynh Nguyen <43350163+qn895@users.noreply.github.com>
2021-11-17 14:32:12 -07:00
Kibana Machine
bbc00de080
[SECURITY] add clone functionality to role mapping (#118434) (#118923)
* add clobe to role mapping and update functionalit in role to match UX

* fix some I

* fix jest test + fix table selection when canceling deletion

* add tests around clone action in role mapping

* fix i18n

* remove i18n

* review Greg I

* fix styling + name

* add explaination

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2021-11-17 13:29:50 -07:00
Kibana Machine
2f3c5249ef
[Maps] Use maximum grid_precision for super fine grid-resolution (#118625) (#118873)
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2021-11-17 08:45:26 -07:00
Kibana Machine
55494693e9
Adjust user management functional tests to work in Cloud. (#118315) (#118860)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-11-17 06:57:48 -07:00
Tiago Costa
ec8aaafff9
skip flaky suite (#116065) 2021-11-17 12:53:22 +00:00
Kibana Machine
d84c18ae0a
[Fleet] remove internal params when querying registry (#118693) (#118847)
* removed internal param

* fixed tests

* fixed tests

Co-authored-by: Julia Bardi <90178898+juliaElastic@users.noreply.github.com>
2021-11-17 04:47:28 -07:00
Kibana Machine
de609805fc
[Metrics UI] Add retry.try to some Home Page tests (#118712) (#118839)
Co-authored-by: Milton Hultgren <milton.hultgren@elastic.co>
2021-11-17 03:07:38 -07:00
Kibana Machine
f0a6b10931
Revert "skip flaky suite (#118745)" (#118782) (#118799)
This reverts commit 66aca8b486.

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-11-16 15:56:56 -07:00
Kibana Machine
ae8987d4e6
Fix flaky KQL suggestion tests (#118670) (#118754)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-11-16 12:35:53 -07:00
Tyler Smalley
90e8c447df skip flaky suite (#118745) 2021-11-16 11:15:10 -08:00
Kibana Machine
acea032418
[Fleet] Output API endpoints (#118589) (#118724)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-11-16 10:44:15 -07:00
Kibana Machine
4dc2a7da22
[Stack Monitoring] remove usage of fields being removed in ES segments, update tests (#118106) (#118700)
* remove usage of fields being removed in es, update tests

* add Lucene to title of fixed_bit_set_memory_in_bytes instead of generic IndexMemoryMetric class

* update fixtures for integration tests

* remove index segment count

* update translations

* remove usage of fields being removed in es, update tests

* add Lucene to title of fixed_bit_set_memory_in_bytes instead of generic IndexMemoryMetric class

* update fixtures for integration tests

* remove index segment count

* update translations

* Revert "remove index segment count"

This reverts commit d56ce6e746.

* Revert "remove index segment count"

This reverts commit d56ce6e746.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Sandra G <neptunian@users.noreply.github.com>
2021-11-16 08:43:16 -07:00
Tiago Costa
d417d0a97a
skip flaky suite (#118584) 2021-11-16 15:24:56 +00:00
Tiago Costa
ade7b5f468
skip flaky suites (#118472) 2021-11-16 14:13:36 +00:00
Kibana Machine
0365722184
[APM] Remove projections (#118327) (#118675)
* Delete errors projection

* Remove `getMetricsProjection`

* Remove `getServiceNodesProjection`

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
2021-11-16 06:16:34 -07:00
Tiago Costa
461df8475f
skip flaky suites (#99581, #118356, #118474) 2021-11-16 02:00:45 +00:00
Kibana Machine
21f3957c3c
[kbn/rule-data-utils] add submodules and require public use them (#117963) (#118628)
* [kbn/rule-data-utils] add submodules and require public use them

* fix lint errors

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
2021-11-15 17:16:30 -07:00
Mikhail Shustov
114c690799
Include tracing information in the Kibana logs (#112973) (#118604)
* change APM nodejs agent default

By default APM agent instruments the code to be a base for log correlation. But it doesn't send transactions to the APM server.

* emit trace IDs into the logs

* use ELASTIC_APM_DISABLE_SEND to keep APM agent active but disable send when necessary

* send data whenver active is set to "true"

* update tests

* keep APM agent active. control disableSend instead

* update snapshot tests

* add debug logging

* REMOVE me. log path to the agent

* init APM agent explicitly in test plugin. it uses another package instance

* REMOVE me. create transaction explicitly

* increase timeout setting for the test

* refactor tests

* remove debug logs

* remove explicit transaction creation

* Revert "remove explicit transaction creation"

This reverts commit cdf2d308e0.

* point to apm nodejs agent commit temporary until a new version is released

* migrate from disableSend to contextPropagationOnly

* TO DISCUSS. what if we enforce contextPropagationOnly to be configured when active is defined

* Revert "TO DISCUSS. what if we enforce contextPropagationOnly to be configured when active is defined"

This reverts commit 62dda4fb27.

* bump to version with fix

* commit using @elastic.co

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-15 13:25:12 -07:00
Kibana Machine
0c6c9cca8a
[Uptime] update synthetics fleet telemetry tests (#117929) (#118567)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-11-15 10:56:19 -07:00
Kibana Machine
7dc41e5917
[ML] Functional tests - stabilize and re-enable a11y tests (#118500) (#118564)
This PR stabilizes the data frame analytics job row result link usage in tests and re-enables the a11y ML tests.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-11-15 10:49:36 -07:00
Kibana Machine
edf0021c1c
[Lens] fixes the flakiness of the configureDimension function (#118518) (#118533)
Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
2021-11-15 09:07:34 -07:00
Jean-Louis Leysens
140db5668a
[Reporting] Add link to Kibana app from Reporting management UI + Design update (#111412) (#118524)
* moved components to nested components dir

* added health status indicator

* download button -> download link

* updated poblic Job API, remove some of the "rendering" behaviour

* restructure list table contents and clean up use of i18n

* set table column widths

* slight update to table column widths

* actually use action width 🤦

* added view in app link component and included space id in public side Job

* server side changes so that we can get the job payload containing the locator

* initial round of public-side changes to make the link to Kibana app work

* added tooltip to view action

* remove unused import and do not show chrome

* removed use of fp-ts

* added type column and updated mobile look

* remove unused imports

* take a different approach to job query factory -> added new function called "getReport" and leave "get" as is

* update i18n

* code simplifications, also ensure that "PROCESSING" status is being handled by health indicator

* do not hide chrome

* refactor jest test:
 - make test more specific and remove snapshot
 - added use of isMounted() to not run set state when component
   is not mounted

* surface deprecation warning in a special way

* updated one functional test

* updated other functional test

* Several updates to bring table more in line with design
 * Removed "created by" column
 * Added app icons instead of names
 * Added content type indication (PDF, CSV or PNG)
 * Updated the "info" button to have no colors
 * Updated the status to have a timestamp and show "yellow" if
   we detect any issues and guide users to view the report info.

* a lot of changes to bring this more in line with defazio designs

* fix lint

* -wip- [skip-ci]

* some very basic house keeping [skip-ci]

* get to a point where the linking behaviour is working as expected

* further house-keeping, remove unecessary components

* clean up imports

* move hasIssues check into status indicator

* refactored report status indicator

* hide open kibana app button when not available

* remove unused import

* fix jest tests

* created a new redirect plugin to avoid page flicker

* remove unused report info button

* removed unused translations

* fix jest tests after changing the redirect app path

* added reportingRedirect to applicationUsageSchema

* added column width for type

* update test for extracting first row title

* update functional test snapshot

* updated plugins schema

* removed the interstitial page so that we do not conflict with future work planned for the share service

* remove unused i18n

* small, but center-ish type icons

* elastic@ email address

* add i18n, update import with forward slash and added missing ":" to TODO

* move non-type export to own import line and "type" to only-type imports

* remove unecessary export

* refactor payload endpoint to locatorParams endpoint and document query function

* finish refactoring client side to work with new locatorParams endpoint

* remove unused import

* use info endpoint because it contains payload!

* added functional test to ensure that we can navigate back to report

* added jest test for checking that link navigated to is spaces aware

* fix type issue and remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-15 07:52:29 -07:00
Tiago Costa
34021ce474
skip flaky suite (#116065) 2021-11-15 14:09:12 +00:00
Kibana Machine
50c988fd79
fix exists or fail check (#118499) (#118513)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-11-15 05:38:31 -07:00
Tiago Costa
f356797bb7
skip flaky suite (#118476) 2021-11-12 19:55:04 +00:00
Kibana Machine
c323971a01
unskip lens dashboard tests (#118308) (#118468)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-11-12 09:10:09 -07:00
Kibana Machine
48d9cdab11
[Security Solution] metadata api enhancements (#115115) (#118441)
* metadata api enhancements
* move united index query logic to metadata service
* add error wrappers for es/so calls in united index query
* new getHostMetadataList() method to return list of endpoint metadata

Co-authored-by: Paul Tavares <paul.tavares@elastic.co>

Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
Co-authored-by: Paul Tavares <paul.tavares@elastic.co>
2021-11-11 19:23:24 -05:00
Devon Thomson
2ddb052731
[Dashboard] [Functional Tests] Unskip Filtering Tests (#117944) (#118431)
Unskip dashboard filtering tests
2021-11-11 17:28:41 -05:00
Kibana Machine
1be554f2e5
110640 tests for alert bulk actions (#117264) (#118428)
* bulk actions test cases outline

* helpers to filter alerts per rule type (reason)

* add proper apm indices/privileges to observability functional tests

* cleanup

* add apm archive data

* add correct apm archive data, add helper to select checkbox per solution & cleanup

* enable more tests

* cleanup

* tests for bulk container

* more tests for bulk container

* fix eslint issues

* fix failing unit tests (use ~= for multiple space separated values)

* remove unused value

* fix typescript error with container.querySelector

* remove apm test archive data

* use getByTestId in the tests

* fix security cypress tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: mgiota <giota85@gmail.com>
2021-11-11 17:06:54 -05:00
Jonathan Budzenski
4229be455d skip flaky suite. #118417 2021-11-11 15:23:52 -06:00
Kibana Machine
c9a9a3f7f3
Lens functional test: Avoid triggering below-the-fold issue (#118321) (#118424)
* use sum to avoid triggering below-the-fold issue

* stabilize operation selection

Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-11-11 16:09:20 -05:00
Spencer
3e90fbc36d
[8.0] [Upgrade Assistant] Forwardport from 7.x (#114966) (#118410)
* [Upgrade Assistant] Forwardport from 7.x (#114966)

* Fix link to Cloud deployment URL in upgrade step. (#109528)

* [Upgrade Assistant] Refactor CITs

* Rename UA steps to fix_issues_step and fix_logs_step. (#109526)

* Rename tests accordingly.

* [Upgrade Assistant] Cleanup scss (#109524)

* [Upgrade Assistant] Update readme (#109502)

* Add "Back up data" step to UA (#109543)

* Add backup step with static content and link to Snapshot and Restore.
* Add snapshot_restore locator.
* Remove unnecessary describe block from Upgrade Step tests.
* Remove unused render_app.tsx.

* Change copy references of 'deprecation issues' to 'deprecation warnings'. (#109963)

* [Upgrade Assistant] Address design feedback for ES deprecations page (#109726)

* [Upgrade Assistant] Add checkpoint feature to Overview page (#109449)

* Add on-Cloud state to Upgrade Assistant 'Back up data' step (#109956)

* [Upgrade Assistant] Refactor external links to use locators (#110435)

* [Upgrade Assistant] Use AppContext for services instead of KibanaContext (#109801)

* Remove kibana context dependency in favour of app context

* Add missing type to ContextValue

* Fix mock type

* Refactor app mount flow and types

* Refactor to use useServices hook

* Fix linter issues

* Keep mount_management_section and initialize breadcrumbs and api there

* Remove useServices and usePlugins in favour of just useAppContext

* Remove unnecessary mocks

* [Upgrade Assistant] Enable functional and a11y tests (#109909)

* [Upgrade Assistant] Remove version from UA nav title (#110739)

* [Upgrade Assistant] New Kibana deprecations page (#110101)

* Use injected lib.handleEsError instead of importing it in Upgrade Assistant API route handlers. (#111067)

* Add tests for UA back up data step on Cloud (#111066)

* Update UA to consume snapshotsUrl as provided by the Cloud plugin. (#111239)

* Skip flaky UA Backup step polling test.

* [Upgrade Assistant] Refactor kibana deprecation service mocks (#111168)

* [Upgrade Assistant] Remove unnecessary EuiScreenReaderOnly from stat panels (#111518)

* Remove EuiScreenReaderOnly implementations

* Remove unused translations

* Remove extra string after merge conflict

* Use consistent 'issues' and 'critical' vs. 'warning' terminology in UA. (#111221)

* Refactor UA Overview to support step-completion (#111243)

* Refactor UA Overview to store step-completion state at the root and delegate step-completion logic to each step component.
* Add completion status to logs and issues steps

* [Upgrade Assistant] External links with checkpoint time-range applied (#111252)

* Bound query around last checkpoint date

* Fix tests

* Also test discover url contains search params

* Small refactor

* Keep state about lastCheckpoint in parent component

* Remove space

* Address CR changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Upgrade Assistant] Tests for updating step state accordingly if API poll receives count followed by error (#111701)

* Add test for logs count polling

* Test when count api fails

* [Upgrade Assistant] Add a11y tests for es deprecation flyouts (#110843)

* [Upgrade Assistant] Set fix_logs step as incomplete if log collection is not enabled (#111827)

* set step as incomplete if toggle is disabled

* Fix test names

* Remove unnecessary mocks

* [Upgrade Assistant] Update copy to use "issues" instead of "warnings" (#111817)

* Create common deprecation issues panel component in UA (#111231)

* Refine success state behavior and add tests.
* Refactor components into a components directory.
* Refactor SCSS to colocate styles with their components.
* Refactor tests to reduce boilerplate and clarify conditions under test.

* [Upgrade Assistant] Fix Kibana deprecations warning message

* [Upgrade Assistant] Add support for API keys when reindexing (#111451)

* [Upgrade Assistant] Update readme (#112154)

* [Upgrade Assistant] Make infra plugin optional (#111960)

* Make infra plugin optional

* Fix CR requests

* [Upgrade Assistant] Improve flyout information architecture (#111713)

* Make sure longstrings inside flyout body are text-wrap

* Show resolved badge for reindex flyout and row

* Finish off rest of ES deprecation flyouts

* Refactor deprecation badge into its own component

* Add tests for kibana deprecations

* Add tests for es deprecations

* Also check that we have status=error before rendering error callout

* Check for non-complete states instead of just error

* Small refactor

* Default deprecation is not resolvable

* Add a bit more spacing between title and badge

* Address CR changes

* Use EuiSpacer instead of flexitems

* [Upgrade Assistant] Update readme (#112195)

* [Upgrade Assistant] Add integration tests for Overview page (#111370)

* Add a11y tests for when overview page has toggle enabled

* Add functional and accessibility tests for overview page

* Load test files

* Fix linter error

* Navigate before asserting

* Steps have now completion state

* Remove duped word

* Run setup only once, not per test

* Address CR changes

* No need to renavigate to the page

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Upgrade Assistant] Add note about compatibility headers (#110469)

* Improve error states for Upgrade Assistant deprecation issues (#112457)

* Simplify error state for deprecation issues panels. Remove <EsStatsError />.

* Rename components from stats -> panel.

* Create common error-reporting component for use in both Kibana and ES deprecations pages.
* Align order of loading, error, and success states between these pages.
* Change references to 'deprecations' -> 'deprecation issues'.

* Fix tests for panels.

* Add API integration test for handling auth error.

* Fix TS errors.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Change count poll time to 15s (#112669)

* [Upgrade Assistant] Add permissions check to logs step (#112420)

* [Upgrade Assistant] Refactor telemetry (#112177)

* [Upgrade Assistant] Check for ML upgrade mode before enabling flyout actions (#112555)

* Add missing error handlers for deprecation logging route (#113109)

* [Upgrade Assistant] Batch reindex docs (#112960)

* [UA] Added batch reindexing docs link to the ES deprecations page. Added a link from "batch reindexing" docs page to "start or resume reindex" docs page and from there to ES reindexing docs page. Also renamed "reindexing operation" to "reindexing task" for consistency.

* [Upgrade Assistant] Added docs build files

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* [Upgrade Assistant] Added review suggestions and fixed eslint issues

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Upgrade Assistant] Improve error messages for GET /api/upgrade_assistant/reindex/<index> (#112961)

* Add support for single manual steps to Upgrade Assistant. (#113344)

* Revert "[Upgrade Assistant] Refactor telemetry (#112177)" (#113665)

This reverts commit 991d24bad2.

* [Upgrade Assistant] Use skipFetchFields when creating the indexPattern in order to avoid errors if index doesn't exist (#113821)

* Use skipFetchFields when creating the indexPatter in order to avoid errors when index doesnt exist

* Address CR feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Upgrade Assistant] Hide system indices from es deprecations list (#113627)

* Refactor reindex routes into separate single and batch reindex files. Apply version precheck to batch routes. (#113822)

* [Upgrade Assistant] Remove ML/Watcher logic (#113224)

* Add show upgrade flag to url (#114243)

* [Upgrade Assistant] Delete deprecation log cache (#114113)

* [Upgrade Assistant] Add upgrade system indices section (#110593)

* [Upgrade Assistant] Reindexing progress (#114275)

* [Upgrade Assistant] Added reindexing progress in % to the reindex flyout and es deprecations table

* [Upgrade Assistant] Renamed first argument in `getReindexProgressLabel` to `reindexTaskPercComplete` for consistency

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Upgrade Assistant] Remove Fix manually heading when there are no manual steps

* Add rolling upgrade interstitials to UA (#112907)

* Refactor FixLogsStep to be explicit in which props are passed to DeprecationLoggingToggle.

* Centralize error-handling logic in the api service, instead of handling it within each individual API request. Covers:
- Cloud backup status
- ES deprecations
- Deprecation logging
- Remove index settings
- ML
- Reindexing

Also:
- Handle 426 error state and surface in UI.
- Move ResponseError type into common/types.

* Add note about intended use case of status API route.

* Add endpoint dedicated to surfacing the cluster upgrade state, and a client-side poll.

* Merge App and AppWithRouter components.

* [Upgrade Assistant] Added "accept changes" header to the warnings list in the reindex flyout (#114798)

* Refactor kibana deprecation tests (#114763)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Fix linter issues

* Remove unused translation

* Prefer master changes over 7.x for ml docs

* Prefer master changes over 7.x

* Skip tests

* Move everything to a single describe

* Fix types

* Add missing prop to mock

* [Upgrade Assistant] Removed "closed index" warning from reindex flyout (#114861)

* [Upgrade Assistant] Removed "closed index" warning that reindexing might take longer than usual, which is not the case

* [Upgrade Assistant] Also deleted i18n strings that are not needed anymore

* Add LevelIconTips to be more explicit about the difference between critical and warning issues. (#115121)

* Extract common DeprecationFlyoutLearnMoreLink component and change wording to 'Learn more'. (#115117)

* [Upgrade Assistant] Reindexing cancellation (#114636)

* [Upgrade Assistant] Updated the reindexing cancellation to look less like an error

* [Upgrade Assistant] Fixed an i18n issue and updated a jest snapshot

* [Upgrade Assistant] Updated cancelled reindexing state with a unified label and cross icon

* [Upgrade Assistant] Fixed snapshot test

* [Upgrade Assistant] Updated spacing to the reindex cancel button

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Fix test errors (#115183)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Upgrade Assistant] Overview page UI clean up (#115258)

- Scaling down deprecation issue panel title size to flow with typographic hierarchy.
- Removing panel around deprecation logging switch to reduce visual elements.
- Using success instead of green color for migration complete message.

* Revert "Revert "[Upgrade Assistant] Refactor telemetry (#112177)" (#113665)" (#114804)

This reverts commit c385d49887.
* Add migration to remove obsolete attributes from telemetry saved object.
* Refactor UA telemetry constants by extracting it from common/types.

* [Upgrade Assistant] Rename upgrade_status to migration_status (#114755)

* [Upgrade Assistant] Swapped reindexing flyouts order (#115046)

* [Upgrade Assistant] Changed reindexing steps order, replaced a warning callout with a text element

* [Upgrade Assistant] Fixed reindex flyout test and changed warning callout from danger color to warning color

* [Upgrade Assistant] Fixed the correct status to show warnings

* [Upgrade Assistant] Fixed i18n strings

* [Upgrade Assistant] Moved reindex with warnings logic into a function

* [Upgrade Assistant] Updated reindex flyout copy

* [Upgrade Assistant] Also added a trailing period to the reindex step 3

* [Upgrade Assistant] Fixed i18n strings and step 3 wording

* [Upgrade Assistant] Added docs changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* [Upgrade Assistant] Hide features that don't need to be migrated from flyout (#115535)

* Filter out system indices that dont require migration on server side
* Rename to attrs to migration
* Update flyout snapshot.

* Refine Upgrade Assistant copy. (#115472)

* Remove unused file

* Fix kibanaVersion dep

* Updated config.ts to fix UA test

UA functional API integration test to check cloud backup status creates a snapshot repo, which fails to be created with my changes to config.ts `'path.repo=/tmp/repo,/tmp/repo_1,/tmp/repo_2,'`. Adding `/tmp/cloud-snapshots/'` to the config fixes the test.

* Address CR changes

* Add missing error handler for system indices migration (#116088)

* Fix broken tests

* Fix test

* Skip tests

* Fix linter errors and import

* [Upgrade Assistant] Fix typo in retrieval of cluster settings (#116335)

* Fix typos

* Fix typo also in server tests

* Make sure log collection remains enabled throughout the test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* Fix type errors

* Fix integration test types

* Fix accessibility test type errors

* Fix linter errors in shared_imports

* Fix functional test types

Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Dmitry Borodyansky <dborodyansky@gmail.com>

* commit with @elastic.co email

Co-authored-by: Ignacio Rivas <rivasign@gmail.com>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yulia Čech <6585477+yuliacech@users.noreply.github.com>
Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Dmitry Borodyansky <dborodyansky@gmail.com>
2021-11-11 14:42:14 -05:00
Kibana Machine
7667ca42a6
[Metrics UI] Add additional functional test for Inventory View (#116868) (#118407)
* [Metrics UI] Add functional test for group by and sorting for Inventory View

* refactor groupByCustomField

* Adding search test

* Adding colors getNodesWithValues; adding test for changing palette;

* Adding basic test for timeline controls

* Closing the popover after clicking apply

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Chris Cowan <chris@elastic.co>
2021-11-11 14:30:34 -05:00
Quynh Nguyen
d9b00c55c1
[ML] Fix data visualizer grid failing if one of the fields failed and not updating when refreshed (#115644) (#118267)
* [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] Initial embed

* [ML] Initial embed props

* Add embeddable 1

* Add visible fields

* Embeddable 2

* 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

* Fix missing code after conflicts

* Remove dv locator and flyout

* Make types happy

* Fix types

* Rename toggle option

* Resolve conflicts

* [ML] Reduce size of chart

* [ML] Unbold name, switch icons of show distributions

* [ML] Make size consistent

* [ML] Make page size 25

* [ML] Switch to arrow right and down

* [ML] Make legend font smaller

* [ML] Add user setting

* [ML] Add show preview by default setting

* [ML] Match icon

* Add panels around the subcontent

* Add preference for aggregated vs doc

* Fix types

* Fix types, add constants for adv settings

* Change to data view type

* Temp fix for Kibana/EUI table overflow issue

* Modify line height so text is not cut off, modify widths for varying screen sizes

* Different width padders for different screens

* Fix CI

* Merge latest, move button to the right

* Fix width for bar charts previews

* Fix toggle buttons, fix maps

* Delete unused file

* Fix boolean styling

* Change to enum, discover mode

* Hide field stats

* Hide field stats

* Persist show mini preview/distribution settings

* Remove window size, use size observer instead

* Default to document view

* Remove bold, switch icon

* Set fixed width for top values, reduce font size in table

* Fix custom url tests

* Update width styling for panels

* Fix missing flag for Discover sidebar, jest tests

* Fix max width

* Workaround for sorting

* Fix import

* Fix styling

* Make height uniform, center alignment, fix map and keyword map not same size

Move styling

* Revert "Make height uniform, center alignment, fix map and keyword map not same size"

This reverts commit 8fc42e2f

* Revert "Make height uniform, center alignment, fix map and keyword map not same size"

This reverts commit 8fc42e2f

* Uniform height, left aligned, flex grid

* Switch top values to have labels

* Center content

* Replace fixed widths with percentage

* Fix table missing field types

* Add dashboard embeddable and filter support

* Fix file data viz styling and tests, lean up imports, remove hard coded pixels

* Add search panel/kql filter bar

* Temporarily fix scrolling

* New kql filters for data visualizer

* Set map height so it will fit the sampler shard size text

* Use eui progress labels

* Fix spacer

* Add beta badge

* Temporarily fix scrolling

* Fix grow for Top Values for

* [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] Rename view mode, refactor to separate hook, add error prompt if can't show, rename wrapper, clean up & fix tests

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

* [ML] Add unit testing for search utils

* Fix missing unsubscribe for embeddable output

* Remove redundant onAddFilter for this PR, fix width

* Rename Field Stats to Field stats to match convention

* [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 doc count for fields that exists but have no stats

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

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

* [ML] Rename classnames to BEM style

* Resolve latest changes

* Add in place ss

* Refactor helper functions

* Refactor helper functions

* Add error log

* Migrate overall stats to data's search

* Better handle errors

* Fix url so restore session brings back correct view

* Add progress bar

* [ML] Add tests for data viz in Discover

* [ML] Change to combinelatest

* Update tests & dashboard behavior to reflect new advanced settings

* Update telemetry

* Remove workaround after eui bump fix

* Remove dataloader

* Snapshot

* Migrate search to client side

* Consolidate types

* Change back to forkjoin instead of combinelatest for overallstats

* Fix missing bool clause

* Add login

* Fix saved search attributes broken with latest changes

* Update tests

* Fix import

* Match the no results found

* Reset field stats so it reloads when query is refreshed

* Reset field stats so it reloads when query is refreshed

* Add doc stats

* Merge to use hook completely

* Merge to use hook completely

* Fix doc chart doesn't show up when page is first mounted

* Fix Discover auto refresh previously didn't update

* Fix query util to return search source's results right away. Fix texts.

* Refactor documentStats

* Fix doc stats not showing upon page mount

* Fix types

* Delete old files

* Update tests & i18n

* Fix examples, tests

* Remove old files & routes

* Add telemetry, clean up, rename components for clarity

* Fix size of callout message

* Fix texts field

* Consolidate field type

* Consolidate field type, add count to top values

* Clean up

* Update tests

* Remove progress on embedadble

* Update snapshot

* Clean up, consolidate searchOptions

* Fix new es client types

* Fix types

* Fix loading state in Discover

* Remove unused services, Change switchMap to map, mergeMap -> switchMap, update types

* Fix missing filters

* Fix message of table to show searching instead of no items found

* Fix dashboard saved search source persisting time range

* [ML] Fix table message state

* [ML] Fix to not fetch field stats if cardinality is 0

* [ML] Fix locator missing view mode

* [ML] Quit right away if field doesn't exist in docs

* [ML] Change to use batch and only retry with individual field if failed

* [ML] Batch requests for speed and retry failures for resiliency

* No need to fetch field stats if overall stats haven't completed

* Wait on overallStats to complete

* Fix types after merge

* Fix payload size too big 413, num of requests

* Update field icon to using kbn/react-field package

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-11 13:47:43 -05:00
Lucas F. da Costa
1b1e803753
[Uptime] [User Experience] Prefix internal apis with /internal (#117852) (#118380)
* [Uptime] prefix internal APIs with /internal [relates to #116334]

* [Uptime] move hard-coded URL paths to rest_api constants [relates to #116334]

* [Uptime] use API_URLS from constants in API integration tests [relates to #116334]

* [Uptime] Remove unnecessary filters route test

* [Uptime] prefix internal RUM routes with /internal and /ux [relates to #116334]

* [User Experience] update API docs for prefixed internal UX APIs
2021-11-11 12:25:19 -05:00
Kibana Machine
178fff209e
[Security Solution] unskip endpoint functional tests (#116861) (#118377)
Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2021-11-11 17:10:06 +00:00
Kibana Machine
c61386b430
[ML] Display warning if clone job fails due to missing data view (#117993) (#118373)
* [ML] Display warning if clone job fails due to missing data view

* [ML] Edits following review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Pete Harverson <pete@elastic.co>
2021-11-11 12:04:22 -05:00