Commit graph

30451 commits

Author SHA1 Message Date
Liza Katz 479223b0a1
Update plugin generator to generate NP plugins (#55281)
* Generate NP plugin

* Added tsconfig

* tsconfig

* Adjust sao test

* Add server side to plugin gen

* Added navigation

* add empty element

* eslint

* platform team CR

* design CR improvements

* text updates

* temp disable plugin gen tests

* eslint

* Code review fixes

* Add scss support - requires #53976 to be merged to work

* CR fixes

* comment fixes

* Don't generate eslint for internal plugins by default

* Update tests

* reenable jest test for sao

* Fix regex

* review comments

* code review

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 19:29:59 +02:00
Wylie Conlon 4f4d3d753c
[Lens] Fix bugs in Lens filters (#56441)
* [Lens] Fix bug where filters were not displayed

* Fix #55603

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 11:19:41 -05:00
Ryland Herrick d45fd48274
[SIEM] Use Core HTTP Client (#54210)
* Replace uses of chrome.getBasePath and fetch with core.http

While core.http is coming from 'above' these functions, it doesn't make
a lot of sense to pass the client through the entire stack to be able to
call it at the bottom, because longer-term we'll abstract these http calls
with some redux middleware.

In the short term we have a mechanism to refer to core through a
singleton, 'ui/new_platform', which should be around until 8.0 at least.
Ideally, we'll have a more robust architecture in place by then. If not,
we can reproduce the singleton module ourselves.

* Fix index patterns API call

core.http.fetch doesn't like a querystring in the path argument, so we
move it to the query object instead. The 'type' field specifier is
redundant as the type is always returned (and not as an attribute).

* Refactor getIndexPatterns to use the savedObjects client

We lose the updated_at field by using the client, but we weren't
actually using it.

I don't _think_ that the savedObjects client supports request aborts
right now, but when it does we'll get that back for free.

* Pass query params as object to core.http

A request with query params in its path does not properly encode said
params (the '?', at the very least), leading to malformed requests that
result in 404s.

* Remove redundant API logic

This function was originally used to query both an individual rule and a
list of rules, but the former functionality has been moved to
fetchRuleById.

* Allow throwIfNotOk to handle an undefined response

This is also an error for us, and we throw as such..

* Convert new Rules APIs to use core.http

These all occurred on master, this fixes them post-merge.

* Refactor Signals requests expecting custom Errors

These requests package up error responses in custom errors, which
callers are expecting. We should refactor all of these calls to behave
similarly, but for now let's just not break existing ones.

* Remove default credentials specification

The default is credentials: 'same-origin', and so we can omit it.

* Update types in new uses of hook

This savedObject type is slightly modified now that the hook is using
the NP savedObjects client.

* Replace explicit system header with fetch option

The asSystemRequest option accomplishes the same thing without requiring
us to know the implementation. With the addition of this option, setting
this header explicitly causes an error.

This also removes the credentials: same-origin specifier as it is the
default.

* Remove redundant awaits

The response has previously been resolved, and so our body should be
populated, here.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 10:12:32 -06:00
Shahzad 95e40e7fa3
[Uptime] Refresh absolute date ranges for Ping Histogram (#56381)
* fix abs date mismatch

* fixed types

* update pr

* simplify params

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 16:22:38 +01:00
Vadim Dalecky c86ee1b6ea
chore: 🤖 add AppArch plugins to CODEOWNERS (#56397)
* chore: 🤖 add AppArch plugins to CODEOWNERS

And sort the list alphabetically.

* chore: 🤖 add @kbn/interpreter to AppArch CODEOWNERS

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 07:05:39 -08:00
Vadim Dalecky 85988386b6
Containers (#56571)
* refactor: 💡 move state containers to /common folder

* refactor: 💡 remove RecursiveReadonly type in state containers

* fix: 🐛 assume we are in production by default on server-side

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 07:04:23 -08:00
Felix Stürmer 1c849acdd5
[Logs UI] Add smoke tests for log rate and categories tabs (#55088)
This adds function smoke tests for the new log rate and categories tabs in the Logs UI.
2020-02-03 16:00:17 +01:00
Justin Kambic 7dc8c6f9ba
[Uptime] Fix flaky functional test for #54541 (#56449)
* Add timeout block to race-prone functional test code.

* Add timeout for pagination click functions.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 07:51:53 -07:00
Dima Arnautov b64f0a76fd
[ML] Setup apiDocs to generate routes docs (#56006)
* [ML] setup typedoc to generate routes docs

* [ML] remove typedoc packages

* [ML] apiDoc

* [ML] update optional params

* [ML] address pr comments

* [ML] change names

* [ML] change description for GetDataFrameAnalyticsMessages

* [ML] add custom order
2020-02-03 15:33:57 +01:00
Victor Martinez c76519e15c
enable darwin for the node installation in the CI (#51705)
* enable darwin for the node installation in the CI

* refactor: avoid hardcode strings and customise based on the OS flavour

* fix classifier

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 08:02:28 -06:00
Peter Pisljar f2713659f6
filtering (making it work with expressions) (#55351)
* adding meta information to KibanaDatatable

* updating filtering functions to use new information

* moving filter creation to APPLY_FILTER_ACTION

* adding SELECT_RANGE_ACTION and TRIGGER

* making _meta optional

* inlining legacy code for inspector

* fixing jest tests

* keeping apply_filter_action and adding value_click_action and trigger

* utilities for serializing/unserializing aggConfigs

* renaming prop to indexPatternId

* cleanup

* updating interpreter functional baselines

* trying to fix tests

* Fix legend tests

* reverting update to multi metric screenshot

* updating based on review

* updating tests

Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 09:01:34 -05:00
Aleh Zasypkin 8def60e1da
Unify Security and EncryptedSavedObjects public contract names according to NP migration guide. (#56597) 2020-02-03 14:43:10 +01:00
Mikhail Shustov 598968f20f
fix duplicate header warning (#56491)
logged when attaching 2+ headers due to excessive check

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 13:33:19 +01:00
patrykkopycinski 3d96e4c95b
[SIEM] Fix Welcome to SIEM typo (#56582) 2020-02-03 13:24:38 +01:00
Pierre Gayvallet 38dc1cbd3c
Migrate es-archiver to typescript (#56008)
* migrate lib/archives and lib/docs

* migrate lib/indices

* migrate end of /lib

* migrate /actions

* migrate es_archiver

* migrate cli

* migrate tests

* use proper log stub

* add Record typing

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-03 12:03:50 +01:00
Gidi Meir Morris fe86a86d14
adds the AlertDetails page (#55671)
This PR adds an Alerts Details page, linked from the Alerts List.

It includes:
Header containing details about the Alert.
Quick Enable / Mute buttons for the Alert
Disabled buttons to the _Edit Alert+ flyout (waiting on #51545), View in App (waiting on #56298) and Activity Log (waiting on #51548)
2020-02-03 11:02:29 +00:00
Pierre Gayvallet cc9ff6da56
avoid 'app not found' flickering while awaiting for mount (#56483) 2020-02-03 09:57:55 +01:00
Jean-Louis Leysens 27a4fe2ef4
[Console] Fix use of legacy config (#56468)
* Fix use of legacy config

* Add types for ssl
2020-02-01 16:38:30 +01:00
Xavier Mouligneau 7b876c05f4
fix 508 (#56520) 2020-02-01 08:03:51 -05:00
Xavier Mouligneau 0a17cde3fb
[SIEM] [Detections] [BUG] Feedback to user about generated encryption key (#56464)
* wip

* Expose whether the encryption key is randomly generated for saved-objects

* give feedback to user if encryption key is randomly generated

* remove package distributable

* update msg for no api integration key

* Update x-pack/plugins/encrypted_saved_objects/server/config.ts

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* review II

* fix type

* rename encryptionKeyRandomlyGenerated ->  usingEphemeralEncryptionKey

* fix test and mistake

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
2020-01-31 18:34:59 -05:00
Shahzad 49e9c793df
[Uptime] Update relative time handling (#55693)
* update relative time handling

* fix type

* update logic to handle end date

* fix test

* PR feedback

* refactor code

* refactor interval time

* fix tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-01 00:20:29 +01:00
Nathan L Smith 1c705d8248
APM Service Map popover fixes round 1 (#56502)
Some fixes for #54405.

* Use the `popoverPositionFluid` method of `EuiPopover` to properly position the arrow based on where the popover was opened
* Rearrange the variable declarations and effects in the popover index
* Create a `Contents` component to separate the internals of the popover from the index, where the poisitioning is done
* Add a story to show the contents rendering
2020-01-31 17:06:06 -06:00
Alex Holmansky 3c2c689e98
Use diagnostics-enable action in the workflow. Issue: #56526 (#56530) 2020-01-31 17:19:16 -05:00
Xavier Mouligneau 3601602feb
fix update severity (#56527) 2020-01-31 16:32:30 -05:00
Xavier Mouligneau c72e8e0986
[SIEM] [Detections] Import rules (#56389)
* refactor import rules to do it by batch

* fix error msg on api to match with json contract

* review I

* fix export
2020-01-31 16:32:20 -05:00
Catherine Liu 8d54fa8363
[Canvas] Migrate Shareable Routes to NP (#56053)
* Migrated shareables routes to NP

* Added tests
2020-01-31 13:47:41 -07:00
Tim Sullivan c2a6e7571b
[Reporting] Use ES plugin from NP (#56209)
* [Reporting] Use ES plugin from NP

* fix elasticsearchErrors reference

* fix mocha test

* convert to jest

* fix the code and tests

* cosmetics

* fix mocha tests

* fix imports

* fix mocha tests

* fix jest

* simplify

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-31 12:50:17 -07:00
Larry Gregory 74ee0d0ba4
[Docs] - Deprecate kibana_user role (#54606)
* rename kibana_user => kibana_admin

* add migration note

* [DOCS] Fixes link for use in multiple books

* i18n fixes after merge from master

* fix i18n

* Apply suggestions from code review

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Apply suggestions from code review

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
2020-01-31 14:26:12 -05:00
Yara Tercero e24863ed86
[SIEM][Detection Engine] Modified gap detection util to accept all dateMath formats (#56055)
* Partial commit - got tests working and `getGapBetweenRuns` working with `from`  and `to` being any string (invalid, ISO string, now, now-x).

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-31 12:30:19 -05:00
Kaarina Tungseth 440a37a6db
[DOCS] Share options for Visualize (#56407)
* [DOCS] Share options for Visualize

* Removed files

* Comments from Gail
2020-01-31 11:11:07 -06:00
Shahzad 2260e7cdbe
[Uptime] Added location overview in monitor in status column (#55720)
* Reintroduce a column for url.

* Reintroduce original URL column.

* added location overview column

* fix types

* update snaps

* Update busted test snapshots.

* Update x-pack/legacy/plugins/uptime/public/components/functional/monitor_list/monitor_list_status_column.tsx

Co-Authored-By: Justin Kambic <justin.kambic@elastic.co>

* update test

* rename

* update mobile layout

* update column laytout

* fixed i18n

* remove icon

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-31 18:10:34 +01:00
Rudolf Meijering f1068cdbff
Perform successful Elasticsearch version check before migrations (#51311)
* Convert parts of Elasticsearch version check to ts
* Move ES version check to NP
* Improve types
* Wait till for compatible ES nodes before SO migrations
* Don't wait for ES compatibility if skipMigrations=true
* Legacy Elasticsearch plugin integration test
* Make ES compatibility check and migrations logging more visible
* Test for isCompatible=false when ES version check throws
* Start pollEsNodesVersion immediately
* Refactor pollEsNodesVersion
2020-01-31 08:49:33 -08:00
Kerg09 1bb4d77479
Adds Query.AI to known-plugins.asciidoc (#50516)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-31 11:45:37 -05:00
Nathan Reese 38c7d3a668
[Maps] disable style forms when they are not applied due to other style settings (#55858)
* [Maps] disable style forms when they are not applied due to other style settings

* disable label border color when label border is none

* disable symbol style inputs when symbol size is zero

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-31 11:13:28 -05:00
Joe Reuter 5ed7be9498
Remove unused dependencies in dashboard (#56318) 2020-01-31 17:03:15 +01:00
Larry Gregory 39bd173e41
Upgrade node-sass to 4.13.1 (#56484) 2020-01-31 10:45:27 -05:00
Shahzad 31fae25287
[Uptime] Improve layout in details status panel (#56193)
* improve layout

* hide map on small screen

* fix layout and conflicts

* update snaps

* update

* increase marging

* formatting issue

* wrap item to 100%

* layout refactor

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-31 14:09:11 +01:00
Anton Dosov 6942f3e48e
Fix setting filters without $store value (#56304)
Follow up on: #56213

AddFilters method had logic which ensured that $store exists in filter object, but setFilters was missing that.
2020-01-31 10:53:09 +01:00
Alexey Antonov 08f4b556f4
kuery_autocomplete -> convert remaining items to TS/Jest (#56316)
* kuery_autocomplete -> convert remaining items to TS/Jest

Closes #55487

* QuerySuggestionsTypes rename values

* remove ref to npStart

* conjunction.test.ts it -> test

* remove ts-ignore
2020-01-31 11:27:21 +03:00
Joel Griffith ed7703c1f7
[Reporting] New Platform: moves most of our libs/constants and utils to np shims (#55935)
* Moves a majority of our UI lib/component and utils to np shims

* Fixing some slight np differences from legacy

* Mostly shimmed client, save for a few APIs and routing

* Fixing canvas job notifier

* Un-needed typedef file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-30 14:39:54 -08:00
Tim Sullivan 443470feda
[reporting] remove a legacy cross-plugin import (#56354) 2020-01-30 15:09:16 -07:00
gchaps 472e7fbb71
[DOCS] Updates example in Timelion doc (#56444) 2020-01-30 13:21:54 -08:00
Nathan L Smith 81f3fbbf25
[APM] Service map center button (#56434)
Add center button for service map.

The fullscreen button is still there until #56351 is merged.

Add fit and padding to the layout animation.

Make the node labels wider so they aren't cut off.
2020-01-30 15:06:52 -06:00
Josh Dover 08e0cbc3ee
[skip-ci] Add example for migrating pre-handlers (#56080) 2020-01-30 13:05:09 -07:00
Dima Arnautov 89b3c428c2
[ML] Fix Data Visualizer responsive layout (#56372)
* [ML] replace Example component with EuiListGroup

* [ML] center alignment
2020-01-30 21:03:03 +01:00
Jonathan Budzenski 642c694117
Add missing docker settings (#56411)
Closes #54811
2020-01-30 13:55:17 -06:00
Dan Panzarella 8398a1c77c
[Endpoint] Add Endpoint Details route (#55746)
* Add Endpoint Details route

* add Endpoint Details tests

* sacrifices to the Type gods

* update to latest endpoint schema

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-30 14:25:56 -05:00
Tiago Costa 2b53c74cd9
chore(NA): delete data/optimize with kbn clean (#55890)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-30 19:03:14 +00:00
Jimmy Kuang b7bcff71de
System index templates can't be edited (#55229)
* Removed period validation

* Add back period validation

* Fix EsLint

* Undo Snapshot changes from Index Management bug

* Undo Capitalization

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-01-30 10:30:14 -08:00
Brittany Joiner 8a4d68092b
Sync badge (#55113)
* adding span sync badge on waterfall and flyout
2020-01-30 10:59:14 -06:00