Commit graph

29634 commits

Author SHA1 Message Date
Alejandro Fernández Haro 3bdbcd0d1a
[NP] Allow custom validations in HTTP Routes apart from @kbn/config-schema (#51919)
* [NP] Allow custom validations in HTTP Routes apart from @kbn/config-schema

* API docs

* Allow validate function in the route handler (run-code validation)

* Prefix RouteXXX + Params and Body Validation Aliases

* Fix test broken by lodash

* Update API docs

* Add default types for simpler manual declaration

* Add run-time validation of the RouteValidateSpec

* Expose RouteValidationError instead of SchemaTypeError

* RouteValidator as a class to match config-schema interface

* Test for not-inline handler (need to check IRouter for #47047)

* Add preValidation of the input for a safer custom validation

* Better types for RouteHandlers

* [NP] Move route validation to RouteValidator wrapper

* Use the class only internally but maintain the same API

* Fix types

* Ensure RouteValidator instance in KibanaRequest.from

* Fix validator.tests (Buffer.from instead of new Buffer)

* Default precheck should allow null values

* Also allow undefined in preChecks

* MR feedback fixes

* Provide RouteValidationResolver to the validation function

* Add functional tests

* Fix new functional tests

* Fix validator additional test

* Fix test with new resolver

* Remove unused import

* Rename ValidationResolver to ValidationResultFactory and change the interface to look more like the KibanaResponseFactory

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-20 17:53:08 +00:00
Aleh Zasypkin e5822771e3
Use savedObjects provided by the platform instead of legacy shim. (#53679) 2019-12-20 18:42:42 +01:00
Benjamin Trent ec4fca66dd
Add ml inference processor and APIs to console (#53618)
Adds new Machine Learning Inference processor to Kibana Console.

Also adds new Inference APIs generated from ES specs.
2019-12-20 12:14:46 -05:00
Gidi Meir Morris fc999e5158 [Alerting] disables a flaky test in alerting (#53696)
* disabled flaky test

* use skip instead of comment
2019-12-20 11:33:10 -05:00
Ahmad Bamieh 058a718c2c
[Telemetry] Remove extra console.log (#53203) 2019-12-20 10:38:21 -05:00
Brian Seeders d6e0e9a314
Revert "Merge branch 'savedExportImportTest'"
This reverts commit 97612ba44c, reversing
changes made to 60660fcd1e.
2019-12-20 10:34:14 -05:00
Kevin Logan 2f3ca65886
[Endpoint] Register endpoint app (#53527)
* register app, create functional test

* formatting

* update tests

* adjust test data for endpoint

* add endpoint tests for testing spaces, app enabled, disabled, etc

* linting

* add read privileges to endpoint

* rename variable since its used now

* remove deprecated context

* remove unused variable

* fix type check

* correct test suite message

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
2019-12-20 10:31:41 -05:00
bhavyarm 97612ba44c Merge branch 'savedExportImportTest' 2019-12-20 10:21:03 -05:00
bhavyarm 33a51231a1 saved object test changes 2019-12-20 10:15:36 -05:00
Marta Bondyra 60660fcd1e
[Discover] Refactor discover index pattern selector to Lens `C… (#51973) 2019-12-20 14:55:06 +01:00
Alejandro Fernández bb33aa2d91
[Logs UI] HTTP API for log entry (#53485)
* Implement `log_entries/item` api

* Use endpoint in the `useLogFlyout` hook

* Clean up GraphQL implementation and types

* Extract type for log entries cursor

* fixup! Extract type for log entries cursor
2019-12-20 14:23:15 +01:00
MadameSheema b1d6821b82
[SIEM] Fixes cypress failing tests (#53468)
* gives time to the events to be loaded

* gives time to the element to be loaded

* fixes events viewer tests

* fixes inspect tests

* fixes url state tests

* adds fields counts

* fixes fields browser test

* fixes typecheck error

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-20 13:37:02 +01:00
Daniil Suleiman c8a430a180
Fix vis editor layout (#53292) 2019-12-20 13:23:47 +03:00
Joe Reuter 672eac038b
NP Migration: Remove global angular references in graph (#53293) 2019-12-20 10:13:33 +01:00
Alexey Antonov 80b11a7f78
Kibana 7.0.0 URL field formatter doesn't render relative hyperlinks properly (#53265)
* Kibana 7.0.0 URL field formatter doesn't render relative hyperlinks properly

* fix CI

* fix PR comment / add tests
2019-12-20 11:16:18 +03:00
Gidi Meir Morris 95131237a6
[Alerting] run alerts whenever an alerts schedule is updated (#53143)
When an Alert is updated its interval is stored but isn't applied to the underlying scheduled task.
In this PR we make use of the new runNow api to "refresh" the task whenever the alert's schedule is updated.
2019-12-20 06:51:36 +00:00
igoristic 1cd7c66bf7
Use NP license instead to capture change events (#53548)
* Use np license instead to capture any changes

* added a test

* fixed tests
2019-12-19 23:53:33 -05:00
Xavier Mouligneau 47fb39066b
[SIEM] [DETECTION ENGINE] Details and Edit view for a rule (#53252)
* re-structure detection engine + change routing name

* add editing/details feature for a rule
add feature to not edit immutable rule

* review I

* review II

* change constant

* review III
2019-12-19 23:30:12 -05:00
Spencer aa3ad743ac
Revert "[SIEM] Migrating frontend services to NP (#52783)" (#53668)
This reverts commit 02278ede67.
2019-12-19 19:22:23 -07:00
Ryland Herrick 02278ede67
[SIEM] Migrating frontend services to NP (#52783)
* Remove legacy index_patterns import

We'd already brought in the new interface in a previous commit; this was
just used as an unnecessary type assertion.

* Update snapshots following new docLink mocks

* Remove unused manual mocks

These are not picked up by jest; calling
jest.mock('lib/compose/kibana_core') has the same effect whether or not
these files exist.

* WIP: Use kibana core mock everywhere we're doing it manually

The timeline tests are the last place we're explicitly mocking
useKibanaCore; removing the mocks cause tests to hang. I think  hey're
relying on the side effects of importing the mock/ui_settings file, but
I'll figure that out next.

* Replace ui/documentation_links with core NP service

In most instances, this meant using the useContext hook with our NP core
context.

This also updates our mocks to leverage the factory so graciously
provided by platform.

There are a few failing tests, mostly due to links being previously
undefined in tests.

* Use new mocks on timeline test that doesn't hang

The rest of these do, though.

* Remove remaining uses of mockUiSettings in useKibanaCore mocks

These have to be evaluated immediately so that we always return the
same core object. Otherwise we get stuck in a loop between
render/useEffect/setState due to the savedObjects client being different
on each invocation.

* Invoke platform's mock factory at mock time

Previously, we were invoking it any time someone called `useKibanaCore`,
getting a new object back each time. This both caused some bugs (looping
with useEffect) and was not representative of how the actual hook
worked.

This also moves that invokation into the mock function, along with
shaping the mocked module so that we don't have to do it in every call
to jest.mock.

* WIP: migrating to use kibana_react's provider and helpers

We're re-exporting these locally to have more control around mocking
them (until platform implements that).

This breaks everything that was using the old mocks. Will fix.

* WIP: Migrating to use kibana_react

Instead of our homegrown hooks we can use these utilities instead.

Unfortunately kibana_react doesn't yet have mocks, so we had to implement
that ourselves. Luckily, we already had local mocks for the settings
service. This migrates to a the new format. For clarity and consistency,
we also re-export new platform's mocks here and use them to populate our
kibana_react mocks.

We started by migrating the UiSettings service to new platform, and let
that drive the rest. With the mocks in place for kibana_react, removing
the usage of useKibanaCore was a natural step as well.

The next step is removing the usage of chrome.getUiSettingsClient with
our useUiSetting$ hook, and with that (and maybe some config setup; I'm
seeing errors at runtime), we should be ready to start migrating other
services.

* Bind a copy of kibana at mock creation

We were previously returning a new copy any time e.g. useKibana was
called, which is not the contract that consumers are expecting. and in
fact caused looping with components employing useEffect etc.

* Remove internal context providers and last usage

We're now using kibana_react fully.

* Fix tests failing due to wrong mocks

Remaining failures are either due to a date format issue, or something
being rendered differently. Those are up next.

Still haven't touched use of chrome.getUiSettingsClient, that's after.

* Fix test failures related to date formatting

* mocks missing UI Setting (DEFAULT_TIMEZONE_BROWSER) which is required
by our formatted_date utilities
* mock timepicker ranges in the one test that uses it (SuperDatePicker)

* Remove unnecessary and/or redundant mocks

Since our TestProvider now mocks new platform, the only tests that
should need to mock uiSettings related stuff (e.g. timezone preferences)
would be the tests that (directly or no) use kibana_react to get it.

* Refactor kibana_react mocks

* adds a mock for the non-observable useUiSetting
* removes the unmockable HOC withKibana

* Replace usage of chrome.getUiSettingsClient with useUiSetting

We're opting for the non-observable behavior here because I believe
that's more analagous.

There are a few remaining usages in non-react code.

Tests are still using the mocks, those'll be removed next.

* Remove ui_settings mocks

Now that we're not using this hook there's no need for the mocks. Tests
are green.

* Remove siem's UI settings hook

We're now using the ones provided by kibana_react.

* Use withKibana HOC on our component classes

React was kind enough to remind me that I can't put hooks in classes.
Whoops.

* Set defaults for some unknown UI settings

The service claims not to know about these settings we're retrieving.
Until I can figure out where they should come from, we're going to
initialize them with what seem to be the defaults at plugin
initialization.

* Remove old hooks

These have now been replaced with kibana_react's equivalents.

* Fix type error on usage of useKibana hook

This is one of the few places where we're using another plugin, which
are not present in the default typings due to their opt-in nature.

* Fix type error on ML call

The indexPattern we get back is actually an array. The endpoint seems to
handle this just fine (at least, it doesn't blow up), but once we
started retrieving a typed value this error surfaced.

* Export a 'bound' version of the useKibana function

Rather than having to type this on each invocation. This requires us to
define which plugins we depend on, which is a good thing.

* Instantiate our mock function

We aren't using these right now I didn't notice, but that wasn't the
right reference.

* Fix test that relies on unmocked service

Our QueryBar component relies very (very, very) indirectly on a storage
service that does not exist in New Platform, nor its corresponding
mocks. To get it passing for now, we're just gonna pretend like it's
there.

* Remove use of ui/chrome in our charts

Replaces with hooks that accomplish the same.

* Remove last use of chrome.getUiSettingsClient

This function is itself a hook, so we should be good here.

* Remove unnecessary non-null assertions

Now that we're using our typed version of the useKibana hook, typescript
knows that these services will be available (once we actually enforce
that in our kibana.json, of course).

* Fix chart tests

These rely on a kibana hook now, so we need to mock it out for these
renders lest we blow up when the context isn't there.

* Replace missing mock

I deleted this in a previous commit, thinking it unneeded.
However, getHostDetailsBreadcrumbs ultimately asks for some
default date parameters for the timerange boundaries.

* Add back tests for our theming hook

* Style: cleanup

* Remove unneeded default UI Settings values

We were previously getting errors due to these values not being known to
the client, but it looks like that was either fixed upstream, or a
temporary issue caused by some improper context setup.

* Simplify kibana_react mocks

Let's leave JSX out of it.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-19 18:36:47 -06:00
Yuliia Naumenko 1cce67f2cd
Add License checks for alerts and actions (#52394) (#53327)
* Added license check for actions server API

* Added license check for alerting server API

* Fixed typecheck errors and duplication tests

* Moved all license checks to New Platform

* Clean up not used shims options

* Update x-pack/legacy/plugins/alerting/server/extend_route_with_license_check.test.ts

Co-Authored-By: Gidi Meir Morris <github@gidi.io>

* Update x-pack/legacy/plugins/actions/server/lib/license_state.ts

Co-Authored-By: Gidi Meir Morris <github@gidi.io>

* Refactored due to comments

* Fixed typo

Co-authored-by: Gidi Meir Morris <github@gidi.io>
2019-12-19 16:23:48 -08:00
Pete Harverson 99fde9eaa8
[ML] Corrects URL of the create job tips docs page (#53576)
* [ML] Corrects URL of the create job tips docs page

* [ML] Update validate_job_view snapshot

* [ML] Update links for influencers to new ML book
2019-12-19 21:24:49 +00:00
gchaps 23dfad304f
[DOCS] Adds note on date-math expressions in reporting (#53628) 2019-12-19 13:23:00 -08:00
Frank Hassanabad 6747dc068f
[SIEM][Detection Engine] Adds 77 more pre-packaged rules and another unit test for it
## Summary

* Adds more prepackaged rules and another unit test

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-12-19 13:57:59 -07:00
Kaarina Tungseth 98ec7a3470
[DOCS] Canvas data sources (#53334)
* [DOCS] Canvas data sources

* Comments from Gail
2019-12-19 14:56:30 -06:00
Frank Hassanabad 7c2a71399c
[SIEM][Detection Engine] Bulk REST API for create, update, and delete
## Summary

* Adds Bulk REST API and routes added for create, update, and delete
* Loops over data and calls `alertClient` until alerting team gives us bulk to push down
* Adds Unit tests

Testing/Usage:

Create in bulk:
```ts
POST /api/detection_engine/rules/_bulk_create
[{ ... rule_1}, { ... rule_2}]
```
see script
```ts
 ./post_rule_bulk.sh
```

Update in bulk:
```ts
PUT /api/detection_engine/rules/_bulk_update
[{ ... rule_1}, { ... rule_2}]
```

see script
```ts
 ./update_rule_bulk.sh
```

Delete in bulk:
```ts
DELETE /api/detection_engine/rules/_bulk_delete
[{"id": "rule_1"}, {"id": "rule_2"}]
```

or in case your client does not support bodies in DELETE
```ts
POST /api/detection_engine/rules/_bulk_delete
[{"id": "rule_1"}, {"id": "rule_2"}]
```

But try to use DELETE where possible

see script
```ts
./delete_bulk.sh
```

Caveats and error handling....If you do not validate correctly you will still get back a `400` return code. If you do validate correctly but one or more objects have errors involving a conflict or not found, you will get back a 200, but the body message will contain an array of errors or successes.

Examples:

If you delete in bulk for two objects but both do not have any values you get a response of `200` but then these errors in the array:

```ts
./delete_bulk.sh 
[
  {
    "id": "query-rule-id-1",
    "error": {
      "statusCode": 404,
      "message": "rule_id: \"query-rule-id-1\" not found"
    }
  },
  {
    "id": "query-rule-id-2",
    "error": {
      "statusCode": 404,
      "message": "rule_id: \"query-rule-id-2\" not found"
    }
  }
]
```

If one has a valid deleted value but the second does not you get a status of `200` and one object back as being deleted but the second as an error:

```ts
./delete_bulk.sh                        
[
  {
    "created_at": "2019-12-19T04:12:26.470Z",
    "updated_at": "2019-12-19T04:12:26.470Z",
    "created_by": "elastic_kibana",
    "description": "Query with a rule_id that acts like an external id",
    "enabled": true,
    "false_positives": [],
    "from": "now-6m",
    "id": "46d83e70-982a-4ba8-9ac1-fc386643c014",
    "immutable": false,
    "interval": "5m",
    "rule_id": "query-rule-id-1",
    "language": "kuery",
    "output_index": ".siem-signals-frank-hassanabad-default",
    "max_signals": 100,
    "risk_score": 1,
    "name": "Query with a rule id Number 1",
    "query": "user.name: root or user.name: admin",
    "references": [],
    "severity": "high",
    "updated_by": "elastic_kibana",
    "tags": [],
    "to": "now",
    "type": "query",
    "threats": [],
    "version": 1
  },
  {
    "id": "query-rule-id-2",
    "error": {
      "statusCode": 404,
      "message": "rule_id: \"query-rule-id-2\" not found"
    }
  }
]
```

Another example where an update has two errors because it tried to update two docs but both do not exist yet you get back a response of `200` but this array of errors:

```ts
./update_rule_bulk.sh                                                                                                                        <<<
[
  {
    "id": "query-rule-id-1",
    "error": {
      "statusCode": 404,
      "message": "rule_id: \"query-rule-id-1\" not found"
    }
  },
  {
    "id": "query-rule-id-2",
    "error": {
      "statusCode": 404,
      "message": "rule_id: \"query-rule-id-2\" not found"
    }
  }
]
```

If one is updatable but the other is not you get back a response of `200` and one update back but the other is an error:

```ts
./update_rule_bulk.sh
[
  {
    "created_at": "2019-12-19T04:15:43.739Z",
    "updated_at": "2019-12-19T04:16:01.633Z",
    "created_by": "elastic_kibana",
    "description": "Query with a rule_id that acts like an external id",
    "enabled": true,
    "false_positives": [],
    "from": "now-6m",
    "id": "c1fcea2c-cbc6-4f28-b7e7-32b4d7cb799d",
    "immutable": false,
    "interval": "5m",
    "rule_id": "query-rule-id-1",
    "language": "kuery",
    "output_index": ".siem-signals-frank-hassanabad-default",
    "max_signals": 100,
    "risk_score": 1,
    "name": "Rule id Number 1 with an updated name",
    "query": "user.name: root or user.name: admin",
    "references": [],
    "severity": "high",
    "updated_by": "elastic_kibana",
    "tags": [],
    "to": "now",
    "type": "query",
    "threats": [],
    "version": 2
  },
  {
    "id": "query-rule-id-2",
    "error": {
      "statusCode": 404,
      "message": "rule_id: \"query-rule-id-2\" not found"
    }
  }
]
```

Same thing goes with posts and any other bulk actions.

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-12-19 13:55:27 -07:00
Nathan Reese 8969cdc105
[Maps] Label style properties (#52957)
* text styling

* label style editor UI

* wire up styles to mb

* allow string values

* remove console.log

* default getFields to provide ordinal fields for vector source

* fix vector_style jest test

* add label styles to docs

* fix prettier errors

* use index-pattern field formatter to format label

* rename LABEL to LABEL_TEXT

* review feedback

* fix problem with icons not displaying with labels

* fix functional tests

* fix canno read name of null error

* update jest expect

* fix eslint errors

* do not display label text in legend

* always show all label styling properties in editor

* review feedback
2019-12-19 13:23:55 -07:00
Xavier Mouligneau c1b3516e29
[SIEM] [TIMELINE] add user info back to request (#53534)
* Add user info on the option of the request

* fix type

* review

* fix test

* fix bug

* add an unauthenticated user concept for timeline

* add favorite flter with unauthenticated user
2019-12-19 15:00:46 -05:00
Tim Schnell 0e4dd3bc2f
adding canvas actions (#53163) 2019-12-19 13:51:53 -06:00
Kerry Gallagher fc33f79317
vis_type_timeseries server side new platform migration (#52501) 2019-12-19 18:51:06 +00:00
Nathan Reese 6e5f9cc703
[Maps] register @elastic/kibana-gis to maps code (#53487) 2019-12-19 11:23:20 -07:00
Chandler Prall 665c962c91
Remove change to Direction's definition in generated file, resolve resulting TS issues by casting (#53607) 2019-12-19 10:50:15 -07:00
Josh Dover d6a19f1a12
Add rule for Platform team to pr-project-assigner (#53530) 2019-12-19 11:42:15 -06:00
Josh Dover 4980387c17
Refactor HttpService tests (#53033) 2019-12-19 11:38:14 -06:00
Maja Grubic 2b7307b5b6
[Dashboard] Fixing addVisualization func test (#53491)
* [Dashboard] Fixing addVisualization func test

* Remove unnecessary function argument
2019-12-19 17:18:17 +00:00
Marco Vettorello 5342dd19a4
docs: fix list and a wrong copy/paste (#51908) 2019-12-19 17:54:28 +01:00
Brandon Morelli 37de142437
[docs][APM] Clarify advanced queries (#53034) 2019-12-19 07:35:33 -08:00
Kerry Gallagher fe15d6ecbf
[Logs / Metrics UI] Client side NP migration (#52867) 2019-12-19 15:34:36 +00:00
CJ Cenizal 194f2ca6ed
Remove highlighting from the review step of the Index Template wizard, for requests beyond a certain size. This will prevent the syntax highlighting from slowing down Kibana when reviewing large requests. (#53549) 2019-12-19 07:33:18 -08:00
Mikhail Shustov dd1faba7e3
provide a list of breaking changes in licensing plugin readme (#53574)
* provide a list of breaking changes in licensing plugin

* Apply suggestions from code review

Co-Authored-By: Rudolf Meijering <skaapgif@gmail.com>

* add ToC
2019-12-19 15:50:13 +01:00
James Gowdy e26f566eaf
[ML] Fixing index data visualizer when index is recognized (#53498) 2019-12-19 14:49:49 +00:00
Pierre Gayvallet 3430628e26
expose asScopedToClient in uiSettingsService start contract (#53290)
* expose asScopedToClient in uisettings start contract

* add uiService mock in server tests

* Add tests for start method

* Updates generated doc

* properly export UiSettingsServiceStart from server

* remove useless async

* nit: rename
2019-12-19 15:44:42 +01:00
Alexey Antonov 93b626073f
Cleanup - Typescript some of src/legacy/server/index_patterns (#53461)
Part of #44190.
2019-12-19 17:41:08 +03:00
Matthias Wilhelm e9ac373bec
[Discover] Remove angular field filter template code (#53513) 2019-12-19 14:34:47 +01:00
Casper Hübertz 990ecda6b9
[APM] Improve table and other panel loading states (#53459)
Updated text loading states to animated spinners.
2019-12-19 13:51:03 +01:00
Larry Gregory 3b57f0a401
Security/Spaces - cleanup react warnings (#53287)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-12-19 07:19:27 -05:00
Mikhail Shustov 4ea2599b8c
Revert "NP licensing add functional tests (#53002)" (#53577)
This reverts commit a4c5b13400.
2019-12-19 13:12:17 +01:00
Mikhail Shustov a4c5b13400
NP licensing add functional tests (#53002)
* fix comment

* introduce core provider plugin for integration tests

* platform functional tests use core_provider_plugin for testing

* add 3 scenario for licensing plugins: server, client, legacy

* remove unused code

* run all licensing_plugin tests on CI

* remove duplicated config

* address comments

* declare global type for core provider
2019-12-19 10:59:27 +01:00
Mikhail Shustov fd4f139be2
fix onLicenseInfoChange callback to be called on update (#53559) 2019-12-19 10:42:46 +01:00
Mikhail Shustov ecf8657d82
Document how to extend request handler context (#53271)
* mention uiSettingsClient in the context docs

* autogenerated docs for logger method

* describe what's available via request context handler. how to extend it

* make type optional
2019-12-19 10:12:45 +01:00