Commit graph

43996 commits

Author SHA1 Message Date
Joe Reuter bfadab6324
[Lens] Improve pie suggestions (#102755) 2021-06-28 12:05:46 +02:00
Aleh Zasypkin c4fb693035
RFC: Kibana preboot lifecycle stage. (#99318) 2021-06-28 10:54:25 +02:00
Constance 45dfaac75f
[Enterprise Search] Test coverage pass (#103406)
* Do not collect code coverage on test_helpers

Note:  some test helpers are no longer being used but might be some day - e.g., shallowWithIntl will be used on the beta badge

* Fix uncovered type line

- since we're not iterating over productNames, no need for it to be an array - it can be written more clearly in string union format

* Fix branch coverage on index.tsx

- Since KibanaLogic is setting `|| {}` fallbacks in any case, I've opted to remove them in this file and let fallbacks be handled there

- Fixed typing to make it clear plugins can be undefined (i.e., disabled/optional, etc) in props + reorganize w/ comments

- KibanaValues requires an Omit to override props types

* Crawler DomainsTable test coverage/improvements

- Fix test failing locally due to timezones by increasing the timezone offset

- Cover missing branch line by adding a domain with no `lastCrawl`

- Remove unnecessary extra beforeEach with dupe re-shallow/mounts

- move getTable helper to its most relevant block (it's not being used in the generic column content checks, only in the actions column suite)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-27 21:45:39 -07:00
Constance d339479e09
[App Search] Success toast polish pass (#103410)
* Fix toasts rerendering/resetting between page navigations + z-index issues

- note: I opted to delete the `<Callouts>` component in favor of just reverting it to the old `<FlashMessages>`, now that FlashMessages is no longer responsible for toasts

* Update engine creation success messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update engine deletion success message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update source engines add/delete success messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update crawler domain delete message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update API key create/update/delete sucess messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update curations delete success message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update results settings success message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update relevance tuning success/reset messages
- to use a toast (+ toast message) instead of a callout
- update copy to match EUI guidelines

* Update document deletion success message
- to use a toast instead of a callout (+ split additional text)
- update copy to match EUI guidelines

* Update role mappings create/update/delete success messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Run i18n_check --fix

- per localization team guidelines - strings that have been changed should get deleted/scheduled to be re-translated

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 00:28:21 -04:00
Constance 084336a2d8
Role mappings: remove deprecated reset copy (#103411)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 00:28:02 -04:00
Nicolas Chaulet 8b653fb85a
[Fleet] Add a message when log collection is disabled on the log details page (#103166) 2021-06-27 21:27:30 -04:00
Liza Katz 07af5d31c7
[Query] Remove es query dependency on format.convert (#103174)
* remove es query dependency on format.convert

* fix types

* types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-27 17:35:01 +01:00
Michael Marcialis df8787b104
Home & Kibana Overview Page Template Update (#103003)
* apply page template comp to kibana overview

* apply page template comp to home page

* clean up

* strip null actions from array

* update snapshot and remove outdated import

* fix tests and update snapshots

* update tests and snapshots

* Switch to KibanaPageTemplate; use template=“empty”

* update snapshots

* make `EuiCard` transparent

* updated snapshots

* restored data-test-subj="homeApp"

* change scope of styles

* update snapshots
2021-06-25 20:58:52 -04:00
Pete Harverson c6d04a9195
[ML] Converts management app jobs list pages to new layout (#103117)
* [ML] Converts management app jobs list pages to new layout

* i[ML] Fix translations

* [ML] Set acccessDenied default state back to false

* [ML] Remove headers for error states and text updates following review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-25 21:57:57 +01:00
Pierre Gayvallet 672653776d
Allow additive csp configuration (#102059)
* add additive csp configuration

* add unit tests for new class

* fix types

* adapt test utils

* fix tests

* more unit tests on config

* generated doc

* review comments

* update ascii doc

* update ascii doc links

* automatically add single quotes for keywords

* add missing csp directives

* add more tests

* add additional settings to asciidoc

* add null-check

* revert test config props

* fix usage collection usage

* some review comments

* last review comments

* add kibana-docker variables

* try to fix doc reference

* try to fix doc reference again

* fix tests
2021-06-25 20:41:37 +02:00
Wylie Conlon d16a464a4c
[Lens] Document common formulas in product and add formula tutorial (#103154)
* [Lens] Document common formulas in product and add formula tutorial

* Make common formulas appear in sidebar and format consistently

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-25 13:13:57 -04:00
Marco Liberati dfc70bdfd1
[Lens] Enable actions on Lens Embeddable (#102038)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-25 14:59:36 +02:00
Patryk Kopyciński 922d7cc73d
[Osquery] Return proper indices permissions for osquery_manager package (#103363) 2021-06-25 10:03:46 +02:00
Vadim Dalecky baf2de5415
Dashboard locator (#102854)
* Add dashboard locator

* feat: 🎸 expose dashboard locator from dashboard plugin

* Use dashboard locator in dashboard drilldown

* Add tests for dashboard locator

* Fix dashboard drilldown tests after refactor

* Deprecate dashboard URL generator

* Fix TypeScript errors in exmaple plugin

* Use correct type for dashboard locator

* refactor: 💡 change "route" attribute to "path"

* chore: 🤖 remove unused bundle

Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
Co-authored-by: Vadim Kibana <82822460+vadimkibana@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-25 07:58:03 +02:00
Vadim Dalecky bc6ee27a29
Maps locators (#102810)
* feat: 🎸 implement maps locator

* feat: 🎸 add tile map locator

* feat: 🎸 add region map locator

* feat: 🎸 register maps locators

* refactor: 💡 remove usage of mpas url gen, replace by locator

* chore: 🤖 remove url generators

* refactor: 💡 use locators in maps deprecation messages

* chore: 🤖 remove maps url generators

* refactor: 💡 use new property name

* feat: 🎸 use constant

Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-25 07:55:06 +02:00
Andrew Kroh bc8ba8314a
[Fleet] Add support for constant_keyword "value" in package field definitions (#103000)
This enables Fleet to accept package field definitions that declare a constant "value"
for `constant_keyword` fields. Fleet will generate an index template for the constant_keyword
field that contains the `value` attribute.

Relates: https://github.com/elastic/package-spec/pull/194

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-25 00:22:29 -04:00
Aaron Caldwell 4b20ff3bad
[Maps] Add capability to delete features from layer & index (#103145) 2021-06-24 22:25:26 -04:00
Kevin Logan 41b015abc9
[Security Solution] Correct linux OS lookup for Endpoint Exceptions (#103038) 2021-06-24 20:23:13 -04:00
Scotty Bollinger 3838bfd34a
[Enterprise Search] Add notices for deactivated users and SMTP callout (#103285)
* Port #3904 to Kibana

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

* DRY out logic interfaces

Should have done this long ago

* Port #3920 to Kibana

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

* Lint fixes

* Remove error state from form

We already did this for the users flyout. Basically changes the dirty state of the form from an error state to just showing “Required”. i18n had not been translated yet for `ATTRIBUTE_VALUE_ERROR`

* Add loading states

* Remove manual disabling of button

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

* Remove manual disabling of other button

* Lint fixes

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-24 19:53:03 -04:00
Clint Andrew Hall 2056845408
[canvas] Reduce bundle size by combining SCSS imports (#102822)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-24 18:05:11 -05:00
Constance 803d0fa57b
[Enterprise Search] Final KibanaPageTemplate cleanup (#103355)
* [AS] Delete AppSearchNav and EngineNav

* [WS] Delete WorkplaceSearchNav

* [Shared] Delete custom Layout & SideNav components
2021-06-24 19:02:48 -04:00
Luke Elmers bd2215f587
[docs][migrations v2] Update SO migration docs to include removal of index write block when handling corrupt SOs. (#103014) 2021-06-24 15:46:19 -07:00
Ross Wolf c1ced880bc
[Detections] Adds automatic updating for Prebuilt Security Detection Rules package (#101846)
* Automatically install and update the security_detection_engine package
* Remove security_detection_engine from required Fleet packages
* Update fleet package-registry image
* Add sha256: to the distribution package
* Use distribution from https://beats-ci.elastic.co/job/Ingest-manager/job/release-distribution/152
* Change fleet required packag
* Fix bad merge
* Update rules to 0.13.1 package
* Fix NOTICE.txt
2021-06-24 15:31:25 -06:00
Jonathan Budzenski 45b660172a skip suite failing es promotion. #103364 2021-06-24 16:19:01 -05:00
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