Commit graph

43872 commits

Author SHA1 Message Date
Chris Cowan b12095b079
[Metrics UI] Prevent saved views from trampling URL state (#103146)
* [Metrics UI] Prevent saved views from trampling URL state

* Adding space back in
2021-06-24 14:13:15 -07:00
Wylie Conlon d5f68eef4f
[Lens] Fix formula formatting in Metric visualization type (#103167)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 16:46:50 -04:00
Constance 60086a9aac
Fix Engine Overview not properly stretching to full page height (#103337)
- Caused by the wrapping <div> around the child views - removing that div and moving the `data-test-subj` hooks to the individual views fixes the issue
2021-06-24 16:30:02 -04:00
Aaron Caldwell e1ef2ea5cd
[Maps] Disable edit features if editing already enabled for layer (#103300) 2021-06-24 16:18:44 -04:00
Aaron Caldwell c0122f70d6
[Maps] Disable draw mode on layer remove (#103188)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 16:17:09 -04:00
Candace Park cebf16fb53
[Security Solution][Endpoint][Host Isolation] Remove agent status for non endpoint alerts (#102976) 2021-06-24 16:11:16 -04:00
Scotty Bollinger 0857e620c7
[Workplace Search] Remove isFederatedAuth checks to expose user features (#103278)
* Remove isFederated from main app and routes

* Expose all overview cards that were hidden for federated auth

* Expose all user features that were hidden for groups

* Remove remaining isFederatedAuth references

* Lint fixes

* Add modified test back for Workplace Search

* Remove extraCell

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Remove brackets

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

* Update test name

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 15:59:10 -04:00
Constance fb3e8f4498
[Enterprise Search] Product 404 polish pass (#103198)
* Refactor NotFound component

- shared NotFound becomes NotFoundPrompt - returns only an EuiEmptyPrompt, and individual products/plugins are in charge of their own layout, rather than NotFound doing a bunch of arduous switch handling (also closer to how errorConnecting is a component set per-plugin)

- This is both due to the recent page template refactor and the fact that WS has extra complex logic of needing to switch between its kibana layout and personal dashboard layout

- logos are still hosted in shared/ since they need extra custom CSS to work correctly sizing wise and in dark mode. I renamed its folder from `assets`->`logos` for extra clarity

* [AS] Update current AS routers using NotFound

+ update EngineRouter to use NotFound

* [WS] Update app router

- Handle errorConnecting at the topmost level, instead of in WorkplaceSearchConfigured (to simplify various logic/expectations & match App Search)

- Simplify isOrganization check to use `useRouteMatch` instead of a regex

- Use new NotFound component
- Add NotFound component for the personal dashboard router

* [WS] Improve Source 404 UX

- Add NotFound to SourceRouter + add breadcrumbs for organization views

- When an actual source ID 404s, fix blanket redirect to a dashboard aware redirect - personal dashboard 404s should send the user back to personal sources, not organization sources
+ add a flash message error (similar to how App Search behaves for engine 404s)
+ harden error status checks (gracefully allow for non-http errors to fall back flashAPIErrors

* [WS] Improve Settings 404 UX

- This was the only remaining WS route I found that either did not have a 404 or a fallback to some overview page, so I tweaked the redirect order for a graceful redirect (vs a blank page)

* Fix settings router test

* Move away from custom product logos to OOTB Enterprise Search logo

Keeping it simple, etc. RIP in peace fancy logos

* [PR feedback] toContain over stringContaining
2021-06-24 15:43:26 -04:00
Kerry Gallagher 9ba1ead7c8
[Logs UI] Log threshold rule performance improvements (#102650)
* Add optimisations for executor / chart previews

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-24 20:12:52 +01:00
Kuldeep M 67d4c3184e
[Workplace Search] source connection panel content vertical alignment (#103225)
* fix 1786 source connection panel vertical alignment

* Update x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/add_source/configured_sources_list.tsx

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 15:10:22 -04:00
Josh Dover fbcf405f15
Add telemetry for Elastic Cloud (#102390) 2021-06-24 14:47:38 -04:00
Kyle Pollich fb7b596841
Fix missing setting modal in integrations app (#103317) 2021-06-24 14:29:56 -04:00
Spencer 23c8d18198
[ui-shared-deps] reuse react-beautiful-dnd from eui (#102834)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-24 13:59:49 -04:00
Tim Roes bf6c53bb45
Improved Visualize button in field popover (#103099)
* Improve field popover

* Slightly improve type safteyness

* Add unit tests for visualize trigger utils

* Remove unused div

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 19:31:24 +02:00
Marco Liberati 5abac25ba3
[Lens] Update formula icons (#103287)
* 💄 Updated formula reference icon

* 💄 Replace wordwrap icons
2021-06-24 19:19:20 +02:00
Dmitry Shevchenko 5af69edfba
Fix "Deleted rule" badge is not displayed if 'Rule Name' contains more than 55 words (#103164) 2021-06-24 19:17:09 +02:00
John Schulz eb8e9d7cc9
[Fleet] Remove duplication between two files #103282
## Summary

`public/applications/integrations/constants.tsx` and
`public/applications/integrations/sections/epm/constants.tsx` are identical except for this line in `public/applications/integrations/constants.tsx`

```ts
export * from '../../constants';
```

This PR removes all the duplication from the "upper" file (`public/applications/integrations/constants.tsx`) and leaves the other code "down" in `/sections/epm/` closer to where it's used.

Initially, I deleted `public/applications/integrations/constants.tsx` entirely but several files do `import` the constants it exports, so I left it.
2021-06-24 12:56:48 -04:00
Janeen Mikell-Straughn bfb98053d6
[DOCS] Security Overview (#103151)
* updating overview topic for Kibana

* formatting fixes

* small formatting tweaks

* small formatting tweaks

* Update index.asciidoc

Updating index file; removing siem-UI and machine learning topics from the TOC.

* [DOCS] Change part to chapter

* Update index.asciidoc

* Adding <titleabbrev> attribute

Co-authored-by: lcawl <lcawley@elastic.co>
2021-06-24 12:53:56 -04:00
Pete Harverson 9ead1fc96b
[ML] Add description and owner to kibana.json for ML owned plugins (#103254) 2021-06-24 17:49:56 +01:00
Pete Harverson 119845483f
[ML] Fixes data frame analytics models list pipelines tab (#103235) 2021-06-24 17:44:13 +01:00
Bryan Clement 5e898734d5
[Asset management] Osquery app bug squashing (#102406)
* only display healthy agents to query

* updated toasts to clear on update

* null checking aggBuckets

* properly display expired actions

* clear the error toasts on success

* review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 09:31:57 -07:00
Aleh Zasypkin dd20b8adb6
Avoid using deprecated camelCase parameters for SAML APIs. (#103091) 2021-06-24 18:22:14 +02:00
ymao1 7e32f934aa
[Alerting] Using new es client in alerting functional tests (#102349)
* Switching to new es client in alerting tests

* Fixing types

* Updating functional test

* Updating functional test

* Updating functional test

* Fixing error handling

* Fixing types

* Fixing error handling

* Fixing functional tests

* Fixing functional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 12:20:16 -04:00
Nathan Reese aefdb9c2b0
[Maps] timeslider play button (#103147)
* [Maps] timeslider play button

* cancel subscription on unmount

* change playback speed to 1750

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 09:54:38 -06:00
Yulia Čech f2ebcadc7f
Refactored helpers file into separate domain files (#102383)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 17:51:05 +02:00
Dmitry Tomashevich 686ac904d9
[Discover] Move focus on chart toggle in Discover (#103119)
* [Discover] move focus on show chart

* [Discover] set actual moveFocus flag
2021-06-24 18:27:29 +03:00
Chris Roberson dd072c3927
[Task Manager] Add config switch around logging at different levels based on the state (#102804)
* Gate behind a config with warning message that helps users enable

* Update more files

* Fix docs formatting

* Preserve existing functionality

* Add in task type to the message

* Show multiple alert types that are over the threshold

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 11:09:47 -04:00
Cauê Marcondes 5a76c84dc9
[APM] refactoring sourcemap api to receive form-data (#103152) 2021-06-24 11:04:48 -04:00
Jean-Louis Leysens 8a422fdbc2
[Fleet] Use "Integrations" breadcrumb in "Add integrations" (#103227)
* update the UI breadcrumbs in create policy package to always look like it came from integrations

* added comment about the removal of a path from fleet

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 17:01:09 +02:00
Cauê Marcondes f2937720aa
[APM] Link to Fleet APM Server Configuration when managed by Elastic Agent w/Fleet (#100816)
* Register tutorial on APM plugin

* using files from apm

* removing tutorial from apm_oss

* removing export

* fixing i18n

* adding fleet section

* adding fleet information on APM tutorial

* adding fleet typing

* fixing i18n

* adding fleet information on APM tutorial

* checks apm fleet integration when pushing button

* adding fleet information on APM tutorial

* refactoring

* registering status check callback

* addin custom component registration function

* fixing TS issue

* addressing PR comments

* fixing tests

* adding i18n

* fixing issues

* adding unit test

* adding unit test

* addressing PR comments

* fixing TS issue

* moving tutorial to a common directory

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 10:53:15 -04:00
Anton Dosov be1c5bbd72
Don't import react-intl directly to reduce bundle sizes (#102497) 2021-06-24 16:52:55 +02:00
Patrick Mueller cc6a64514d
[alerting][actions] add task scheduled date and delay to event log - 2 (#103172)
resolves #98634

This adds a new object property to the event log kibana object named
task, with two properties to track the time the task was scheduled to
run, and the delay between when it was supposed to run and when it
actually started. This task property is only added to the appropriate
events.

	task: schema.maybe(
	  schema.object({
	    scheduled: ecsDate(),
	    schedule_delay: ecsNumber(),
	  })
	),

Note that these changes were previously merged to master in https://github.com/elastic/kibana/pull/102252 which had to be reverted - this PR contains the same commits, plus some additional ones to resolve the tests that were broken during the bad merge.
2021-06-24 10:06:01 -04:00
Tim Roes fdd878410e
Add missing i18n (#103245) 2021-06-24 15:34:57 +02:00
Marco Liberati b823472985
[Lens] Add continuity icons to palette configuration (#103240) 2021-06-24 15:32:12 +02:00
Christos Nasikas b70b34f884
[Cases] Fix push to external service error when connector's mapping does not exists (#102894)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 16:31:18 +03:00
Joe Reuter b1b182bdec
[Lens] Add new error case for mixed x axes (#102861) 2021-06-24 15:23:39 +02:00
Joe Reuter 4266957a0d
fix filter input debouncing (#103087) 2021-06-24 15:20:28 +02:00
Tiago Costa 4e38dfee14
skip flaky suite (#98240) 2021-06-24 14:15:44 +01:00
Tim Roes 0a2042eed5
Prevent showing filter on unfilterable fields (#103241) 2021-06-24 15:14:48 +02:00
Alejandro Fernández Gómez 1ef5a6aa05
[Fleet][Logs UI] Prevent double loading of entries in <LogStream /> component. (#102980)
* Use better loading indicator for `useLogSource`

* Use clearer name for the loading entries flag

* Reuse query object if its value persists
2021-06-24 14:06:07 +01:00
Jonathan Buttner 9b56549c6c
[Cases] Including owner when patching a comment Closes #102732 (#103020)
* Including owner when patching a comment

* Fixing tests
2021-06-24 09:05:26 -04:00
Scotty Bollinger a50d94908c
[Enterprise Search] Add User management feature (#103173)
* Rename method to close both flyouts

This is shared with the forthcoming user flyouts

closeRoleMappingFlyout -> closeUsersAndRolesFlyout

* Add logic for elasticsearch users and single user role mappings

* Add logic for various form states

- Showing and hiding flyouts
- Select and text input values
- User created state to turn flyout into a success message state

* Add User server routes

* Add logic for saving a user

* Add User components

* Add User list and User flyout to RoleMappings view

* Fix path

* Rename things

- Users & roles -> Users and roles
- roleId -> roleMappingId (matches other places in code)
- also added a missing prop to the actions col

* Set default group when modal closed

The UI sets the default group on page load but did not cover the case where the user has chosen a group in a previous interaction and the closed the flyout. This commit adds a method that resets that state when the flyout is closed

Part of porting of https://github.com/elastic/ent-search/pull/3865

Specifically:
a4131b95da

* Adds tooltip for external attribute

This was missed from the design

Part of porting of https://github.com/elastic/ent-search/pull/3865

Specifically:
03aa349cab

* Fix invitations link

* Fix incorrect role type

Role-> RoleTypes
🤷🏽‍♀️

* Add EuiPortal to Flyout

Wasn’t needed in ent-search; already done for RomeMappingFlyout. Hide whitespace changes plskthx

* Auth provider deprecation warning in mapping UI

Since we're moving fully into Kibana, we're losing our concept of auth providers. In 8.0, role mappings the specify an auth provider will no
longer work, so this adds a small deprecation warning in the role mappings table.

https://github.com/elastic/ent-search/pull/3885

* Email is no longer required

After a slack discussion, it was determined that email should be optional.

This commit also fixes another instance of the App Search role type being wrong.

* Existing users’ usernames should not be editable

* Use EuiLink instead of anchor

* Add validation tests

* Change URL for users_and_roles

Need to change folder and file names but will punt until after 7.14FF

I did throw in updating the logic file path

* Remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 07:57:49 -05:00
Jean-Louis Leysens 2a8f3eb2f9
[Fleet] Fix staleness bug in "Add agent" flyout (#103095)
* * Fix stale enrollment api token bug
* Refactored naming

* raise the state of the selected enrollment api key to parent to avoid state sync issues

* removed consts for onKeyChange and selectedApiKeyId

* fix typo

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 14:45:35 +02:00
Jean-Louis Leysens 9b9c47b269
[Fleet] Fix double policy header layout (#103076)
* Fix double policy header layout

- Use the default page title without tabs while loading the
  add integration view

* remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 14:45:15 +02:00
Dzmitry Lemechko 7a3d61fb67
[load testing] adjust ES heap size (#101906)
* [load testing] increase es heap to 2g

* update default simulation

* [heap size] 4g

* [heap size] 6g

* [load testing] es heap size 8g

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 13:45:39 +02:00
Nathan L Smith d44f9fe6e6
Use observability plugin breadcrumbs in APM (#103168)
Both APM and Observability plugins have a `useBreadcrumbs` hook.

APM's takes the whole list of route definitions, creates the whole path of breadcrumbs, and has an effect to set the breadcrumbs and the page title.

The Observability plugin's `useBreadcrumbs` just takes an array of breadcrumb objects, adds onclick handlers for them, and has an effect to set the breadcrumbs and the page title.

Rename APM's `useBreadcrumbs` to `useApmBreadcrumbs`. It still constructs the path based on the routes and the current route, but then just calls out to the Observability plugin's `useBreadcrumbs` to do the breadcrumb and title setting.

Now all APM breadcrumbs begin with "Observability" which links to the Observability overview, but the rest of them remain the same.
2021-06-24 06:29:53 -05:00
Pete Harverson fa71c6d7ac
[ML] Transforms: Converts management pages to new layout (#102648)
* [ML] Transforms: Converts management pages to new layout

* [ML] Fix vertical centering of error state in app

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 11:31:30 +01:00
Peter Pisljar 9a1f5a4a7a
switching to peggy (#103169) 2021-06-24 12:23:41 +02:00
Ignacio Rivas 4c2449fd28
[Ingest pipelines] add extract_device_type to user agent processor (#100986)
* testing layouts

* fix copy for beta badge

* replace hardcoded text with i18n strings

* avoid updating types and just replace label

* Small cr changes

* get rid of style prop and just use a smaller badge
2021-06-24 11:55:28 +02:00
Joe Reuter 59d422394a
[Lens] Move empty string handling into field formatter (#102877) 2021-06-24 11:43:33 +02:00