Commit graph

17835 commits

Author SHA1 Message Date
Spencer 8662475834
[core/ui] bootstrap the legacy platform within the new platform (#20699)
Fixes #20694

Implements super basic new platform `core` system, which includes two services: `core.injectedMetadata` and `core.legacyPlatform`. The `core` currently has two responsibilities:

 1. read the metadata from the DOM and initialize the `ui/metadata` module with legacy metadata, proving out how we plan to expose data from the new platform through the existing APIs/modules to the legacy platform.
 2. bootstrap the legacy platform by loading either `ui/chrome` or `ui/test_harness`

Because `core` mutates the `ui/metadata` module before bootstrapping the legacy platform all existing consumers of `ui/metadata` won't be impacted by the fact that metadata loading was moved into the new platform. We plan to do this for many other services that will need to exist in both the legacy and new platforms, like `ui/chrome` (see #20696).
2018-07-17 22:07:13 -07:00
CJ Cenizal a36b87ad3e
Add SearchStrategyRegistry and defaultSearchStrategy to support existing search behavior, and integrate it with CallClient. (#20497)
* Add SearchStrategyRegistry and defaultSearchStrategy to support existing search behavior, and integrate it with CallClient.
* Move fetch param logic from CallClient into defaultSearchStrategy.
* Move defaultSearchStrategy configuration into kibana plugin via search uiExport to avoid race conditions with other plugins.
* Add call-out react directive.
* Show error in Discover if user tries to access a rollup index pattern without the right search strategy. Sentence-case copy in field chooser.
* Add tests with multiple searchStrategies and fix errors in logic.
2018-07-17 18:49:46 -07:00
Stacey Gammon e90f652875
Bump eui (#20774)
* bump eui

* Fixed breaking `EuiPage` changes

Mainly adding `EuiPageBody`’s where there were none

* bump to 3.0, remove duplicate declaration of EuiFlyoutBody, update jest snapshots

* bump eui

* bump to 3.0, remove duplicate declaration of EuiFlyoutBody, update jest snapshots

* Update jest snapshots in xpack
2018-07-17 19:28:07 -04:00
liza-mae 861ff8aacc
Add telemetry false for dashboard tests (#20901) 2018-07-17 16:35:11 -06:00
Hanqing Zhao 17eebb9ba3 [kbn-plugin-generator] Fix plugin naming inconsistency (#20808)
<!--
Thank you for your interest in and contributing to Kibana! There
are a few simple things to check before submitting your pull request
that can help with the review process. You should delete these items
from your submission, but they are here to help bring them to your
attention.

- Have you signed the [contributor license agreement](https://www.elastic.co/contributor-agreement)?
- Have you followed the [contributor guidelines](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md)?
- If submitting code, have you included unit tests that cover the changes?
- If submitting code, have you tested and built your code locally prior to submission with `yarn test && yarn build`?
- If submitting code, is your pull request against master? Unless there is a good reason otherwise, we prefer pull requests against master and will backport as needed.
-->
Make relevant generated files use snakeCase instead of kebabCase
Closes #20524
2018-07-17 12:01:52 -07:00
CJ Cenizal 1a65b3577a
Update JS style guide with rule for prefixing private class methods with an underscore. (#20851) 2018-07-17 08:44:51 -07:00
Nick Peihl bea8bb4dda
Add link to maps.elastic.co to region maps docs (#20645) 2018-07-17 07:59:47 -07:00
Nathan Reese 2053441c33
fix flaky input control chained test (#20642)
* add check that combobox was successfully cleared

* run test 25 times

* checkin the correct files this time

* re-enable skipped test

* remove extra test loaders
2018-07-17 08:55:30 -06:00
Hendrik Muhs a0a22cfc12
[Monitoring/ML] add number of forecasts to monitoring overview (#20758)
Add forecasts (Number of forecasts for an ml jobs) as column to the ML Jobs monitoring page. Related to: elastic/elasticsearch#31647
2018-07-17 16:41:19 +02:00
James Gowdy 492fb01f8c
[ML] Better error notifications in jobs list (#20880)
* [ML] Better error notifications in jobs list

* removing test data
2018-07-17 14:27:28 +01:00
Leanid Shutau 9c9159ce0c
Implement a build tool for default messages extraction (#19620)
* Implement a build tool for default messages extraction

* Refactor extraction tool, resolve review comments, fix bugs

* Resolve comments, refactor extraction tool, fix bugs

* Add context to messages extraction tool

* Resolve comments

* Fix bugs

* Add messages extraction from .jade files, refactor code

* Add template literals parsing

* Return defaultMessages.json to plain structure

* Refactor utils

* Fix bugs

* Refactor code, resolve review comments, fix bugs

* Fix minor bug

* Get rid of '@babel/traverse' and add its native implementation

* Add handlebars messages extraction

* Fix mkdir on macOS

* Fix bugs, inject default formats, finalize the tool

* Fix filsystem permissions

* Refactor nodes traversal

* Update code style

* Downgrade @babel/types to fix build issues

* Resolve comments

* Fix minor bugs
2018-07-17 15:56:55 +03:00
Pete Harverson 6939f5073c
[ML] Adds page to ML Settings for viewing and editing filter lists (#20769)
* [ML] Add page to ML Settings for viewing and editing filter lists

* [ML] Edits to Filter Lists Settings page following review
2018-07-17 09:47:26 +01:00
Tyler Smalley ac1a922124
[test][kbn-plugin-helpers] Skip install dependencies (#20649)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-07-16 21:38:39 -07:00
Nathan Reese ffa6109014
properly render disabled range control (#20811)
* properly render disabled range control

* remove disabled from existing elements
2018-07-16 20:00:45 -06:00
Spencer fcc2c440f0
[tslint] add helper for running tslint on specific projects (#20866) 2018-07-16 17:46:47 -07:00
Felix Stürmer 4b255e9fe9
Upgrade typescript to 2.9.2 (#20757)
This upgrades TypeScript to version 2.9.2. My main motivation is the support for generic type arguments in JSX elements and tagged templates (e.g. for `styled-components`).

Problems arising from breaking changes in the new TypeScript version have been mitigated by:

* setting the `keyofStringsOnly` option until impacted code has been
  future-proofed
* Restricting some joi-related generics

See the [release notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html) for details.

Some follow-up tasks should be:

* Update EUI to support the new `keyof` behaviour
* Update new platform TypeScript code to support new `keyof` behaviour
* Remove `keyofStringsOnly` setting
2018-07-17 00:31:05 +02:00
Spencer 4f867a25d1
[esArchiver/test] use different lengths for random to ensure unique values (#20857)
fixes #20741

Rather than just generate random words with the default length of 2, generate a random 5 letter word for the type to filter by and 10 letter words for the other types, so there will never be more than 3 records with `type1`.
2018-07-16 14:36:05 -07:00
debadair c488f7edc1
[DOCS] Tweaked Elasticsearch Service links for SEO 2018-07-16 13:19:05 -07:00
Tim Sullivan 8ba773a498
Add Beats module and input info to Telemetry (#20648)
* fix metrics field name (stats)

* add state info

* add module name count

* use a set for the unique hosts instead of a map

* fix getting beats_state info

* fix unit test

* processBeatsStatsResults and processBeatsStateResults
2018-07-16 12:57:26 -07:00
CJ Cenizal ea1c0a6757
Remove courier:searchRefresh angular event from searchPoll. (#20850) 2018-07-16 11:50:46 -07:00
Tim Roes 61f50dd30c
Fix flickering of vislib on refresh (#20817) 2018-07-16 18:36:50 +02:00
James Gowdy 54cf83d360
[ML] Jobs list bug fixes (#20823) 2018-07-16 16:33:59 +01:00
Tyler Smalley 46bacc6c64
Workaround for yarn interdependency conflicts (#20805)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-07-16 07:42:49 -07:00
Aliaksandr Yankouski adc4185898
Split i18n engine to specific parts by tech and by env (#20513)
* split to packages in accordance to specific library

* split to packages depending on tech and environment

* make env modules names consistent

* remove intl polyfilling

* move laoder to root, i18n folder to core
2018-07-16 17:02:06 +03:00
James Gowdy 6ddc9db376
[ML] Removing hardcoded datafeed ID in jobs list (#20815) 2018-07-16 12:44:59 +01:00
Nicolas Ruflin 5111863f42
Add Beta Ceph metrics module to Kibana Home (#20223)
<img width="2043" alt="screen shot 2018-06-29 at 12 43 22 pm" src="https://user-images.githubusercontent.com/373691/42109208-1aedc92e-7b9a-11e8-8c96-1c9be12a10d1.png">

<img width="2042" alt="screen shot 2018-06-29 at 12 43 30 pm" src="https://user-images.githubusercontent.com/373691/42109217-1f81ce40-7b9a-11e8-8eca-f3e8695b9e7f.png">
2018-07-16 08:21:00 +02:00
liza-mae e8af080347
Skipping test due to bug #20807 (#20809) 2018-07-14 18:25:42 -06:00
John Dorlus 8f17171b2d
Updated data test subject to use correct property from item object. (#20794) 2018-07-13 16:40:01 -04:00
trevan 107bfb9d7a Ensure the field exists in the index pattern before grabbing it (#20639) 2018-07-13 16:32:50 -04:00
Chris Roberson 276f08ccbb
[Monitoring] Capitalize the license type (#20683)
* Capitalize the license type in monitoring

* Revert "Capitalize the license type in monitoring"

This reverts commit 38ad3a516d.

* Pass in the type capitalized

* Revert "Pass in the type capitalized"

This reverts commit 6a05bb12f3.

* Capitalize type in license status directly so consumers do not need to worry about it
2018-07-13 16:24:57 -04:00
Nathan Reese 16e9a7e4a1
de-angularize indexPatterns Field and FieldList (#20589)
* de-angularize indexPatterns Field and FieldList

* do not remove shortDots angular filter

* remove ui/chrome mock in _index_pattern test
2018-07-13 12:07:20 -06:00
Jen Huang 92b432e089
Use EuiCodeBlock for JSON settings, and overflow if long value (#20744) 2018-07-13 10:40:32 -07:00
Aleh Zasypkin 52880f83f2
Make "legacy" Kibana server aware of connection protocol. (#20756) 2018-07-13 18:55:15 +03:00
Tyler Smalley cca09311c0
Skip flaky Monitoring Shard Allocation Per Node tests (#20138)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-07-13 08:34:41 -07:00
gchaps b872983811
[DOCS] Update Managing Indices w/ info about security (#20632)
* [DOCS] Update Managing Indices w/ info about security

* [DOCS] Incorporated review comments for indices management doc

* [DOCS] Incorporated review comment re: security enabled
2018-07-13 08:31:14 -07:00
Clinton Gormley d769f270fa Docs: Updated styling of cloud link in installation 2018-07-13 16:04:46 +02:00
CJ Cenizal aab75aea10
Re-enable the indexPattern:placeholder setting. Change its value to be an empty string. (#20685) 2018-07-13 06:39:29 -07:00
Aleh Zasypkin 34a44289aa
[Reporting] Blacklist Transfer-Encoding HTTP header for PDF report generation. (#20755) 2018-07-13 15:51:13 +03:00
Brandon Kobel 5d1548a721
Removing kbn-version from the response headers. (#20551)
* Removing kbn-version from the response headers.

* Removing test assert that we don't need
2018-07-13 07:10:31 -04:00
Aliaksandr Yankouski 92774b7b09
Use injectI18n Higher-Order Component instead of I18nContext (#20542)
* add implementation of I18nContext, docs for injectI18n hoc

* remove i18nContext wrapper, add docs for react components as classes
2018-07-13 12:21:50 +03:00
Casper Hübertz ecefab55e6
[APM] Add section titles to span detail modal (#20717)
* Adding fontSize from variables

* SectionHeader style added

* Adding section headers

Needed titling for DB statement and Stacktrace on the page

* Pluralization

* Adding fontSize variable

* Creating new header title style

* Moving title into Stacktrace container

* Updated snapshots
2018-07-13 09:15:28 +02:00
Tiago Costa b142f80d7d
Match chalk dependency version on kibana with the one used on x-pack (#20621)
* chore(NA): match chalk dependency version on kibana with x-pack to ^2.3.2.

* chore(NA): bump chalk version dependencies and update lock files.
2018-07-13 00:26:57 +01:00
CJ Cenizal d04bc1f324
Add ability to abort a kfetch call. (#20700)
* Split kfetch module into kfetch and kfetchAbortable sub-modules.
* Add abortcontroller-polyfill.
2018-07-12 16:11:24 -07:00
gchaps 4ef3c5a9e0
[DOCS] Dashboard-only-mode: Update to match UI (#20734)
* [DOCS] Dashboard-only-mode: Update to match UI

* [DOCS] Incorporated review comments, added note about data access
2018-07-12 16:10:34 -07:00
Spencer 52e7939625
[tslint] use exitCode 1 when linter errors (#20567)
`node scripts/tslint` is used to run the linter on all projects, but isn't currently reporting a non-zero status code when there are failures. This PR ensures that the status code is always 1 when an error occurs in the linters.

To test make a change to a TypeScript file that violates the linter rules and run `yarn grunt run:tslint` to make sure that `grunt` is seeing the non-zero exit code and fatal-ing correctly.

```sh
yarn grunt run:tslint
echo $? # should be 1
```
2018-07-12 11:38:36 -07:00
Nathan Reese c8ffb05968
Provide InputRange component valid value when Range slider is not set. (#20002)
* move unsetLogic into react component

* remove extra comment

* add comment about why empty state is needed for InputRange component

* fix broken jest test

* move empty state logic from react component to ListControl class, add comments about reset and clear functions

* add comments about clear and reset to control class

* calculate hasChanged to avoid bug where clear form still shows 'cancel changes' as active for an empty form

* use hasValue in range control to check if value exists

* add unit test for list_control_factory and cleanup range_control from review comments
2018-07-12 12:29:21 -06:00
Stacey Gammon 826758c78c
Turn reporting tests back on (#20634)
* unskip reporting tests

* Focus only on flaky test suite and run 10x

* Revert "Focus only on flaky test suite and run 10x"

This reverts commit a6616b1140c29d8d3f13666d20ae94db9a97267f.
2018-07-12 11:27:18 -04:00
Søren Louv-Jansen 423a961a1f
Redux should update after timefilter has changed (not before) (#20719) 2018-07-12 17:17:14 +02:00
trevan db7c08ddcc Change the scale factor when upgrading panels with margins (#20684)
* Change the scale factor when upgrading panels with margins

* Add test for dashboard_grid_container with and without margins
2018-07-12 08:32:04 -06:00
Lee Drengenberg ba462a9fb0
refactor login page check, turn off telemetry (#17435)
* refactor login page check, turn off telemetry

* significant refactor of navigateTo

* replace slashes with _ in test failure output html files

* re-do out of date PR
2018-07-12 08:31:43 -05:00