Commit graph

42071 commits

Author SHA1 Message Date
Kibana Machine 78a030d5c6
[docs][migrations v2] Update SO migration docs to include removal of index write block when handling corrupt SOs. (#103014) (#103372)
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
2021-06-24 15:56:32 -07:00
Aaron Caldwell f0a29a20b2
[Maps] Disable edit features if editing already enabled for layer (#103300) (#103361) 2021-06-24 18:53:29 -04:00
Kibana Machine f9165d533d
[Lens] Fix formula formatting in Metric visualization type (#103167) (#103362)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-06-24 18:52:41 -04:00
Kibana Machine 0445977888
Fix Engine Overview not properly stretching to full page height (#103337) (#103359)
- 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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 18:40:09 -04:00
Candace Park 56e4647953
[Security Solution][Endpoint][Host Isolation] Remove agent status for non endpoint alerts (#102976) (#103356) 2021-06-24 18:28:26 -04:00
Aaron Caldwell c20fdfdb11
[Maps] Disable draw mode on layer remove (#103188) (#103357)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 18:27:18 -04:00
Kibana Machine 90cbc5900b
[Workplace Search] Remove isFederatedAuth checks to expose user features (#103278) (#103353)
* 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>

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 18:07:25 -04:00
Kibana Machine 4d7b3afb5d
[Enterprise Search] Product 404 polish pass (#103198) (#103350)
* 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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 17:50:03 -04:00
Jonathan Budzenski ca36d0ce80 skip suite failing es promotion. #103364 2021-06-24 16:19:49 -05:00
Kibana Machine cb799c2335
[Logs UI] Log threshold rule performance improvements (#102650) (#103349)
* Add optimisations for executor / chart previews

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>

Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-24 17:19:16 -04:00
Kibana Machine 59c52697ce
[Workplace Search] source connection panel content vertical alignment (#103225) (#103348)
* 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>

Co-authored-by: Kuldeep M <crudetoaster@gmail.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 17:13:01 -04:00
Kibana Machine 3f7e1eb94f
Add telemetry for Elastic Cloud (#102390) (#103344)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-24 16:53:56 -04:00
Kibana Machine d781dd0dbd
Fix missing setting modal in integrations app (#103317) (#103338)
Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-06-24 16:34:20 -04:00
Kibana Machine 6c492477fc
[ui-shared-deps] reuse react-beautiful-dnd from eui (#102834) (#103333)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-24 16:09:18 -04:00
Kibana Machine 57e7438d93
Improved Visualize button in field popover (#103099) (#103332)
* 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>

Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-06-24 15:36:47 -04:00
Kibana Machine 3650fa70e7
[Lens] Update formula icons (#103287) (#103330)
* 💄 Updated formula reference icon

* 💄 Replace wordwrap icons

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-24 15:25:56 -04:00
Tim Sullivan 0f4e99949a
Reporting: Task Manager integration for 7.x (#101339)
* Reporting: Task Manager integration for 7.x

* update test assertions, use more explicit types

* update comment

* Update x-pack/plugins/reporting/server/lib/store/store.ts

Co-authored-by: Vadim Dalecky <streamich@gmail.com>

* fix field mapping

* Update x-pack/plugins/reporting/server/lib/store/store.ts

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

* Report also implements ReportDocumentHead

* the actual ID of the task is prefixed with `task:`

* remove pointless update to the report instance after failing

* comment clarification

* sync with 8.0

Co-authored-by: Vadim Dalecky <streamich@gmail.com>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 12:14:40 -07:00
Kibana Machine d2196c6ec0
[Fleet] Remove duplication between two files #103282 (#103329)
## 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.

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-06-24 15:00:30 -04:00
Kibana Machine a91700206f
[ML] Add description and owner to kibana.json for ML owned plugins (#103254) (#103326)
Co-authored-by: Pete Harverson <peteharverson@users.noreply.github.com>
2021-06-24 18:53:26 +00:00
Kibana Machine d2888a5c61
[ML] Fixes data frame analytics models list pipelines tab (#103235) (#103324)
Co-authored-by: Pete Harverson <peteharverson@users.noreply.github.com>
2021-06-24 14:51:26 -04:00
Aleh Zasypkin 0dc5bf4481
Avoid using deprecated camelCase parameters for SAML APIs. (#103091) (#103322)
# Conflicts:
#	x-pack/plugins/security/server/authentication/providers/saml.test.ts
#	x-pack/plugins/security/server/authentication/providers/saml.ts
2021-06-24 14:43:51 -04:00
Kibana Machine 0547c36f19
[Asset management] Osquery app bug squashing (#102406) (#103320)
* 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>

Co-authored-by: Bryan Clement <bclement01@gmail.com>
2021-06-24 14:37:42 -04:00
Kibana Machine dc4731a069
Convert our full page Loading component to an Enterprise Search logo (#103189) (#103206)
- while keeping our component-level LoadingOverlay to a spinner

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 18:30:39 +00:00
Kibana Machine 5d0ff2ea41
[Alerting] Using new es client in alerting functional tests (#102349) (#103318)
* 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>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-06-24 14:26:02 -04:00
Yulia Čech 58924391da
Refactored helpers file into separate domain files (#102383) (#103312)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 20:02:46 +02:00
Kibana Machine 7a162723a6
[Maps] timeslider play button (#103147) (#103313)
* [Maps] timeslider play button

* cancel subscription on unmount

* change playback speed to 1750

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-24 13:58:51 -04:00
Michael Olorunnisola 492f5bddaa
[7.x] Implement new security solution wrapper (#100405) (#103244)
* Implement new security solution wrapper (#100405)

Co-authored-by: cchaos <caroline.horn@elastic.co>
# Conflicts:
#	x-pack/plugins/security_solution/cypress/integration/timelines/data_providers.spec.ts
#	x-pack/plugins/security_solution/cypress/integration/timelines/pagination.spec.ts

* test fixes
2021-06-24 13:34:31 -04:00
Kibana Machine 4cb9109783
[Discover] Move focus on chart toggle in Discover (#103119) (#103309)
* [Discover] move focus on show chart

* [Discover] set actual moveFocus flag

Co-authored-by: Dmitry Tomashevich <39378793+Dmitriynj@users.noreply.github.com>
2021-06-24 13:33:57 -04:00
Jonathan Budzenski e33c29d1b2
[7.x] [packages] Move @kbn/interpreter to Bazel (#101089) (#103308)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 12:29:20 -05:00
Chris Roberson 5efd3453ad
[Task Manager] Add config switch around logging at different levels based on the state (#102804) (#103307)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 13:11:45 -04:00
Kibana Machine 1aeffefad6
[APM] refactoring sourcemap api to receive form-data (#103152) (#103306)
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-06-24 13:10:53 -04:00
Kibana Machine d13d3e29f1
[Fleet] Use "Integrations" breadcrumb in "Add integrations" (#103227) (#103305)
* 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>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-24 13:07:14 -04:00
Kibana Machine c3766073f9
Don't import react-intl directly to reduce bundle sizes (#102497) (#103301)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-06-24 17:04:37 +00:00
Kibana Machine c49cdbc284
[DOCS] Security Overview (#103151) (#103328)
* 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>

Co-authored-by: Janeen Mikell-Straughn <57149392+jmikell821@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2021-06-24 10:04:09 -07:00
Kibana Machine 669839c292
[APM] Link to Fleet APM Server Configuration when managed by Elastic Agent w/Fleet (#100816) (#103302)
* 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>

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-06-24 16:58:48 +00:00
Kibana Machine fff2251a2f
[Cases] Including owner when patching a comment Closes #102732 (#103020) (#103268)
* Including owner when patching a comment

* Fixing tests

Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
2021-06-24 16:57:15 +00:00
Patrick Mueller 850597503f
[alerting][actions] add task scheduled date and delay to event log - 2 (#103172) (#103296)
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 12:09:29 -04:00
Julien Mailleret 9de5d67bd1
Fix UBI source URL (#102736) (#103293)
* Fix UBI source URL

This commit fix the source URL for UBI image to ensure that it stays
consistent with the URL generated in
https://artifacts.elastic.co/reports/dependencies/dependencies-current.html

* Update src/dev/run_licenses_csv_report.js

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>

* Update src/dev/run_licenses_csv_report.js

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>

* try to make eslint happy

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-06-24 12:06:58 -04:00
Christos Nasikas 0a19c416a3
[Cases] Fix push to external service error when connector's mapping does not exists (#102894) (#103291)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 12:05:12 -04:00
Kibana Machine a5af2d38df
Add missing i18n (#103245) (#103284)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-06-24 15:40:23 +00:00
Sergi Massaneda 74fe228f6f
[core][deepLinks] Fix getAppInfo deepLinks order (#102879) (#103280)
* getAppInfo sets deepLinks order properly
* remove overriding same spread fields
2021-06-24 11:37:37 -04:00
Kibana Machine 9656dd12d9
[Lens] Add continuity icons to palette configuration (#103240) (#103281)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-24 11:35:12 -04:00
Kibana Machine b983ce2050
[Lens] Add new error case for mixed x axes (#102861) (#103276)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-24 15:29:06 +00:00
Kibana Machine 3af221cc79
fix filter input debouncing (#103087) (#103274)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-24 11:26:46 -04:00
Kibana Machine 7b4dd01580
Prevent showing filter on unfilterable fields (#103241) (#103272)
Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-06-24 11:20:39 -04:00
Kibana Machine 5cb6643cc6
[Fleet][Logs UI] Prevent double loading of entries in <LogStream /> component. (#102980) (#103269)
* Use better loading indicator for `useLogSource`

* Use clearer name for the loading entries flag

* Reuse query object if its value persists

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
2021-06-24 11:09:05 -04:00
Kibana Machine 4b546bffa4
[Enterprise Search] Add User management feature (#103173) (#103267)
* 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>

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-06-24 11:03:43 -04:00
Kibana Machine 6d440196f0
[Fleet] Fix staleness bug in "Add agent" flyout (#103095) (#103263)
* * 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>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-24 14:50:55 +00:00
Kibana Machine 1bbe1e4d7a
[Fleet] Fix double policy header layout (#103076) (#103262)
* 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>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-24 10:50:04 -04:00
Kibana Machine ad3037ca5c
Use observability plugin breadcrumbs in APM (#103168) (#103247)
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.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-06-24 09:33:08 -04:00