Commit graph

25688 commits

Author SHA1 Message Date
renovate[bot]
46b40d0926 Update dependency simple-git to v1.113.0 (#38456) 2019-06-07 14:07:40 -07:00
Frank Hassanabad
fdd4621601
[SIEM] Add build step to find cyclic deps in SIEM project (#38329)
## Summary

* Adds a build step to find cyclic deps and error out in the SIEM project when found as part of a build step.

* Fixes typescript files that have cycles with their constants and types.

You run this like so:

```
cd kibana/x-pack/plugins/siem
node scripts/check_circular_deps.js
```

And get this message:
<img width="846" alt="Screen Shot 2019-06-07 at 11 22 24 AM" src="https://user-images.githubusercontent.com/1151048/59121970-b629f680-8916-11e9-8683-326a881c4725.png">

Or you will get an error with a listing of deps that need to be updated which have cycles in them.

### 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)~~
~~- [ ] 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-07 14:40:06 -06:00
Spencer
0f5bd4dfcc
Implement renovate config generator (#38369)
* reformat renovate.json5 with json5 cli, add header

* add scripts for rengerating renovate config from ts files

* regenerate renovate config

* verify renovate.json5 is up to date in CI

* add description to the build_renovate_config script

* auto-group types packages

* fix typo

* mention version pinning in doc block

* support disabling renovate for package groups

* scan all package paths for @-types deps

* regenerate renovate config

* regenerate renovate config

* name scoped package regexp

* move some of the new logic out of package_groups.ts

* flatMap in one pass
2019-06-07 13:30:59 -07:00
igoristic
44fc8c91d7
Issue 27126: Added a link to License Management (#37771)
* Added a link to License Management

* Added textAlign to EuiText instead
2019-06-07 16:05:33 -04:00
igoristic
01dccbfb75
Issue 28875: Using i18n instead of injectI18n (#37845)
* Using i18n instead of injectI18n

* Update x-pack/plugins/monitoring/public/components/apm/instance/status.js

Co-Authored-By: Ahmad Bamieh <ahmadbamieh@gmail.com>

* Update x-pack/plugins/monitoring/public/components/table/table.js

Co-Authored-By: Maryia Lapata <mary.lopato@gmail.com>

* Addressed PR code review feedback
2019-06-07 16:01:56 -04:00
Larry Gregory
588f33392f
Security - remove usage of legacy notifier (#38260)
* remove usage of legacy notifier

* fix superfluous whitespace changes

* fix redirection on role management screen

* extract session expiration warning into its own component
2019-06-07 15:44:26 -04:00
Mengwei Ding
7f334c011d
[Code] better limit the size of indexed files (#38327)
* [Code] better limit the size of indexed files

* [Code] separate the batch index helper for document and symbols
2019-06-07 12:26:19 -07:00
renovate[bot]
dced039b68 Update dependency rimraf to v2.6.3 (#38438) 2019-06-07 12:18:44 -07:00
renovate[bot]
2b05837aac Update dependency regression to v2.0.1 (#38437) 2019-06-07 12:18:28 -07:00
renovate[bot]
d39c0c7cf7 Update dependency puid to v1.0.7 (#38436) 2019-06-07 12:18:08 -07:00
renovate[bot]
b22f80e298 Update dependency apollo-cache-inmemory to v1.6.2 (#38435) 2019-06-07 12:16:55 -07:00
gchaps
82d82d9d4c
[DOCS] Adds docs for snapshot repositories UI (#38159)
* [DOCS] Adds docs for snapshot repositories UI

* [DOCS] Incorporates review comments into snapshot docs
2019-06-07 11:28:01 -07:00
Brandon Kobel
00725d5cea
Updating chownr to 1.1.1 (#38177) 2019-06-07 11:24:04 -07:00
Stacey Gammon
bd484391fc
Embeddable API V2 (#37510)
* Embeddable API plugin

* Expose new embeddableActions uiExport endpoint

* Add missing getInjectedUIAppVars to Server type

* Add jest tests

* Most basic skeleton of the sample plugin to see if it still kills ci

* strip even more out to see if it passes ci

* It passed, put back init fn

* add back in a uiExport to see if that is what is killing ci

* Passed again, add back embeddableActions uiExports and require kibana line

* Add everything back but the sass import

* Found two bugs with customize panel title action, added jest test coverage and fixes

* Functionally test embeddable explorer plugin

* Addressing review feedback part 1

* Simplify action context menu - remove support for nested actions/child panels, which was never exposed anyway.

* More review feedback

* Spread out orders to let developers inject their own actions in the middle.

* Remove check for overwriting ApplyFilterAction

* use createRegistry for EmbeddableFactoryRegistry

* Add comment for getInheritedInput

* Use kbn-es-query Filter types

* Fix missed file after createRegistry switch over for EmbeddableFactoryRegistry

* Use delete instead of setting to undefined

* upgrade EUI to match kibana version

* Add getIsContainer on base embeddable class

* Run functional tests of sample plugin

* move all tests classes outside __test__ and inside test_samples folder so not to potentially create issues with mocha

* fix: 🐛 remove unused imports

* fix: 🐛 set to undefined explicitly

* chore: refactored getRoot functionality

* fix: refactor miss from folder rename __test__ -> test_samples

* fix: add eui switch to let the user indicate “hide this title” to improve ux.

* fix: customize panel flout test

* Try to fix issue with multiple rxjs bundles I hit before.

See https://github.com/ReactiveX/rxjs/issues/3828

* Use an rxjs polyfill to work around the issue of multiple rxjs bundles

* chore: change customize panel flyout to modal post design feedback

* capitalize Reset

* fix: type errors in customize panel modal

* fix: remove extra line added to prevent EUICallout overflow from spilling over panel edges

The bug this was intended to fix doesn’t appear yet because dashboard isn’t using this, and it causes other issues, so for now, just remove.

* Clean up some classes and SASS

* Inline styles needed to get the containers to take up the full height of the app.

* Use the same old style of error messaging in panels

* chore: add untilEmbeddableLoaded tests, expose on interface, and use in embeddable_child_panel

* Remove unused styles, add padding

* Verify trigger Context containers an array of Filters for apply filter action

* Remove panel.embeddableId param, use panel.explicitInput.id instead

* Check `isCompatible` as well as the type guard needed for typescript.

* executeTriggerActions should account for getHref

* Remove unnecessary check for context being defined

* use npStart instead of getNewPlatform

* Conform to latest NP changes

* Use new np_mocks in all the tests

* Address review feedback on rxjs polyfill
2019-06-07 13:30:55 -04:00
Justin Kambic
002fe5ae03
[Uptime] [Bug] Fix spaces in filters (#38320)
* Fix typo in variable name.

* Add support for kql-rendered output from filter bar.

* Support nested status query output.

* Expand complicated mock data.

* Add comments, clean up code.

* Improve naming, comments, simplify function bodies.

* Refactor filter selection method to handle arbitrary input that is unrelated to status.
2019-06-07 13:19:46 -04:00
Corey Robertson
b605c90cec
Reapply custom element telemetry (#37113)
* Revert "Revert "[Canvas] Adds telemetry info for custom elements (#36177)" (#37100)"

This reverts commit 3f4c2c89ec.

* Cast fromExpression unknown type

* PR Feedback
2019-06-07 13:01:49 -04:00
Davey Holler
8c609ad1b1
Cursor on symbol hover. (#38062) 2019-06-07 09:50:32 -07:00
Davey Holler
3d5eb72b6c
Fixing padding issues in the toolbar (#38315) 2019-06-07 09:50:06 -07:00
Peter Pisljar
ea7665c764 Vislib private removal part3 (#37852)
* removing Private
2019-06-07 11:23:51 -05:00
Matt Bargar
c703ef1499
Enable use of KQL and autocomplete in filters agg editor (#37287)
This PR updates the filters agg editor to use the full QueryBar component, enabling use of KQL and autocomplete inside the editor for this aggregation in Visualize.
2019-06-07 11:09:31 -05:00
spalger
2755254a60 remove accidentally committed stats file from repo 2019-06-07 08:54:42 -07:00
Chris Cowan
74daed3e7f
[Infra UI] Fixing Metrics Explorer chart title overlapping (#38059)
* [Infra UI] Fixing Metrics Explorer chart title overlapping

* Adding tooltip to title
2019-06-07 08:47:35 -07:00
Chris Cowan
50dc13d8aa
[Infra UI] Fixes Uptime link to display for pod and containers (#38125)
* Fixes uptime link to display for pod and containers

* Making code more readable

* Another round of readability changes

* removing extra truthy check
2019-06-07 08:46:39 -07:00
Spencer
d0e580ab36
Fix typo in failure filtering (#38374)
* include a default value for failure string

* test the failure filtering

* oops, reverted too many changes
2019-06-07 08:45:32 -07:00
Tim Roes
089e7c87b1
Switch from old error messages to toast notifications (#38116)
* Replace notifier.error by toast notifications

* Fix incomplete mock

* Improve pipeline error title
2019-06-07 17:40:42 +02:00
Mikhail Shustov
cb375f23b8
disable renovate for developer doc generators. (#38239)
* disable renovate for doc generators. we have to regenerate docs on a version update

* use packageNames for static values
2019-06-07 17:00:45 +02:00
spalger
68757a847c disable flaky test 2019-06-07 06:57:34 -07:00
Mikhail Shustov
ab5ab9324d
Document mock convention (#37888)
* add docs how to use config in NP

* do not encourage storing initializer context in plugin

* add mock convention docs

* address comments

* address Josh comments
2019-06-07 15:52:38 +02:00
renovate[bot]
c08f3f179b Update dependency nock to v10.0.6 (#37886) 2019-06-07 06:30:26 -07:00
Justin Kambic
1ceefa7672
[Uptime] [Bug] Support KQL "OR" filters (#37564)
* Fix typo in variable name.

* Add support for kql-rendered output from filter bar.

* Support nested status query output.

* Expand complicated mock data.

* Add comments, clean up code.

* Improve naming, comments, simplify function bodies.
2019-06-07 09:13:44 -04:00
Peter Pisljar
8963da93d0
Vislib private removal part2 (#37850) 2019-06-07 15:06:24 +02:00
renovate[bot]
ed61d9da8b Update dependency proxyquire to v1.8.0 (#37913) 2019-06-07 06:01:18 -07:00
renovate[bot]
a6198fc5f5 Update webpack related packages (major) (#38372) 2019-06-07 06:00:29 -07:00
renovate[bot]
b4b25e1fc4 Update dependency geckodriver to v1.16.2 (#37798) 2019-06-07 05:59:50 -07:00
Nathan Reese
8dbfbddb53
Fetch options for input control child select boxes (#38148) 2019-06-07 06:57:56 -06:00
Tim Roes
cc372800ab
Convert Markdown components to TS (#38081)
* Convert Markdown components to TS

* Fix jest snapshots
2019-06-07 11:46:03 +02:00
Tim Roes
0a9990c96a
Fix broken Vega context menu (#38095)
* Fix broken Vega context menu

* Remove debug output

* Improve code comment
2019-06-07 10:40:45 +02:00
Mikhail Shustov
f753474423
Session storage refactoring (#37992)
* Kibana request keep a reference to raw request. used to bind hapi-cookie

* CookieSessionStorage should work with KibanaRequest

as soon as registerAuth refactored to restrict access to hapi Request, CookieSessionStorage won't work with hapi request directly

* change registerAuth public api

* adopt auth lifecycle tests

* move lifecycle auth tests from integration to unit and adopt to new api.

* mark toRawRequest as internal to prevent exposure

* generate docs

* reword test cases

* mark Request internals in tsdoc
2019-06-07 10:18:17 +02:00
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