Commit graph

43914 commits

Author SHA1 Message Date
Larry Gregory
af38aca3fd
Role Management: improve editing experience for DLS queries (#99977)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 12:55:55 -04:00
Luke Elmers
d2690d8ac8
[migrations v2] Integration test for multi-node cluster. (#100957) 2021-06-28 12:49:38 -04:00
Nathan L Smith
6a2b968767
Observability side navigation for cases and alerts (#102556) 2021-06-28 11:48:32 -05:00
Greg Thompson
bd32299c13
Upgrade EUI to v34.5.1 (#103297)
* eui to 34.5.0

* snapshot updates

* Fix some page layouts

* eui to 34.5.1

Co-authored-by: cchaos <caroline.horn@elastic.co>
2021-06-28 11:31:23 -05:00
Melissa Alvarez
dfeecb902f
[ML] Data Frame Analytics creation wizard: ensure included fields table updates correctly (#103191)
* fix includes table rerender loop

* remove unnecessary comment
2021-06-28 12:31:10 -04:00
Alexey Antonov
15b0dbff7b
[TSVB] Fix references to the index pattern are not embedded when exporting a saved object (#103255)
* [TSVB] Importing a dashboard with only TSVB viz on another space, breaks the dashboard

Closes: #103059

* move index-pattern to constant

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 19:18:30 +03:00
David Sánchez
96fe9c23f8
[Security solution][Endpoint] Get os name from host.os.name when agent type endpoint (#103450)
* When type endpoint gets os type from os name instead of os family

* Allow users add event filters only for endpoint events

* Fixes error with wrong map function

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 17:48:54 +02:00
Constance
84e1b01ceb
Result settings: Fix restore defaults copy (#103413)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 08:39:27 -07:00
David Sánchez
43a897e640
[Security Solution][Endpoint] The refresh button triggers always a refresh action (#103118)
* Triggers search even if the query hasn't changed

* Add await on async function call

* refactor, use forceSearch store flag instead of new actin type to force search

* fix error when refreshing trusted apps

* Fix ts-error by adding ts-ignore '{ type: "LoadingResourceState"; previousState: ImmutableObject<UninitialisedResourceState> | ImmutableObject<LoadingResourceState<EventFiltersListPageData, ServerApiError>> | ImmutableObject<...> | ImmutableObject<...>; }' is not assignable to type 'ImmutableObject<{ forceRefresh: boolean; }>'.
        Object literal may only specify known properties, and 'type' does not exist in type 'ImmutableObject<{ forceRefresh: boolean; }>'
2021-06-28 17:24:26 +02:00
Stratoula Kalafateli
8fa4421cac
Update TSVB docs with guidelines on how to group by multiple fields (#103224)
* Update TSVB FAQ section with guidelines on how to group by multiple fields

* Apply text suggestion
2021-06-28 18:13:31 +03:00
Tiago Costa
22d5c90855
chore(NA): moving @kbn/spec-to-console into bazel (#103470)
* chore(NA): moving @kbn/spec-to-console into bazel

* chore(NA): fix licenses
2021-06-28 15:58:41 +01:00
Paul Tavares
91fc3cc2b9
[Security Solution][Endpoint] Refresh action and comments on the Case Details view when Isolation actions are created (#103160)
* Expose new Prop from `CaseComponent` that exposes data refresh callbacks
* Refresh case actions and comments if isolation was created successfully
2021-06-28 10:39:23 -04:00
Yuliia Naumenko
648841429c
Update health.asciidoc 2021-06-28 07:35:03 -07:00
Josh Dover
6ba26db8d3
Add warning toast when server.publicBaseUrl not configured correctly (#85344) 2021-06-28 10:24:13 -04:00
Shahzad
4f45535c90
[Exploratory view] Update types names (#103214) 2021-06-28 15:55:53 +02:00
ymao1
2ff2a6fa50
Adding tooltip to rules that are disabled due to license (#103295)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 09:47:32 -04:00
Joe Reuter
f89dc9cc31
sanitize drilldown (#103299) 2021-06-28 14:16:08 +02:00
Kyle Pollich
96c4350289
Remove post-installation redirect for integrations (#103179)
When installation integrations via the browse -> add integration flow in
the integrations UI, we will no longer redirect the user back to the
integration details page.

Closes #100978

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 08:13:41 -04:00
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