Commit graph

25700 commits

Author SHA1 Message Date
Mikhail Shustov 2165583f2d
update docs how to add typs for config (#38224) 2019-06-07 08:44:11 +02:00
Peter Pisljar 7992a43f20
removing provider (#38223) 2019-06-07 08:32:18 +02:00
Peter Pisljar 463bdfb61a
removing provider (#38221) 2019-06-07 08:31:51 +02:00
renovate[bot] 21ebc9f973 Update dependency @microsoft/api-extractor to v7.1.8 (#38364) 2019-06-06 23:30:59 -07:00
renovate[bot] 7045c45aba Update dependency pngjs to v3.4.0 (#37890) 2019-06-06 23:30:30 -07:00
renovate[bot] 85225036f6 Update dependency pegjs to v0.10.0 (#37889)
* Update dependency pegjs to v0.10.0

* PEG.buildParser() => PEG.generate()
2019-06-06 23:29:56 -07:00
renovate[bot] ee583753f5 Update dependency pdfmake to v0.1.56 (#37887) 2019-06-06 23:28:52 -07:00
renovate[bot] c536a62bc7 Update dependency leaflet to v1.5.1 (#37811)
* Update dependency leaflet to v1.5.1

* update baseline image

* Fix map draw controls

* Update CSS overrides to match updated package
2019-06-06 23:28:36 -07:00
spalger 5f3777a5d4 Revert "[Code] change the port number before respawn a new lang-server process (#38090)"
This reverts commit 05947fed0c.
2019-06-06 22:55:55 -07:00
renovate[bot] ea9d245259 Update webpack related packages (major) (#37552)
* Update webpack related packages

* raw-loader@2 uses esm, so we must import
2019-06-06 22:50:06 -07:00
Angela Chuang 9850a1c8ff
[SIEM] Kpi network enhancement (#36915)
* add histogram

* clean up with hooks

* fix types and inport

* update mock data

* fix barchart

* fix integration test

* wrapping hooks with functional component

* update snapshot

* remove active agents and network events histogram from kpi network

* amend chart height

* fix integration test

* update wording

* add readonly type

* add references

* update translations and add constants

* clean up types for kpi host

* clean up types for kpinetwork

* remove a redundant type

* fix tests

* replace react memo with recompose pure

* add unit test and update mock data

* remove redundant type
2019-06-07 11:46:52 +08:00
Yulong 05947fed0c
[Code] change the port number before respawn a new lang-server process (#38090) 2019-06-07 10:50:41 +08:00
Nathan Reese 76f686bf7d
[Maps] ensure labels extracted from WMS capabilities are unique (#38311)
* [Maps] ensure labels extracted from WMS capabilities are unique

* clean up

* clean up
2019-06-06 20:31:36 -06:00
renovate[bot] 297a895460 Update dependency @microsoft/api-extractor to v7.1.6 (#37760)
* Update dependency @microsoft/api-extractor to v7.1.6

* regenerate docs

* OverlayService: Import react instead of relying on global
2019-06-06 19:18:51 -07:00
spalger 5c090ea285 update kbn-pm dist 2019-06-06 19:08:32 -07:00
spalger cdf0d20a1e re-enable yarn.lock validation checks 2019-06-06 18:42:13 -07:00
Spencer e300118a2f
[scripts/update_prs] implement script to merge base branch into prs (#38302) 2019-06-06 18:31:08 -07:00
spalger b09c0571c0 re-enable yarn.lock validation checks 2019-06-06 17:54:22 -07:00
renovate[bot] cb15b358ea Update dependency history to v4.9.0 (#37799)
* Update dependency history to v4.9.0

* importing submodules is deprecated, import root package

* chore: bump history-extra to 5.0.1

compatible with history@^4.9.0
2019-06-06 17:33:39 -07:00
Mengwei Ding fee3a82bb5
[Code] adjust clone progress and not found rendering in source view page (#38213) 2019-06-06 17:29:48 -07:00
Garrett Spong 358343b1e1
Fixing crash when collapsing a second event details (#38303) 2019-06-06 18:24:02 -06:00
Garrett Spong 39c1598018
[SIEM] Fix overlapping timestamp tooltip in expanded Event Details (#38328)
## Summary

Fixes issue where multiple tooltips are shown on `date` and `duration` fields within the expanded Event Details UI (https://github.com/elastic/ingest-dev/issues/481).

### Before:
<img src="https://user-images.githubusercontent.com/2946766/59068176-b8397a00-8870-11e9-9b04-ee16d89ac7d4.png" width=400>

<img src="https://user-images.githubusercontent.com/2946766/59068283-00f13300-8871-11e9-989d-986e9ae00e2a.png" width=400>


### After:
<img src="https://user-images.githubusercontent.com/2946766/59068223-d901cf80-8870-11e9-9a28-1322adcfe570.png" width=400>

<img src="https://user-images.githubusercontent.com/2946766/59068321-15353000-8871-11e9-8e33-2ffaa0b0c9c2.png" width=400>

<img src="https://user-images.githubusercontent.com/2946766/59068621-d653aa00-8871-11e9-8803-8be01a20e585.png" width=400>



### 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~
- [ ] ~[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)~
- [ ] ~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-06-06 18:23:29 -06:00
Spencer acba93a38c
[jest] don't be crazy, run with caching enabled (#38332) 2019-06-06 16:56:52 -07:00
Martin Liu 375f6a2c69 Add language codes in comment (#37635)
It would be good to see a list here, as long as we will add more languages. 
A user will not have to look into any other document to find a language code.
That will be more easier for any one who configure this file.
2019-06-06 16:41:01 -07:00
Frank Hassanabad a7ac03af8a
Fixed cyclic dependencies (#38321)
## Summary

Fixes cyclic dependencies

### 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~~
~~- [ ] [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)~~
~~- [ ] 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-06-06 17:20:27 -06:00
Nick Peihl 1ef0c0995d
Add link to 7.2 ems landing page (#38284) 2019-06-06 16:12:26 -07:00
Tudor Golubenco e0f3a80c21
[SIEM] Update links to docs and website (#38313)
* Update links to docs and website in the SIEM app

* Update also link text

* Capitalize solution
2019-06-07 00:28:01 +02:00
spalger a149e6160f update yarn.lock 2019-06-06 14:39:06 -07:00
spalger c655a11ece [ci] disable firefox tests 2019-06-06 14:26:53 -07:00
Fuyao Zhao 3b099c6359
[Code]: remove hard code node heapsize (#38304) 2019-06-06 14:13:22 -07:00
Steph Milovic 29e7d63db9
[SIEM] fix ipv6 bug and write tests for ip details page (#37528)
fix ipv6 bug and write tests for ip details page
2019-06-06 14:21:44 -06:00
Nathan Reese 348f10eeaa
[Maps] fix tooltip text overlap and text overflow (#38271)
* [Maps] Use table to display tooltip properties

* Design cleanup

- Added dropshadow
- Cleaned SASS
- Removed unnecessary wrappers around close button and centered it
- Change loading state to be centered
- Fixed z-index so tooltip is on top of controls
- Condensed padding/spacing

* Fix overlays in IE

* revert yarn.lock changes
2019-06-06 13:57:52 -06:00
Chris Cowan 7d944a78ba
[Infra UI] Fixes #37999 - Reset error when IP address changes to valid entry (#38022)
* [Infra UI] Fixes #37999 - Reset error when IP address changes to something valid

* movnig the setError above try/catch
2019-06-06 12:49:26 -07:00
Brandon Kobel ec55e5199e
Updating js-yaml to 3.13.1 for more dependencies (#38160)
Renovate recently updated js-yaml in
https://github.com/elastic/kibana/pull/37809. However, a few
indirect dependencies weren't upgraded to use this new version.
2019-06-06 11:38:17 -07:00
Brandon Kobel 10d504e13a
Updating axios to 0.18.1 (#38179) 2019-06-06 11:37:29 -07:00
Brandon Kobel 1042ac39af
Updating underscore.string to 3.3.5 (#38180) 2019-06-06 11:37:05 -07:00
Brandon Kobel 5b2e29507d
Updating tar to 2.2.2 (#38182) 2019-06-06 11:36:29 -07:00
Matthias Wilhelm e11277fc89
Undo setting of $scope.refreshInterval at dashboard (#37175)
* Add test for passing on dashboard url params to timepicker values

* Revert unnecessary setting of $scope.refreshInterval

refreshInterval is set at $scope.model, no need to set it directly at $scope like in discover and vis
2019-06-06 19:33:03 +02:00
Spencer 7c2b45122c
[dev/failed_tests] try to ignore irrelevant failures (#37902)
* [dev/failed_tests] try to ignore irrelevant failures

* fix typo
2019-06-06 10:28:32 -07:00
Spencer 5973c2a08c
[dev/license_checker][dev/npm] reactor, ts-ify, de-grunt (#37807) 2019-06-06 10:16:19 -07:00
Vadim Dalecky a1ecfffd4f
fix: 🐛 stop showing spinner only on error (#38289) 2019-06-06 10:02:57 -07:00
Melissa Alvarez 7ad2439382
revert dragselect version (#38183) 2019-06-06 11:45:02 -04:00
Brandon Kobel 41b326ece3
[docs][skip ci] Read only access for @elastic/kibana-app applications (#35560)
* Adding read-only mode section to Discover

* No more "mode" or "badge" terminology

* Putting newline back

* Adding "Saving" section for visualize

* Adding dashboard read only access section

* Timelion gets read-only documentation

* Adding read only access section to index patterns and advanced settings

* Adding graph read only access section
2019-06-06 08:08:18 -07:00
Pete Harverson 55c4472a08
[ML] Only add ML links for sample data sets if full license (#38120)
* [ML] Only add ML links for sample data sets if full license

* [ML] Update following review
2019-06-06 15:58:16 +01:00
Pete Harverson 654144f2ac
[ML] Close job after forecast errors if starting from closed (#38253)
* [ML] Close job after forecast errors if starting from closed

* [ML] Pass closeJob flag to error handler if forecast ID undefined
2019-06-06 15:51:31 +01:00
Mikhail Shustov 53b133dd50
Route tags (#37344)
* expose route info in KibanaRequest

* update mocks in test

* make tags readonly, getRouteInfo is private method

* add mocks for hapi internals

* mode deepFreeze to core utils level as it env agnostic

* freeze route props

* fix typo

* add tests for route options

* fix integration tests. deep_freeze was moved under core utils

* add comments, expose public types and regenerate docs

* address comment. remove unnecessary async in route handlers

* make routeSchema optional instead of union with undefined

* @skaapgif improvements

* update docs
2019-06-06 15:49:37 +02:00
Stacey Gammon 8d78f64391
Typescript dashboard app code. (#37527)
* Typescript dashboard app code. Pulls out part of the massive embeddable API PR.

I typscripted this code as part of that PR because it helped me find errors, but really unnecessarily blew up the size of that PR. So pulling out.

* User filter types from kbn-es-query

* Address code review feedback

* Replace require with import
2019-06-06 09:14:02 -04:00
Xavier Mouligneau 2177267ebc
fix math (#38132)
* fix math

* add unit test

* review I
2019-06-06 07:18:34 -04:00
Rudolf Meijering ea9721ad13
[Core] Rewrite saved objects in typescript (#36829)
* Convert simple files to TS

* Fix jest tests

* Rename saved_objects_client{.js => .ts}

* WIP saved_objects_client

* saved_objects repository{.js => .ts}

* includedFields support string[] for type paramater

* Repository/saved_objects_client -> TS

* Fix tests and dependencies

* Fix saved objects type errors and simplify

* saved_objects/index saved_objects/service/index -> ts

* Fix saved objects export test after switching to typed mock

* Workaround type error

* Revert "Workaround type error"

This reverts commit de3252267eb2e6bf56a5584d271b55a7afdc1c53.

* Correctly type Server.savedObjects.SaveObjectsClient constructor

* saved_objects/service/lib/index.{js -> ts}

* saved_objects/service/lib/scoped_client_provider{js -> ts}

* Typescriptify scoped_client_provider

* Fix x-pack jest imports

* Add lodash/internal/toPath typings to xpath

* Introduce SavedObjectsClientContract

We need a way to specify that injected dependencies should adhere to the
SavedObjectsClient "contract". We can't use the SavedObjectsClient class
itself since it contains the private _repository property which in TS is
included in the type signature of a class.

* Cleanup and simplify types

* Fix repository#delete should return {}

* Add SavedObjects repository test for uncovered bug

Test for a bug in our previous js implementation that can lead to data
corruption and data loss.

If a bulkGet request is made where one of the objects to fetch is of a type
that isn't allowed, the returned result will include documents which have the
incorrect id and type assigned. E.g. the data of an object with id '1' is
returned with id '2'. Saving '2' will incorrectly override it's data with that
of the data of object '1'.

* SavedObject.updated_at: string and unify saved_object / serializer types

* Cleanup

* Address code review feedback

* Don't mock errors helpers in SavedObjectsClient Mock

* Address CR feedback

* CR Feedback #2

* Add kibana-platform as code owners of Saved Objects

* Better typings for SavedObjectsClient.errors

* Use unknown as default for generic type request paramater

* Bump @types/elasticsearch

* Fix types for isForbiddenError

* Bump x-pack @types/elasticsearch
2019-06-06 10:49:13 +02:00
Oliver Gupte d43ee7fe3d
[APM] Moves the APM index creation from server startup (#37965)
* [APM] Closes #37499 by moving the APM index creation from server startup
to savedObject request for the index pattern. It first checks if the
index pattern is saved, if not it creates it.

* [APM] provide more meaninful status codes in the default error handler
2019-06-06 00:10:57 -07:00