Commit graph

16420 commits

Author SHA1 Message Date
Dominique Clarke 34490a355e
[Uptime] [Synthetics Integration] transition to monaco code editor (#102642)
* update synthetics integration code editor

* add basic support for xml and javascript

* fix types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 10:14:56 -04:00
Joe Reuter 564807c0b0
increase chart switch width (#102520) 2021-06-22 15:51:37 +02:00
Robert Oskamp 0690030716
[ML] Functional tests - explicitly delete jobs after setupModule tests (#102882)
This PR explicitly deletes the jobs created by the `setupModule` tests.
2021-06-22 15:37:08 +02:00
Marco Liberati 1d59abc605
[Lens] Carry over filter extra fields with in incomplete state (#102509)
* 🐛 Carry over filter extra fields with in incomplete state

* 👌 Integrated feedback

* 👌 Integrated feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 14:19:19 +02:00
Jean-Louis Leysens 60a3d5d415
added ability to filter in global search by "type:package" (#102754) 2021-06-22 14:12:07 +02:00
Cauê Marcondes 89e851fd30
[APM] Fleet: Introduce API for uploading source maps for RUM (#101623)
* creating fleet source maps apis

* fixing ts issues

* fixing test

* fixing ts issue

* nests `rum` under `config.apm-server.value` within the package policy input

* refactoring and adding test

* removing unit test

* removing unused imports

* addressing PR comments

* addressing PR comments

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
2021-06-22 07:58:49 -04:00
Katrin Freihofner 65de579d5a
Renamed button and dropdown items in headers (apm, logs, metrics and uptime) from alerts to rules (#100918)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2021-06-22 13:15:17 +02:00
Casper Hübertz 38604863e5
[Metrics] Update ActionsMenu create alert styles (#102316)
* [Metrics] Add divider in the actions menu
* [Metrics] Add color and icon to the alert link

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 10:07:20 +02:00
Joe Reuter 62fc27bf55
unksip functional test (#102633) 2021-06-22 09:59:36 +02:00
David Sánchez 1ea35069c0
[Security solution][Endpoint] Removes 'none' compression as it not used anymore (#102767)
* Removes 'none' compression as it not used anymore

* Revert type because none type is needed for the first time the artifact is created befor the compression
2021-06-22 09:47:05 +02:00
Katrin Freihofner 7df924f828
Wording update for case settings, fixes #102462 (#102496)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 09:31:15 +02:00
Ignacio Rivas e806dde4e8
[License management] Migrate to new page layout (#102218)
* start working on license management

* migrate permissions check to new layout

* refactor license expiration as a subtitle of the page header

* finish up working on page title

* Fix linter errors and update snapshots

* update method name

* CR changes

* update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 09:17:52 +02:00
Stratoula Kalafateli 9e1390e118
[Lens] Adds filter from legend in xy and partition charts (#102026)
* WIP add filtering capabilities to XY legend

* Fix filter by legend on xy axis charts

* Filter pie and xy axis by legend

* create a shared component

* Add functional test

* Add functional test for pie

* Make the buttons keyboard accessible

* Fix functional test

* move function to retry

* Give another try

* Enable the rest od the tests

* Address PR comments

* Address PR comments

* Apply PR comments, fix popover label for alreadyformatted layers

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 08:37:03 +03:00
Nicolas Chaulet d792e02e85
[Fleet] Correctly check for degraded status in agent healthbar (#102821) 2021-06-21 21:20:41 -04:00
Constance 138bd0df30
[Workplace Search] Convert Sources pages to new page template (+ personal dashboard) (#102592)
* Refactor PersonalDashboardLayout to more closely match new page template

- Remove references to enterpriseSearchLayout CSS (which will be removed in an upcoming PR)

- Prefer to lean more heavily on default EuiPage props/CSS/etc.

- Handle conditional sidebar logic in this layout rather than passing it in as a prop

- Update props & DRY concerns to more closely match WorkplaceSearchPageTemplate
  - e.g. isLoading & pageChrome (mostly for document titles)
  - make FlashMessage and readOnlyMode work OOTB w/o props)

* Convert Source subnav to EuiSideNav format

+ update PrivateSourcesSidebar to use EuiSIdeNav

* Update routers

- removing wrapping layouts, flash messages, chrome/telemetry

* Refactor SourceRouter into shared layout component

- Remove license callout, page header, and page chrome/telemetry

- NOTE: The early page isLoading behavior (lines 51-) is required to prevent a flash of a completely empty page (instead of preserving the layout/side nav while loading). We cannot let the page fall through to the route because some routes are conditionally rendered based on isCustomSource.

- FWIW: App Search has a similar isLoading early return with its Engine sub nav, and also a similar AnalyticsLayout for DRYing out repeated concerns/UI elements within Analytics subroutes.

* Convert all single source views to new page template

- Mostly removing isLoading tests
- NOTE: Schema page could *possibly* use the new isEmptyState/emptyState page template props, but would need some layout reshuffling

* Convert Add Source pages to conditional page templates

- Opted to give these pages their own conditional layout logic - this could possibly be DRY'd out

- There is possibly extra cleanup here on this file that could have been done (e.g. empty state, titles, etc.) in light of the new templates - but I didn't want to spend extra time here and went with creating as few diffs as possible

* Convert separate Organization Sources & Private Sources views to new page templates

+ fix Link to EuiButtonTo on Organization Sources view

* Update Account Settings with personal layout + write tests

+ add related KibanaLogic branch coverage

* [UX feedback] Do not render page headers while loading on Overview & Sources pages

* [PR feedback] Breadcrumb errors/fallbacks

* [Proposal] Update schema errors routing to better work with nav/breadcrumbs

- `exact` is required to make the parent schemas/ not gobble schema/{errorId}

- added bonus breadcrumb for nicer schema navigation UX

- No tests need to update AFAICT

* Ignore Typescript error on soon-to-come EUI prop
2021-06-21 20:42:16 -04:00
Andrew Kroh 2e3d527696
[Fleet] Update final pipeline based on ECS event.agent_id_status (#102805)
This updates the Fleet final pipeline added in #100973 to match the specification of
`event.agent_id_status` field as defined in ECS. The field was added to ECS in
https://github.com/elastic/ecs/pull/1454. Basically the values of the field were simplified
from what was originally proposed and implemented.
2021-06-21 18:48:19 -04:00
Davis Plumlee c52f5edfcc
[Security Solution][Exceptions] Fixes empty exceptions filter bug (#102583) 2021-06-21 18:34:11 -04:00
Constance 3673019906
[App Search] Convert Documents views to new page template + minor UI polish (#102807)
* Convert Documents view to new page template

* [UI polish] Move empty state to top-level instead of showing full UI

- per Davey's previous approval

* [UX polish] Show loading indicator on initial documents page load

* Convert single Document detail view to new page template

* Update router
2021-06-21 14:37:24 -07:00
Constance f2ca7fcb96
[App Search] Convert Settings & Credentials pages to new page template (#102671)
* Convert Settings to new page template

+ add missing ability check around route

* Convert Credentials to new page template

+ add missing ability check around route

* [Tests refactor] DRY out repeated ability tests to a helper

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 17:05:18 -04:00
Constance 6dc996229c
[App Search] Engines Overview polish pass (#102778)
* Split up engines vs. meta engines into separate panels

- per Davey's feedback from earlier UI passes

* DRY out manual header/spacing to reusable DataPanel component

+ update DataPanel icon typing to not error when passed a custom icon/svg

- kudos again to Davey for the component

* Typography tweaks

- Update DataPanel component to accept a custom titleSize (to maintain previous UI/sizing)

- Fix meta engines empty prompt title heading to follow heading levels + tweak sizing to not be larger than panel heading

* Set up new license CTA button for upcoming meta engines CTA

falls back to a documentation link! so fancy

* Update Enterprise Search Overview to use new license button

* Add new Meta Engines license upgrade CTA

- Reuse some copy from Meta Engines creation view
- Reuse DataPanel so visuals stay consistent + it looks similar to CTA on Enterprise Search Overview
- Update DataPanel to allow buttons to be responsive + conditionally load spacer between header & children

* Improve responsiveness of app when platinum license changes

Previously, routes/apps were going off the static data passed from the server which was only initialized once on page load. hasPlatinumLicense however changes dynamically and in real-time, removing the need for a hard page refresh.

I could have replaced all `canManageMetaEngine` flags with `isPlatinum && canManageEngines`, but I thought baking license checks into the main ability would be more scalable and potentially open the way to other license-based flags also being dynamic.

* [PR feedback] Typos in test names

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>

* Fix failing test

Missed updating the heading level

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-21 16:49:14 -04:00
Angela Chuang 62eece5441
[SecuritySolution] Move manual test cases to Cypress (#100730)
* add scenarios 1-3

* add tests for toggle full screen

* add tests for timeline pagination

* add tests for timeline correlation tab

* fix cypress tests

* add data-test-subj for timeline tabs content

* fix up

* fix flaky tests

* fix mark as favorite scenario

* fix flaky test

* fix flaky test

* fix flaky test

* refactors 'can be marked as favourite' test

* fixes test

* fixes typecheck issue

* refactors the pipe

* little fix

* mark as favourite refactor

* removes code that causes the flakiness

* apply the fix for 7.13 branch

* fix timeline api call

* fix timeline api call

* fix timeline api call

* fix syntax

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
2021-06-21 21:37:07 +01:00
Vadim Dalecky 1fb2640a6f
ILM locators (#102313)
* feat: 🎸 add url service types

* refactor: 💡 move locator types into its own folder

* feat: 🎸 add abstract locator implementation

* feat: 🎸 implement abstract locator client

* feat: 🎸 add browser-side locators service

* feat: 🎸 implement locator .getLocation()

* feat: 🎸 implement navigate function

* feat: 🎸 implement locator service in /common folder

* feat: 🎸 expose locators client on browser and server

* refactor: 💡 make locators async

* chore: 🤖 add deprecation notice to URL generators

* docs: ✏️ add deprecation notice to readme

* feat: 🎸 create management app locator

* refactor: 💡 simplify management locator

* feat: 🎸 export management app locator from plugin contract

* feat: 🎸 implement ILM locator

* feat: 🎸 improve share plugin exports

* feat: 🎸 improve management app locator

* feat: 🎸 add useLocatorUrl React hook

* feat: 🎸 add .getUrl() method to locators

* feat: 🎸 migrate ILM app to use URL locators

* fix: 🐛 correct typescript errors

* Fix TypeScript errors in mock

* Fix ILM locator unit tests

* style: 💄 shorten import

Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 22:11:12 +02:00
Tiago Costa 7c429f725e
chore(NA): moving @kbn/storybook into bazel (#102731)
* chore(NA): moving @kbn/storybook into bazel

* chore(NA): add some typing changes

* chore(NA): rename typings file

* chore(NA): fix typescript configs to build storybooks

* chore(NA): fix eslint and typechecking
2021-06-21 20:17:54 +01:00
Bhavya RM 1d89744697
Test for role specific access to non-default space (#101653) 2021-06-21 15:04:03 -04:00
Constance 1f2de03941
[App Search] Convert Engine subnav and Engine Overview pages to new page template (#102679)
* Update routers

- To facilitate this being broken up into multiple PRs, non-migrated views still get a wrapping layout

* Set up Engine subnav in EuiSideNav format

+ tweak CSS for new label - heads up that this will break the old nav, but will disappear as the pages get converted

* Convert Engine Overview pages to new page template

* [PR feedback] Code comment explaining side nav icon reorder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 11:59:52 -07:00
Wylie Conlon 3b0be1bbf5
[Lens] Error on array values in math (#102371)
* [Lens] Error on array values in math

* Update error messages

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 14:45:35 -04:00
Marius Dragomir 3662cf4092
[QA] Changes the telemetry banner dismiss location (#102721)
* change telemetry banner dismiss location

* use dismissBanner method instead

* Update _metricbeat_dashboard.js

* Update _maps.ts

* Update _maps.ts

* Update _metricbeat_dashboard.js
2021-06-21 14:33:12 -04:00
ymao1 6c699a562c
[Alerting] Updating audit event terminology (#102263)
* Updating audit terminology

* Fixing unit tests

* Updating audit docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 14:17:44 -04:00
Bryan Clement 4c700aba8a
Osquery telemetry usage bug (#102762)
* guard for null metrics query

* added some tests for the beat usage metric extraction function
2021-06-21 13:47:15 -04:00
Constance ceaf9f6242
Convert EuiCards to non-shadowed defaults to avoid nested panel/shadows (#102680)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 10:33:22 -07:00
Marco Liberati 6f2a97b0e8
[Lens] Fix formula functional test (#102749) 2021-06-21 19:17:48 +02:00
Scotty Bollinger 49271f30d0
[Workplace Search] Replace library interface with EUI (#102758)
One of the Workplace Search components was using the 'react-beautiful-dnd' typing for it’s component. This PR relpaces it with the EUI equivalent.
2021-06-21 13:14:42 -04:00
Steph Milovic 491b0d1d0b
[Observability] [Cases] Fix Cases navigation (#102429) 2021-06-21 10:54:46 -06:00
Constance 79b0949d34
[App Search] Convert Engines overview & engine creation to new page template (#102677)
* Convert Engine Creation page to new page template

+ simplify EuiForm/form to 1 level of nesting

* Convert Meta Engine Creation page to new page template

* Initial conversion of Engines overview to new page template

* Engines Overview: simplify loading & empty state to use new page template props

* Engines Overview: simplify header

- now that the header/actions, chrome/telemetry, & empty state etc. are all DRY'd out by the template, there's no need for a separate header component
- we can simply dry out the header action, which will shortly be removed with the 7.14 launch

- note: for empty state changes: mostly indenting, the new template automatically creates a subdued panel for us in empty state so no need to include one manually

* Fix broken test mocks

I definitely should not have been importing the index file I'm mocking, but why did this only break now?? :psyduck:

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 12:36:16 -04:00
Jonathan Buttner 3589ade859
Adding refresh to ensure status is updated (#102742) 2021-06-21 12:29:37 -04:00
Kyle Pollich 773647e4f5
[Integrations UI] Add updated integrations subtitle (#102738)
* Add updated integrations subtitle

* Fix header image declarations

* Use theme hook for dark mode setting
2021-06-21 12:13:23 -04:00
Corey Robertson d82d1ebef7
Fixes issue with undo/redo (#101954)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 12:11:36 -04:00
Alison Goryachev 863e7091dd
[Ingest Node Pipelines] Remove default value for error_distance param (#102222) 2021-06-21 12:09:57 -04:00
Casper Hübertz 17e496c6b2
[APM] Errors: Fix panels styles (#102734) 2021-06-21 16:44:06 +02:00
Christos Nasikas 13671c45f2
[Cases] Add owner and description properties to kibana.json (#102707) 2021-06-21 17:38:26 +03:00
Robert Oskamp e97cfad385
[ML] Functional tests - stabilize module tests (#102708)
This PR stabilizes the `setupModule` API tests by increasing the timeout for the jobs to finish.
2021-06-21 16:11:28 +02:00
Mikhail Shustov f3ec948bee
Cleanup outdated @elastic/elasticsearch client type errors (#101741)
* fix errors and update comments in Core

* fix errors or update comments in Security plugin

* update spaces test

* update task_manager files

* update comments in monitoring plugin

* fix errors in update comments in security_solutions

* fix errors and update comments in data_enhanced

* update fleet code

* update infra code

* update comment in trigger_actions_ui

* update comment in lens

* update comments in ES-UI code

* update typings for search

* update monitoring

* remove outdated export
2021-06-21 10:03:00 -04:00
Nicolas Chaulet 307a5b2e93
[Fleet] Use docLinks service to link to the doc (#102660) 2021-06-21 09:46:56 -04:00
Tiago Costa fa8ab2a020
skip flaky suite (#102722) 2021-06-21 12:25:12 +01:00
Tiago Costa 29e90f5602
skip flaky suite (#102183) 2021-06-21 12:14:29 +01:00
Marius Dragomir c6f5f84975
fix flakiness and change screenshot size to remove scroll (#102521)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 06:52:16 -04:00
Robert Oskamp 7d4ca1af33
[ML] Functional tests - remove duplicate archive load (#102701)
This PR removes the duplicate load of the `event_rate_nanos` archive in the `data_nanos_job` test suite.
2021-06-21 12:50:56 +02:00
Dario Gieselaar 02033e2b4b
Move ES aggregation types to src/core (#102597) 2021-06-21 11:11:15 +01:00
Pierre Gayvallet 59d7f33115
add isExportable SO export API (#101860)
* add `isExportable` SO export API

* add warning when export contains excluded objects

* add FTR test

* fix API integration assertions

* lint

* fix assertions again

* doc

* update generated doc

* fix esarchiver paths

* use maps instead of objects

* SavedObjectsExportablePredicate is no longer async

* more docs

* generated doc

* use info instead of warning when export contains excluded objects

* try/catch on isExportable call and add exclusion reason

* add FTR test for errored objects

* log error if isExportable throws
2021-06-21 10:06:54 +02:00
Tiago Costa 693823f8c5
skip flaky suite (#102366) 2021-06-18 23:35:30 +01:00