Commit graph

38555 commits

Author SHA1 Message Date
Scotty Bollinger 0fe8a65a23
[Workplace Search] Migrate DisplaySettings tree (#84283)
* Initial copy/paste of components

Changes for pre-commit hooks were:

- Linting
- Lodash imports
- Fixed warnings for `jsx-a11y/mouse-events-have-key-events` with stubbed onFocus and onBlue events with FIXME comments

* Add server routes

* Remove reference to shared lib

This one-liner appears only once in ent-search so adding it here in the logic file`

* Fix paths

* Add types and fix TypeScript issues

* Replace FlashMessages with global component

* More explicit Result type

* Remove routes/http in favor of HttpLogic

* Fix server routes

`urlFieldIsLinkable` was missing and `detailFields` can either be an object or an array of objects

* Add base styles

These were ported from ent-search. Decided to use spacers where some global styles were missing.

* Kibana prefers underscores in URLs

Was only going to do display-settings and result-details but decided to YOLO all of them
2020-11-25 09:00:10 -06:00
Brandon Kobel 58297fa131
Deprecate xpack.task_manager.index setting (#84155)
* Deprecate `xpack.task_manager.index` setting

* Updating developer docs about configuring task manager settings
2020-11-25 06:36:24 -08:00
Liza Katz b3430e3f09
[Search] Search batching using bfetch (again) (#84043)
Re-merging after cypress fixes
2020-11-25 16:32:05 +02:00
Rudolf Meijering 5ee0104fe1
Use .kibana instead of .kibana_current to mark migration completion (#83373) 2020-11-25 15:20:56 +01:00
Chris Roberson ced1dadb8a
[Monitoring] Only look at ES for the missing data alert for now (#83839)
* Only look at ES for the missing data alert for now

* PR feedback

* Fix tests
2020-11-25 08:50:03 -05:00
Chris Roberson 0f780229b5
Put the cluster_uuid in quotes (#83987)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-25 08:49:17 -05:00
Søren Louv-Jansen 4367a10d1b
[APM] Rename ChartsSyncContext to PointerEventContext (#84272) 2020-11-25 12:44:02 +01:00
Pete Harverson c1b807eda3
[ML] Fix Anomaly Explorer population charts when multiple causes in anomaly (#84254) 2020-11-25 11:36:31 +00:00
Joe Reuter 09e326e136
[Lens] Fix label input debouncing (#84121) 2020-11-25 12:12:43 +01:00
Matthias Wilhelm f294a9e2ab
[Discover] Refactor discover.js controller topnav code (#79062)
* Move discover.js functions to helper functions in separate files

* Convert to TypeScript

* Add unit tests

* Add removeField function to SearchSource
2020-11-25 11:07:08 +01:00
Patryk Kopyciński 4aa1683b3b
[Security Solution] Cleanup graphiql (#82595) 2020-11-25 10:45:32 +01:00
Marco Liberati 6cd4d84657
[Lens] Fix Treemap outer labels with transparent background (#84245) 2020-11-25 10:29:08 +01:00
Joe Reuter a763d3302f
[Lens] Calculation operations (#83789) 2020-11-25 09:43:23 +01:00
Jean-Louis Leysens 8dfa489da2
[ILM] Relax POST policy route validation (#84203)
* relax policy post route validation

* update comment
2020-11-25 09:28:20 +01:00
Uladzislau Lasitsa 80dfd91abf
[TSVB] Remove jQuery dependency from plugins (#83809)
* Use rxjs instead of jquery for eventBus.

* Fix comments

* Removed one check because property is private.

* Resolve comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-25 11:09:59 +03:00
Tiago Costa aa8ec78060
chore(NA): enable yarn prefer offline and local mirror for development (#84124)
* chore(NA): enable --prefer-offline by default

* chore(NA): use prefer offline in the yarnrc

* chore(NA): update kbn pm

* chore(NA): add yarn offline mirror integration

* chore(NA): remove non wanted prune feature due to switching between branches

* chore(NA): re-introduce babel require hook
2020-11-25 00:18:18 +00:00
Christiane (Tina) Heiligers a1b568b604
Changes code ownership from kibana-telemetry to kibana-core (#84281) 2020-11-24 16:32:46 -07:00
Ryland Herrick 2ce1e09aad
[Security Solution][Detections] Rule Form Fixes (#84169)
* Prevent error from being displayed when choosing action throttle

Addresses #83230.

This field was previously refactored to not require a callback prop;
simply updating the value via `field.setValue` is sufficient for our use
case.

This fix removes the errant code that assumed a callback prop, since
such a prop does not exist on the underlying component.

* Fix UI bug on ML Jobs popover

EUI links now add an SVG if they're an external link; our use of a div
was causing that to wrap. Since the div was only needed to change the
text size, a refactor makes this all work.

* Exercise editing of tags in E2E tests

These tests were recently skipped due to their improper teardown. Since
that's a broader issue across most of these tests, I'm reopening these
so we can get the coverage provided here for the time being.

* useFetchIndex defaults to isLoading: false

In the case where no index pattern is provided, the hook exits without
doing any work but does not update the loading state; this had the
downstream effect of disabling a form field that was waiting for this
hook to stop loading.

* Move situational action into ... the situation

We only need to clear existing tags in the case where we're editing the
rule (and it has tags); in all other cases, this method fails. This
fixes things by moving that conditional logic (clear the tags field)
into the test that needs it (editing custom rules).
2020-11-24 17:03:56 -06:00
Nicolas Chaulet 5f53d856c0
[Fleet] Only display log level in Filter that are present in the logs (#84277) 2020-11-24 17:54:26 -05:00
Lukas Olson f80da6cc39
[data.search] Simplify poll logic and improve types (#82545)
* [Search] Add request context and asScoped pattern

* Update docs

* Unify interface for getting search client

* Update examples/search_examples/server/my_strategy.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Review feedback

* Fix checks

* Fix CI

* Fix security search

* Fix test

* Fix test for reals

* Fix types

* [data.search] Refactor search polling and improve types

* Fix & update tests & types

* eql totals

* doc

* Revert "eql totals"

This reverts commit 01e8a06847.

* lint

* response type

* shim inside strategies

* shim for security

* fix eql params

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-25 00:38:12 +02:00
Dima Arnautov dc15aa8ea2
[ML] Fix swim lane for top influencers (#84258)
* [ML] fix swim lane with page size for top influencers, fix swim lane sorting

* [ML] fix typo
2020-11-24 23:26:08 +01:00
Tiago Costa 9ee1ec7f30
chore(NA): rebalance x-pack cigroups (#84099)
* chore(NA): rebalance cigroup1 into cigroup5

* chore(NA): get list api integration into cigropup1 again

* chore(NA): get apm integration basic into cigropup1 again

* chore(NA): move back apm_api_integration trial tests into ciGroup1

* chore(NA): move exception operators data types into ciGroup1 again

* chore(NA): move detection engine api security and spaces back into ciGroup1

* chore(NA): add a new xpack cigroup11

* chore(NA): correctly create 11 xpack ci groups

* chore(NA): try to balance ciGroup2 and 8

* chore(NA): reset number of xpack parallel worker builds to 10

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 21:33:47 +00:00
Thomas Watson 115916956d
Use correct version of Podium (#84270) 2020-11-24 22:15:35 +01:00
Brandon Kobel 13808e019e
Deprecate kibana.index setting (#83988)
* Deprecating `kibana.index` setting

* Using ela.st service so this can be changed to the blog in the future

* Adding unit tests

* Revising deprecation log message

* Changing the deprecation log message to be more consistent with others

* Updating kibana.index docs also

* Using rename deprecation as the "standard" for the deprecation messages

* /s/'/`
2020-11-24 12:28:15 -08:00
Thomas Watson cc35065f5a
Update example docs with correct version of Boom (#84271) 2020-11-24 21:22:58 +01:00
Thomas Neirynck 3612e3f98d
[Maps] fix code-owners (#84265) 2020-11-24 14:36:57 -05:00
Tyler Smalley e8a4b7e7dd
[@kbn/utils] Clean target before build (#84253)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-11-24 11:33:34 -08:00
Dmitry 2634009a5b
[code coverage] collect for oss integration tests (#83907)
* [code coverage] collect for oss integration tests

* do not run snapshot test modified with coverage

* skip failures

* remove debug msg

* update file names

* Update packages/kbn-optimizer/src/integration_tests/basic_optimization.test.ts

Co-authored-by: Spencer <email@spalger.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Spencer <email@spalger.com>
2020-11-24 20:32:35 +01:00
Søren Louv-Jansen 31a5b15250
[APM] Use asTransactionRate consistently everywhere (#84213) 2020-11-24 19:27:24 +01:00
Mikhail Shustov d47460d08d
Attempt to fix incremental build error (#84152)
* make fetch compatible with CollectorFetchMethod

* use Alejandros suggestion
2020-11-24 18:56:35 +01:00
Anton Dosov c2026dfa7a
Unskip "Copy dashboards to space" (#84115) 2020-11-24 18:54:49 +01:00
Corey Robertson 9055574fa2
Remove expressions.legacy from README (#79681)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 12:42:46 -05:00
Joe Reuter 38a09b99c4
Expression: Add render mode and use it for canvas interactivity (#83559) 2020-11-24 18:42:02 +01:00
Jonathan Budzenski 5bc4d75256
[deb/rpm] Move systemd service to /usr/lib/systemd/system (#83571)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 11:26:46 -06:00
Jonathan Buttner 5e183dd46d
[Security Solution][Resolver] Allow a configurable entity_id field (#81679)
* Trying to flesh out new tree route

* Working on the descendants query

* Almost working descendants

* Possible solution for aggs

* Working aggregations extraction

* Working on the ancestry array for descendants

* Making changes to the unique id for  ancestr

* Implementing ancestry funcitonality

* Deleting the multiple edges

* Fleshing out the descendants loop for levels

* Writing tests for ancestors and descendants

* Fixing type errors and writing more tests

* Renaming validation variable and deprecating old tree routes

* Renaming tree integration test file

* Adding some integration tests

* Fixing ancestry to handle multiple nodes in the request and writing more tests

* Adding more tests

* Renaming new tree to handler file

* Renaming new tree directory

* Adding more unit tests

* Using doc value fields and working on types

* Adding comments and more tests

* Fixing timestamp test issue

* Adding more comments

* Fixing timestamp test issue take 2

* Adding id, parent, and name fields to the top level response

* Fixing generator start and end time generation

* Adding more comments

* Revert "Fixing generator start and end time generation"

This reverts commit 9e9abf68a6.

* Adding test for time

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 11:57:23 -05:00
James Gowdy 24f262b9ca
[ML] Space permision checks for job deletion (#83871)
* [ML] Space permision checks for job deletion

* updating spaces dependency

* updating endpoint comments

* adding delete job capabilities check

* small change based on review

* improving permissions checks

* renaming function and endpoint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 16:29:32 +00:00
Tyler Smalley e892b03173
[build] Provide ARM build of RE2 (#84163)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-11-24 08:24:26 -08:00
Alexey Antonov 6ef6c0fa4d
TSVB should use "histogram:maxBars" and "histogram:barTarget" settings for auto instead of a default 100 buckets (#83628)
* TSVB needs a "tsvb:max_buckets" target setting for auto instead of a default 120 buckets

Closes: #54012

* remove calculate_auto

* max bars -> Level of detail

* rename allowLevelofDetail

* fix PR comment

* Update constants.ts

* Update src/plugins/vis_type_timeseries/public/application/components/index_pattern.js

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* create LEVEL_OF_DETAIL_MIN_BUCKETS constant

* calcAutoIntervalLessThan -> search.aggs.calcAutoIntervalLessThan

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2020-11-24 19:19:06 +03:00
Scotty Bollinger a12bb04438
[Workplace Search] Initial rendering of Org Sources (#84164)
* Fix broken routes

Didn’t have a way to test these when created

* Get context from global state

No need to do this in 2 places now. There was a race condition where the default logic value for `isOrganization` was set to `false` We don’t need a useEffect call here because the value is synchronous and has no side effects. Calling the method directly fixes the race condition.

* Add the ‘path’ to the logic files for easier debugging

* Add SourceSubNav component

* Flip routes to match new convention

It was decided by Product that instead of keying off of `/org` to determine context, that we would now flip it where we key of provate with `/p`.

This means that /sources is now organization where before it was personal

* Convert routers to use children instead of props

This aligns with App Search and allows for easier telemtry and breadcrumbs

* Add breadcrumbs and basic telemetry

* Add in and refactor subnavigation

As a part of this commit, the approach for rendering subnavs was refactored to align with App Search.

There was a bug where some components weren’t rendering properly because the SourceLogic and GroupsLogic files were never unmounting. The reason for this is the subnav components use their respective logic files to get the IDs needed for rendering the subnav links. That is, SourceSubNav would call SourceLogic to get the ID to render the links and would stay rendered for the duration of the user’s time in the app. The result is that users would leave the source details page and navigate to add a new source and the logic file would never reset to a loading state and the UI would break.

The fix was to borrow from the pattern App Search uses and pass the subnavs as props. Because App Search only uses a single engines subnav, they only needed one prop. We use multiple props for each subnav.

Also, the subnav should not be rendered on the root routes (/sources, /p/sources, and /groups) so conditionals were added to only render the subnavs when not on those root routes.

* Add FlashMessages

* Fix some failed tests

Missed this in first commit

* Update SourceIcon to use EuiIcon

Before this change, the legacy styles were not ported over. This gives a uniform size for both wrapped and unwrapped icons. The icons are a bit smaller on the add source page but Eui has lowered it’s largest size ‘xxl’ and we would need to write manual overrides. IMO the change is not significant enough to override.

* Fix broken icons

* Replace legacy div with component

The eui.css file in ent-search is no longer up to date with current EUI and this was broken. The best fix was to use the component that renders as expected

* Add base styles for Sources

More in a future PR but this makes the majority of things look correct.

* Cleanup

Fix some type errors and rename constants

* Couple more failing tests

We have multiple `Layouts` now with the new subnavs

* Fix prepare routes

Like the first commit, missed these when porting over routes with no UI.

* Clean up the desgin of the source connect screen

The columns were way off in Kibana

* Remove ORG_PATH const

No longer needed since ‘/org’ is gone
2020-11-24 10:16:33 -06:00
Dmitry 5f844bfb6a
update geckodriver to 0.28 (#84085) 2020-11-24 16:59:18 +01:00
Daniil b312c91010
Fix timelion vis escapes single quotes (#84196)
* Remove string escaping

* Add unit test
2020-11-24 18:16:06 +03:00
Angela Chuang d80e8ca2ee
[Security Solution] Fix incorrect time for dns histogram (#83532)
* getSuitableUnit

* update dns histogram query

* update dns query

* update dns histogram query

* fix type error

* fix lint error

* remove unused comments

* fix histogram query size

* revert change

* fix unit test

* fix dns request options

* clean up

* cleanup types

* fix dependency

* review

* review

* revert

* restore docValueFields

* fix unit test

* cleanup

* restore docValueFields for dns histogram

* review

* review

* lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-24 15:06:21 +00:00
Mikhail Shustov 5ec6fe315f
[DX] Bump TS version to v4.1 (#83397)
* bump version to 4.1.1-rc

* fix code to run kbn bootstrap

* fix errors

* DO NOT MERGE. mute errors and ping teams to fix them

* Address EuiSelectableProps configuration in discover sidebar

* use explicit type for EuiSelectable

* update to ts v4.1.2

* fix ts error in EuiSelectable

* update docs

* update prettier with ts version support

* Revert "update prettier with ts version support"

This reverts commit 3de48db3ec.

* address another new problem

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2020-11-24 16:04:33 +01:00
Dan Panzarella 72f36b41f9
[Security Solution] Add endpoint policy revision number (#83982) 2020-11-24 09:59:41 -05:00
Paul Tavares 9521ac4fed
[Fleet] Integration Policies List view (#83634)
* Show table with list of Integration polices
* hook to support list pagination that uses/persist to the URL
2020-11-24 09:43:21 -05:00
Dima Arnautov bfbb43e59b
[ML] Improve browser history navigation (#83792)
* [ML] replace history support

* [ML] explorer url state

* [ML] timeseriesexplorer url state

* [ML] fix state keys for mlSelectSeverity and mlSelectInterval

* [ML] fix useSelectedCells

* [ML] update urls and tests in security app

* [ML] fix TS

* [ML] fix apm unit tests

* [ML] fix typo

* [ML] remove state sync

* [ML] fix initial zoom set

* [ML] fix initial zoom set

* [ML]: update with useMlHref

* [ML] fix TS issue
2020-11-24 15:29:32 +01:00
Mikhail Shustov b3d97764a0
Move streams to kbn/utils (#84033)
* move streams to kbn/std

* import streams from kbn/std

* fix styles

* remove unused shareWeakReplay

* move from kbn/std to kbn/utils

* import from subfolder since test mocks FS module and not compatible with kbn/utils

* remove new line at the end of json file
2020-11-24 15:19:18 +01:00
Nicolas Chaulet e4ff981b94
[Ingest Manager] UI to configure agent log level (#84112) 2020-11-24 08:41:13 -05:00
Diana Derevyankina fc9c19574e
[Vega] Tutorials should be updated to include new inspector (#83797)
* [Vega] Tutorials should be updated to include new inspector

* Revert unnecessary changes

* Add titles to the screenshots. paste the link to vega inspector and remove experimental caption

* Update some captions

* Update docs/user/dashboard/tutorials.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2020-11-24 15:51:06 +03:00
Robert Oskamp a31445f940
Fix advanced settings API integration tests on cloud (#84110)
This PR fixes the advanced settings feature controls API integration tests for cloud and moves some deployment helper methods to a separate service.
2020-11-24 13:46:51 +01:00