Commit graph

16498 commits

Author SHA1 Message Date
Constance 0548f98708
[App Search][Polish] API Logs empty state (#102998)
* Re-add noItemsMessage to ApiLogsTable

- Primarily for Engine Overview use - totally forgot about this 🤦

* Tweak API logs empty state copy

- after discussing w/ Davey
2021-06-22 17:46:47 -04:00
Constance e580d5a1e2
[App Search] Convert Result Settings & Relevance Tuning pages to new page template (#102845)
* Convert Result Settings page to new page template

+ remove wrapper around empty state (auto handled by new page template)
+ update tests w/ new test helpers

* Convert Relevance Tuning page to new page template

- Remove old relevance_tuning_layout (which handled breadcrumbs, page header, flash messages, and callouts) in favor of simply using the new templtate + callouts (yay DRYing)

- Remove panel wrapper around empty state (handled by new page template)

* Update router

* [Polish] Spacing & icon polish from Davey

see https://github.com/elastic/kibana/pull/101958/files
2021-06-22 14:43:54 -07:00
Melissa Alvarez b161bf03be
[ML] Anomaly Detection: Visualize delayed - data Part 2 (#102270)
* add link in datafeed tab.remove interval

* add annotation overlay to chart

* adds annotations checkbox

* ensure annotation with same start/end time show up in chart

* update annotations time format

* move time format to client

* adds info tooltip to modal title

* adds model snapshots to datafeed chart
2021-06-22 16:58:18 -04:00
Chris Roberson dec77cfafb
[Alerting] Add event log entry when an action starts executing (#102370)
* First steps for adding action execution to event log

* Fix tests

* Move the event to the actions plugin

* Update functional tests

* Fix tests

* Fix types
2021-06-22 16:01:43 -04:00
Constance b386ce149a
[App Search] Convert Schema pages to new page template (#102846)
* Convert Schema page to new page template

+ update empty state - remove panel wrapper, add create schema field modal

* Convert ReindexJob view to new page template

+ remove breadcrumb prop

* Convert Meta Engine Schema view to new page template

* Update routers

* [Polish] Misc Davey Schema UI tweaks

- see https://github.com/elastic/kibana/pull/101958/files

+ change color away from secondary, since that's going away in EUI at some point

* [UX] Fix SchemaAddFieldModal stuttering on first new schema field add

- With the new template, transitioning from the empty state to the filled schema state causes the modal to stutter due to the component rerender

- Changing the page to not instantly react/update `hasSchema` when local schema state changes but instead to wait for the server call to finish and for cachedSchema to update fixes the UX problem

* [UI polish] Revert button color change per Davey's feedback
2021-06-22 12:27:27 -07:00
Patrick Mueller 86fb2cc90e
[actions] add rule saved object reference to action execution event log doc (#101526)
resolves https://github.com/elastic/kibana/issues/99225

Prior to this PR, when an alerting connection action was executed, the event 
log document generated did not contain a reference to the originating rule. 
This makes it difficult to diagnose problems with connector errors, since 
the error is often in the parameters specified in the actions in the alert.

In this PR, a reference to the alerting rule is added to the saved_objects 
field in the event document for these events.
2021-06-22 15:18:35 -04:00
Clint Andrew Hall 2b0f1256dd
[canvas] New Home Page (#102446)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 14:11:15 -05:00
Constance f422cbdcf1
[App Search] Convert API Logs page to new page template + empty state polish (#102820)
* Convert API Logs noItemsMessage to its own empty state prompt

- Will be used by new page template

* Convert API Logs view to new page template

+ use new empty state
+ add tests clarifying loading UX

* Update router

* Fix i18n ID
2021-06-22 11:40:10 -07:00
Joe Portner 00a6bdd401
Allow initialNamespaces to be used for isolated types (#102585) 2021-06-22 20:36:04 +02:00
Lisa Cawley 953a464e94
[Monitoring] Update Kibana rules/alerts language in setup mode (#102441) 2021-06-22 11:21:19 -07:00
Alison Goryachev c33138e5cb
[Rollups] Migrate to new page layout (#102268) 2021-06-22 14:13:48 -04:00
Kevin Logan bfbe6ab0b2
[Security Solution] show case names in isolation success message (#102664) 2021-06-22 14:01:24 -04:00
Jonathan Buttner c5e8df02c1
[Cases] RBAC Bugs (#101325)
* Adding feature flag for auth

* Hiding SOs and adding consumer field

* First pass at adding security changes

* Consumer as the app's plugin ID

* Create addConsumerToSO migration helper

* Fix mapping's SO consumer

* Add test for CasesActions

* Declare hidden types on SO client

* Restructure integration tests

* Init spaces_only integration tests

* Implementing the cases security string

* Adding security plugin tests for cases

* Rough concept for authorization class

* Adding comments

* Fix merge

* Get requiredPrivileges for classes

* Check privillages

* Ensure that all classes are available

* Success if hasAllRequested is true

* Failure if hasAllRequested is false

* Adding schema updates for feature plugin

* Seperate basic from trial

* Enable SIR on integration tests

* Starting the plumbing for authorization in plugin

* Unit tests working

* Move find route logic to case client

* Create integration test helper functions

* Adding auth to create call

* Create getClassFilter helper

* Add class attribute to find request

* Create getFindAuthorizationFilter

* Ensure savedObject is authorized in find method

* Include fields for authorization

* Combine authorization filter with cases & subcases filter

* Fix isAuthorized flag

* Fix merge issue

* Create/delete spaces & users before and after tests

* Add more user and roles

* [Cases] Convert filters from strings to KueryNode (#95288)

* [Cases] RBAC: Rename class to scope (#95535)

* [Cases][RBAC] Rename scope to owner (#96035)

* [Cases] RBAC: Create & Find integration tests (#95511)

* [Cases] Cases client enchantment (#95923)

* [Cases] Authorization and Client Audit Logger (#95477)

* Starting audit logger

* Finishing auth audit logger

* Fixing tests and types

* Adding audit event creator

* Renaming class to scope

* Adding audit logger messages to create and find

* Adding comments and fixing import issue

* Fixing type errors

* Fixing tests and adding username to message

* Addressing PR feedback

* Removing unneccessary log and generating id

* Fixing module issue and remove expect.anything

* [Cases] Migrate sub cases routes to a client (#96461)

* Adding sub cases client

* Move sub case routes to case client

* Throw when attempting to access the sub cases client

* Fixing throw and removing user ans soclients

* [Cases] RBAC: Migrate routes' unit tests to integration tests (#96374)

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>

* [Cases] Move remaining HTTP functionality to client (#96507)

* Moving deletes and find for attachments

* Moving rest of comment apis

* Migrating configuration routes to client

* Finished moving routes, starting utils refactor

* Refactoring utilites and fixing integration tests

* Addressing PR feedback

* Fixing mocks and types

* Fixing integration tests

* Renaming status_stats

* Fixing test type errors

* Adding plugins to kibana.json

* Adding cases to required plugin

* [Cases] Refactoring authorization (#97483)

* Refactoring authorization

* Wrapping auth calls in helper for try catch

* Reverting name change

* Hardcoding the saved object types

* Switching ensure to owner array

* [Cases] Add authorization to configuration & cases routes (#97228)

* [Cases] Attachments RBAC (#97756)

* Starting rbac for comments

* Adding authorization to rest of comment apis

* Starting the comment rbac tests

* Fixing some of the rbac tests

* Adding some integration tests

* Starting patch tests

* Working tests for comments

* Working tests

* Fixing some tests

* Fixing type issues from pulling in master

* Fixing connector tests that only work in trial license

* Attempting to fix cypress

* Mock return of array for configure

* Fixing cypress test

* Cleaning up

* Addressing PR comments

* Reducing operations

* [Cases] Add RBAC to remaining Cases APIs (#98762)

* Starting rbac for comments

* Adding authorization to rest of comment apis

* Starting the comment rbac tests

* Fixing some of the rbac tests

* Adding some integration tests

* Starting patch tests

* Working tests for comments

* Working tests

* Fixing some tests

* Fixing type issues from pulling in master

* Fixing connector tests that only work in trial license

* Attempting to fix cypress

* Mock return of array for configure

* Fixing cypress test

* Cleaning up

* Working case update tests

* Addressing PR comments

* Reducing operations

* Working rbac push case tests

* Starting stats apis

* Working status tests

* User action tests and fixing migration errors

* Fixing type errors

* including error in message

* Addressing pr feedback

* Fixing some type errors

* [Cases] Add space only tests (#99409)

* Starting spaces tests

* Finishing space only tests

* Refactoring createCaseWithConnector

* Fixing spelling

* Addressing PR feedback and creating alert tests

* Fixing mocks

* [Cases] Add security only tests (#99679)

* Starting spaces tests

* Finishing space only tests

* Refactoring createCaseWithConnector

* Fixing spelling

* Addressing PR feedback and creating alert tests

* Fixing mocks

* Starting security only tests

* Adding remainder security only tests

* Using helper objects

* Fixing type error for null space

* Renaming utility variables

* Refactoring users and roles for security only tests

* Adding sub feature

* [Cases] Cleaning up the services and TODOs (#99723)

* Cleaning up the service intialization

* Fixing type errors

* Adding comments for the api

* Working test for cases client

* Fix type error

* Adding generated docs

* Adding more docs and cleaning up types

* Cleaning up readme

* More clean up and links

* Changing some file names

* Renaming docs

* Integration tests for cases privs and fixes (#100038)

* [Cases] RBAC on UI (#99478)

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

* Fixing case ids by alert id route call

* [Cases] Fixing UI feature permissions and adding UI tests (#100074)

* Integration tests for cases privs and fixes

* Fixing ui cases permissions and adding tests

* Adding test for collection failure and fixing jest

* Renaming variables

* Fixing type error

* Adding some comments

* Validate cases features

* Fix new schema

* Adding owner param for the status stats

* Fix get case status tests

* Adjusting permissions text and fixing status

* Address PR feedback

* Adding top level feature back

* Fixing feature privileges

* Renaming

* Removing uneeded else

* Fixing tests and adding cases merge tests

* [Cases][Security Solution] Basic license security solution API tests (#100925)

* Cleaning up the fixture plugins

* Adding basic feature test

* renaming to unsecuredSavedObjectsClient (#101215)

* [Cases] RBAC Refactoring audit logging (#100952)

* Refactoring audit logging

* Adding unit tests for authorization classes

* Addressing feedback and adding util tests

* return undefined on empty array

* fixing eslint

* conditional rendering the recently created cases

* Remove unnecessary Array.from

* Cleaning up overview page for permissions

* Fixing log message for attachments

* hiding add to cases button

* Disable the Cases app from the global nav

* Hide the add to cases button from detections

* Fixing merge

* Making progress on removing icons

* Hding edit icons on detail view

* Trying to get connector error msg tests working

* Removing test

* Disable error callouts

* Fixing spacing and removing cases tab one no read

* Adding read only badge

* Cleaning up and adding badge

* Wrapping in use effect

* Default toasting permissions errors

* Removing actions icon on comments

* Addressing feedback

* Fixing type

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 13:52:03 -04:00
Tiago Costa 3da2ac8927
chore(NA): moving @kbn/ui-framework into bazel (#102908) 2021-06-22 13:11:24 -04:00
David Sánchez 537fcf4ff2
[Security Solution][Endpoint] Don't create event filters list from manifest manager (#102618)
* Check if endpoint event filters list exists before create and create it without specific id

* Removes creation of endpoint event filters list in manifest manager

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 18:49:34 +02:00
Paul Tavares 19d2d17158
[Security Solution][Endpoint] Rename Unisolating and other like words to Releasing (#102582)
* Update all instances of `unisolate` to `release` (along with variation of unisolate)
* just width of Agent Status column on endpoint list
2021-06-22 12:25:10 -04:00
Constance 84d999d747
[App Search] Convert Search UI view to new page template + minor UI polish (#102813)
* Convert Search UI view to use new page template

+ update tests TODO

* [UX polish] Add empty state to Search UI view

- On a totally new engine, all pages except this one* had an empty state, so per Davey's recommendations I whipped up a new empty state for this page

* Overview has a custom 'empty' state, analytics does not have an empty state

* Update router

* Fix bad merge conflict resolution

* [Polish] Copy feedback proposed by Davey

- see cbc3706223
2021-06-22 09:01:25 -07:00
Ignacio Rivas 69a5d01bde
[CCR] Migrate to new page layout structure (#102507)
* wip: start migrating views from ccr

* finish up migrating ccr pages to new nav layout

* Fix tests, linter errors and i18n strings

* remove todo

* Render loading and error states centered in screen without page title

* Keep loader going while we still setting the payload

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 17:47:24 +02:00
Constance 00a9f84951
[App Search] Convert Analytics views to new page template (#102851)
* Convert AnalyticsHeader to AnalyticsFilters

- it's basically the same component as before, but without the title section/log retention tooltip, since the header/title will be handled by the new page template

* Update AnalyticsLayout to use new page template

+ add new test_helper for header children

* Update breadcrumb behavior

- Set analytic breadcrumbs in AnalyticsLayout rather than AnalyticsRouter

- Update individual views to pass breadcrumbs (consistent with new page template API)

* Update router
2021-06-22 08:40:58 -07:00
Andrew Stucki fd0c1fa490
[Agent Packages] Extend 'contains' helper to work on strings (#102786)
* Extend 'contains' helper to work on strings

* remove stray import
2021-06-22 11:30:32 -04:00
David Sánchez c940da4bd0
Wraps query in parentheses to avoid quering exception lists (#102612)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 17:25:41 +02:00
Jean-Louis Leysens 6cc3b84d6f
[Fleet] Add assets tab (#102517)
* very wip

* added new assets screen
* added routes to new assets view on the package details view

* Finished styling the assets page layout, need to work on adding
links

* rather use EuiHorizontalRule

* only show the assets tab if installed

* Added hacky version of linking to assets.

* added comment about deprecation of current linking functionality

* added an initial version of the success toast with a link to the agent flyout

* First iteration of end-to-end UX working. Need to add a lot of tests!

* fixed navigation bug and added a comment

* added a lot more padding to bottom of form

* restructured code for clarity, updated deprecation comments and moved relevant code closer together

* added a longer form comment about the origin policyId

* added logic for handling load error

* refactor assets accordions out of assets page component

* slightly larger text in badge

* added some basic jest test for view data step in enrollment flyout

* adjusted sizing of numbers in badges again, EuiText does not know about size="l"

* updated size limits for fleet

* updated styling and layout of assets accordion based on original
designs

* remove unused EuiTitle

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 17:10:37 +02:00
John Dorlus 494a841a59
Unskipping test to test on Firefox. (#102839)
* Unskipping test to test on Firefox.

* Added .only to only run those tests

* Reenabled test after troubleshooting tests. No failures on FF.
2021-06-22 10:59:47 -04:00
Jonathan Budzenski 11e68fda87
[packages] Move @kbn/interpreter to Bazel (#101089)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 09:59:20 -05:00
Corey Robertson 46f43784b0
Handle element changing into a filter (#97890)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 10:56:47 -04:00
Corey Robertson 1397461aca
Fixes onDestroy handler (#101959)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 10:56:17 -04:00
Marco Liberati a2e7b388a4
[Lens] Update dimension panel copy to suggested one (#102890) 2021-06-22 16:30:02 +02:00
Marco Liberati 0ba8b43228
[Lens] Clicking number histogram bar applies global filter instead of time filter (#102730)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 16:28:10 +02:00
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
Candace Park 55b35fdf14
[Security Solution][Endpoint][Host Isolation] Isolation status badge from alert details (#102274) 2021-06-18 17:25:29 -04:00
Kuldeep M 31aa1c8a59
[Workplace Search] remove or replace xs props for text on source connect view (#102663)
* remove xs props for text on source connect view

* change more text sizes
2021-06-18 21:11:25 +01:00
Shahzad 303806de65
[Exploratory View] Mobile experience (#99565)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Bryce Buchanan <bryce.buchanan@elastic.co>
Co-authored-by: Alexander Wert <alexander.wert@elastic.co>
2021-06-18 17:30:53 +02:00
Tiago Costa cee33b004c
chore(NA): moving @kbn/ui-shared-deps into bazel (#101669)
* chore(NA): moving @kbn/io-ts-utils into bazel

* chore(NA): moving @kbn/ui-shared-deps into bazel

* chore(NA): compelte working build for @kbn/ui-shared-deps

* chore(NA): solve eslint problems

* chore(NA): solve typechecking

* chore(NA): debugger changes

* chore(NA): update optimizer basic integration tests

* chore(NA): ship kbn/ui-shared-deps metrics.json from new location at shared_built_assets

* chore(NA): use correct ui-shared-deps metrics file location

* chore(NA): remove webpack bazel config

* chore(NA): implement improvements on webpack config

* chore(NA): remove extra comment

* chore(NA): try esbuild-loader minimizer

* Revert "chore(NA): try esbuild-loader minimizer"

This reverts commit bffc49aaae.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 16:09:31 +01:00
Candace Park d65416c60c
[Security Solution][Endpoint][Host Isolation] Fixes bug where host isolation/unisolation works from alert details (#102581) 2021-06-18 10:26:10 -04:00
Felix Stürmer ee1710cf39
[Logs UI] Add event.original fallback to message reconstruction rules (#102236)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 14:50:58 +02:00
David Roberts e518865225
[ML] Remove blank job definition as it is unused and out-of-sync with Elasticsearch (#102506)
This a companion to elastic/elasticsearch#74188.

This PR is functionally a no-op, as the removed method
was not called anywhere. But it is sensible to remove
it to prevent it being called in the future now that it
references fields that don't exist in Elasticsearch.
2021-06-18 10:49:28 +01:00
Marco Liberati ae99824880
[Lens] Fix wrong error detection on transition to Top values operation (#102384) 2021-06-18 10:45:23 +02:00
James Gowdy 0ef1c3d735
[ML] Anomaly detection job custom_settings improvements (#102099)
* [ML] Anomaly detection job custom_settings improvements

* filter improvements

* translations

* fixing types

* fixing tests

* one more test fix

* fixing bug with expanded row

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 09:31:29 +01:00
Christos Nasikas 7267f505a5
[Cases] Route: Get all alerts attach to a case (#101878)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
2021-06-18 10:57:17 +03:00
David Sánchez a8020ddb89
Fixes wrong list exception type when creating endpoint event filters list (#102522) 2021-06-18 09:33:25 +02:00
Ashokaditya 6672baf9a2
remove search bar that's not working yet (#102550)
fixes elastic/kibana/issues/102469
2021-06-18 08:31:58 +02:00
John Dorlus 7e04e1795c
Migrated Ingest Node Pipeline Functional Tests to use test_user (#102409)
* Used test user and added appropriate kibana privileges for Ingest Node Pipeline functional tests.

* Updated ingest pipelines test config to have read permissions in advanced settings.

* Updated test to account for the fact that advanced settings will be visible due to kibana permissions.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 23:18:37 -04:00
Nathan Reese eea78b7737
[Maps] clean up feature editing name space to avoid conflicts with layer settings editing (#102516)
* [Maps] clean up feature editing name space to avoid conflicts with layer settings editing

* update vector_source

* mvt_single_layer_vector_source udpates

* review feedback
2021-06-17 19:52:31 -06:00
Clint Andrew Hall 08ba5b3f4b
[canvas] Refactor Storybook from bespoke to standard configuration (#101962) 2021-06-17 18:57:44 -04:00
Ece Özalp b5f0bc9faa
[Security Solution] adds wrapSequences method (RAC) (#102106)
adds wrapSequences method
2021-06-17 16:54:38 -04:00
Constance 02c1c61828
[Workplace Search] Convert Groups pages to new page template (#102449)
* Convert Groups page to new page template

* Convert Groups > Group overview to new page template

- Because dataLoading is no longer an early return, certain items need to be converted to conditional checks in order for the app to not crash

* Convert Groups > source prioritization to new page template

* Convert Group subnav to EuiSideNav format

* Update routers
2021-06-17 16:01:24 -04:00
Paul Tavares a24d3a705f
[Security Solution][Endpoint] Suppress some of the jest console.error noise created by endpoint list middelware (#102535)
* Mock KibanaServices with services from app context renderer + fix error noise in endpoint host tests
* silence more error noise to the console
* Added options to the ApiHandlerMock function to be able to suppress errors to the console
* Endpoint list - Refactor Fleet mocks for reuse
* Add default http mocks to the app context render test utility
2021-06-17 15:11:38 -04:00
Alejandro Fernández Gómez cd5cd65fb2
[Fleet] Improve performance of Fleet setup (#102219)
* Remove endpoint from the default packages

* Change the default spinner for the initial load

* Export fleet endpoint package as a constant

* Use constants for special packages

* Simplify type signature of `isRequiredPackage`

* Remove unused types

* Simplify required and default package definitions

* Treat REQUIRED_PACKAGES as independent from DEFAULT_PACKAGES

We want to keep the assumption that the lists contain the same packages
only in `epm/constants.ts`

* Install all default packages, not only the required ones

* Document the purpose of each package list

* Handle auto-update for non-default packages

* Make `endpoint` non-removable

* Make endpoint package be installed by default in tests

* Rename requiredPackages to unremovablePackages

* Fix type check

* Add Endpoint to be installed by default on Fleet tests too

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-06-17 11:58:41 -07:00
Chris Roberson 9bbb9e4128
[Alerting] Add event log entry when a rule starts executing (#102001)
* Add event log entry when a rule starts executing

* Add in alertId

* Add more logging and fix tests

* Use existing startTiming logic

* Add additional tests
2021-06-17 14:58:13 -04:00
John Schulz db34f0c6af
[Fleet] Update docker image of registry used in integration tests (#101911)
## Summary

 * Use a more recent Docker image for package registry used in integration/API tests. 
    * [New image](https://container-library.elastic.co/r/package-registry/distribution:fc104ac437370d80518e24da6d0b84370edf0c0c) is from Jun-14 [old image](https://container-library.elastic.co/r/package-registry/distribution:b6a53ac9300333a4a45f3f7d350c9aed72061a66) is from Apr-14
 * Add support for using a custom Docker registry using `FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE` env var
    * e.g. `production` tag
    ```
    FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE='docker.elastic.co/package-registry/distribution:production' FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner
    ```
    or a personal one
    ```
    FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE='docker.elastic.co/employees/jfsiii/package-registry-distribution:kb90454' FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner

    ```

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-06-17 14:55:17 -04:00
Bryan Clement 62f3a55cd8
[Asset Management] Osquery telemetry updates (#100754)
* first pass of basic osquery usage stats collection

* updates, linting

* updated exported metrics

* clean up comments, add description fields to metric fields

* reworked types

* actually use the updated types

* added tests around the route usage recoder functions

* review comments

* update aggregate types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 14:53:27 -04:00