Commit graph

17884 commits

Author SHA1 Message Date
archana
d1cb0a44f5
Deprecate test:ui commands (#21092)
* Deprecate test:ui commands
2018-07-23 14:48:27 -05:00
gchaps
a9e79716d3 [DOCS] GS: Added note about hosted Kibana (#21037) 2018-07-23 12:38:23 -07:00
Walter Rafelsberger
3dc5b30f7e
[ML] Job validation uses fieldCaps to check aggregatable fields to avoid triggering Elasticsearch errors. (#21087)
While the output in the UI was fine, certain job configurations containing non-aggregatable fields could trigger errors on the Elasticsearch side.
This PR fixes it by adding an additional query for fieldCaps to check first which fields are actually aggregatable.
2018-07-23 20:35:10 +02:00
Bill McConaghy
9e71f5cb5c
fixing accessibility issue with include system indices checkbox in index creation wizard (#21034)
* fixing accessibility issue with include system indices checkbox in index creation wizard

* updating snapshots
2018-07-23 11:13:45 -04:00
Søren Louv-Jansen
9a13bb0924
Bump backport to 4.2.0 (#21083) 2018-07-23 16:30:19 +02:00
Tim Roes
d171aa8f12
TypeScriptify visualization components (#20940)
* Refactor vis components to TypeScript

* Fix issue with ResizeChecker

* Fix calling onInit for no data

* Explicit named export

* Add title to vistype

* Fix error in test file

* Move onInit to no VisualizationNoResults

* Make listenOnChange changeable

* Add memoize util

* Use memoize for no results check

* Address issue with uiState

* Optimize memoize function
2018-07-23 16:21:45 +02:00
Walter Rafelsberger
e503b87eb2
[ML] Job validation no longer reports an error when categorization job is properly setup. (#21075)
For categorization jobs, job validation would report that mlcategory isn't an aggregatable field. This fix checks the job configuration and only reports the error if the job config isn't using categorization_field_name and the detector field isn't set to mlcategory.
2018-07-23 14:37:16 +02:00
Søren Louv-Jansen
7266349e33
[APM] Performance marks for RUM agent (#20931)
* [APM] Performance marks for agent

* Fixed formatting and design

* Update snapshot

* Fixed tooltip id
2018-07-23 14:15:59 +02:00
James Gowdy
bf6cc70d24
[ML] Adding validation to the edit job flyout (#21041)
* [ML] Adding validation to the edit job flyout

* removing a bit of lodash

* tiny code clean up

* fixing validation check
2018-07-23 12:39:47 +01:00
Walter Rafelsberger
d6453fa3ba
[ML] Migrates ml-form-label to EUI/React. (#21059)
- Migrates the ml-form-label directive to use EUI/React.
- Exposes both FormLabel and JsonTooltip as React components from individual files so they can be used in a React context when the wrapping element also has been already ported to React.
- Adds jests based tests for the FormLabel and JsonTooltip components. They try where possible to make the same assertions like the mocha based tests. The mocha based tests are kept in the code for now so the code gets still tested in a angular based context and as a reference to have the same mocha/jest based tests side by side as a reference for migration.
- The FormLabel component is done in a way so it supports transclusion in both cases when used with React alone (using the children prop) and angularjs (using a ref callback and angular's transclude()).
2018-07-23 11:42:36 +02:00
Nathan Reese
b319b5a676
avoid day long gaps in sample data (#20897)
* avoid day long gaps in sample data

* avoid using toISOString to avoid an timezone problems

* unskip sample test now that problem is fixed

* use much better cj algorithm for translating time

* cjcenizal review updates

* update funtion name in install.js

* push source reference date back a week
2018-07-22 17:28:59 -06:00
Pete Harverson
465ab78ef7
[ML] Adds editor for configuring detector rules (#20989)
* [ML] Adds editor for configuring detector rules

* [ML] Edits to Rule Editor flyout following review
2018-07-22 14:01:45 +01:00
dave.snider@gmail.com
6ecc990274
Upgrade xpack to eui@3.0.0 (#20930)
* upgrade to eui@3.0.1
2018-07-21 08:02:50 -07:00
James Gowdy
cdafa2f092
[ML] Adding filters privileges (#21021) 2018-07-21 11:49:41 +01:00
CJ Cenizal
ab0e2badb7
Convert notify.warning calls to use toastNotifications (#20767)
* Replace notify.warning with toastNotifications in region map, vega, index_pattern, redirect_when_missing, graph, monitoring, and ML
* Link to index patterns from Graph toast.
* Delete RouteBasedNotifier.
* Remove courierNotifier and SearchTimeout and ShardFailure errors.
* Remove warning and custom notifier types.
2018-07-20 15:10:02 -07:00
Tim Roes
0dbaf65363 Change painless scripted field (#21026)
* Change painless scripted field

* Remove wrong char

* Remove invalid escape chars
2018-07-20 12:42:13 -06:00
CJ Cenizal
97593b409b
Make 'Change password' button on account page keyboard-accessible. (#20958) 2018-07-20 11:29:16 -07:00
Peter Hampton
92cc522e02 [pjh] Add prometheus exporter to the list of plugins (#21009)
(cherry picked from commit 73198e3d12)
2018-07-20 11:04:29 -07:00
Carlos Pérez-Aradros Herce
d787ffbe08
Add vSphere Metricbeat module tutorial (#20572)
* Add vSphere Metricbeat module tutorial
2018-07-20 15:10:51 +02:00
Nicolas Ruflin
47e784c434
Add more tutorials to add data UI (#21020)
* Golang
* Logstash
* Prometheus
* Zookeeper
2018-07-20 15:00:32 +02:00
Tudor Golubenco
f3fe9c6c83
Add new filebeat tutorials (#20997)
* PostgreSQL module
* Added Logstash logs module
* Added Elasticsearch logs module
* Added IIS logs module
* Traefik logs tutorial
2018-07-20 14:21:24 +03:00
Hamid
41eb59a357
[APM] use RUM in instructions (#20934) 2018-07-20 09:49:19 +02:00
CJ Cenizal
ff52c76a22
Fix bug in which Discover showed shard failures message as part of the 'No results' feedback, when there were no failures. (#21003) 2018-07-19 15:05:37 -07:00
Tim Sullivan
2216b226d6
Monitoring Angular directives to use React components (#19183)
* remove some webpack aliases for jest

* remove status icon angular directive

* fix some component import problems
2018-07-19 14:29:25 -07:00
Tim Sullivan
80833cde95
Remove /api/_xpack/usage and /api/_kibana/v1/stats (#20800)
/api/_xpack/usage was added as a target for 6.4.0 but it will not be
used. Instead, the /api/stats response will include usage info on
everything that gets registered with the usage service in
/src/server/usage

/api/_kibana/v1/stats is a GET API that was added in 6.2, during a point
where we thought providing usage stats through a public API would be OK
for capturing internally, with the benefit of having it be visible.

However, we've pivoted away from that idea because it doesn't line up
too well with the existing flow of data, where usage stats are combined
with the "Kibana stats" such as process uptime and number of requests.
We want to shift how we collect stats from Kibana, but it will be
gradual. It might be a while before we have an architecture that makes
sense for a standalone public API for the usage stats

This endpoint was never documented, and isn't used anywhere in the code.
It does incur a maintenance cost though.

Therefore, instead of waiting for a next major version to remove this
API, I'm removing it for 6.4. It will be marked in the release notes as
a breaking change. Since it was never documented, it should not provide
a problem.
2018-07-19 13:46:52 -07:00
Tim Sullivan
f8bdc7d22a
[Test/Cleanup] Remove console.log (#21002) 2018-07-19 13:42:47 -07:00
Bill McConaghy
35dade2d3c
Reactify users roles (#20739)
* partial progress on reactifying users

* progress on EUIfication of users screen

* removing Angular stuff

* adding data-test-subj="passwordConfirmationInput"

* removing data-test-subj="userFormEmailInput" refs from tests

* fixing selector for role assignment

* some functional test fixes

* fixing some functional tests

* fixing last functional test

* removing stray console log

* fixing warnings

* attempting to fix flaky test

* trying again to fix flaky test

* PR feedback

* PR feedback

* fixing issue where form tried to submit

* adding sleep to allow user to load

* Design edits

Mainly adding wrapper EUI page elements, but also shifted around form elements.

* Fixed console error and added responsive prop to table

* addressing PR feedback

* A few more PR feedback

- Fixed alignment of table
- Removed the tooltip from the lock icon and placed the description inline.
- Changed delete button to an empty button

* addressing more PR feedback

* adding email field back in

* adding back username validation

* restoring original error message

* fixing dumb null error
2018-07-19 16:40:12 -04:00
Alex F
218dfa2953
Update Cloud tutorial instructions to work with UCv2 (#20950)
Updated some of the text in the manifest file for on-prem cloud
2018-07-19 14:24:51 -04:00
liza-mae
e02485684d
skip test (#20986) 2018-07-19 10:07:19 -06:00
James Gowdy
d1b667512c
[ML] Better handling of job request timeouts (#20985) 2018-07-19 16:39:54 +01:00
James Gowdy
3d06046295
[ML] Removing _feature and _ignored from detector modal (#20984) 2018-07-19 16:39:42 +01:00
Nicolas Ruflin
469c00592f
Remove beta label from tutorial overview page (#20977)
Many modules are still in beta which made the beta label not very useful in the overview page. This disables the beta label for now.

The label is still shown when clicking on module.
2018-07-19 17:09:03 +02:00
Spencer
b434652452
[kfetch] TypeScript-ify (#20914)
In order to make the awesome new kfetch api easier to consume in purely TypeScript projects, and since it's a pretty small module with very few dependencies, I converted it to TypeScript.

Along with kfetch I also started a type definition file for `ui/chrome` that we can extend as we go, but will likely be unnecessary after #19992
2018-07-19 06:31:44 -07:00
Leanid Shutau
a091cf0bdb
Fix i18n default formats injection into en.json (#20929)
* Fix i18n default formats injection into en.json

* Use snapshots for tests
2018-07-19 14:48:43 +03:00
Tudor Golubenco
c4436652ee
Add new tutorials: Osquery, RabbitMQ, and uWSGI (#20944)
* Osquery tutorial, under Security

* Rabbitmq tutorial

* uWSGI metrics tutorial

* Marked another two tutorials as Beta
2018-07-19 14:27:28 +03:00
James Gowdy
7a84e7871e
[ML] Changing edit job icon (#20935) 2018-07-19 08:21:10 +01:00
Aleh Zasypkin
b4b55bdf7b
Document the way new platform is integrated into legacy one. (#20925) 2018-07-19 07:48:14 +02:00
Spencer
29d8ec48b2
[tslint] enable no-default-export rule (#20952)
Just like our ESLint rules, I think we should enforce named exports over default exports via TSLint. No changes to the code were necessary because of this linting rule because everyone is already following the pattern we established with ESLint, but TSLint wasn't actually verifying the pattern.
2018-07-18 19:22:19 -07:00
Tim Sullivan
274617de59
Stats API: implement the "kibana status" spec from the Monitoring data model for stats (#20577)
* [Stats API] Set API field names per spec

* fix jest tests

* fix api integration test

* trash the original metrics collector

- constantly accumulating stats over time does not align with the existing behavior, which is to reset the stats to 0 whenever they are pulled

* move some logic out of the collector types combiner into inline

- change the signature of sourceKibana

* Make a new stats collector for the API

- to not clear the data when pulling via the api
- fetching is a read-only thing

* isolate data transforms for api data and upload data

* no static methods

* remove external in bytes

* remove the _stats prefix for kibana and reporting

* update jest test snapshot

* fix collector_types_combiner test

* fix usage api

* add test suite todo comment

* reduce some loc change

* roll back mysterious change

* reduce some more loc change

* comment correction

* reduce more loc change

* whitespace

* comment question

* fix cluster_uuid

* fix stats integration test

* fix bulk uploader test, combineTypes is no longer external

* very important comments about the current nature of stats represented and long-term goals

* add stats api tests with/without authentication

* fix more fields to match data model

* fix more tests

* fix jest test

* remove TODO

* remove sockets

* use snake_case for api field names

* restore accidental removal + copy/paste error

* sourceKibana -> getKibanaInfoForStats

* skip usage test on legacy endpoint

* fix api tests

* more comment

* stop putting a field in that used to be omitted

* fix the internal type to ID the usage data for bulk uploader

* correct the kibana usage type value, which is shown as-is in the API

* more fixes for the constants identifying collector types + test against duplicates

* add a comment on a hack, and a whitespace fix
2018-07-18 16:37:04 -07:00
Aleh Zasypkin
2a645d2252
Log correct Kibana URL when TLS is enabled and log it only once. (#20721) 2018-07-19 01:27:32 +02:00
Nathan Reese
0f5322e3a5
scripted fields preview and validate script before saving (#20746)
* add preview for creating scripted fields

* Move previewed results into flyout.  (#25)

* Move previewed results into flyout. Execute script as soon as the tab is selected.

* Format error in a danger callout.

* add functional test for preview

* move executeScript functionallity into lib so it can be used to validate on save

* validate script on save

* add functional test for script validation during save

* fix jest tests

* fix jest tests

* only validate script when field is scripted

* only add script callouts and help flyout to DOM for scripted fields

* move scripting stuff to its own render method

* right justify delete button to have same style as delete button for user management

* use data-test-subj key to find invalid script error msg in functional tests

* move help flyout link out of formRow help text and into its own row
2018-07-18 17:06:12 -06:00
Spencer
5afd06b5e5
[devUtils/procRunner] wait for proc to exit so we fallback to SIGKILL (#20918) 2018-07-18 14:30:16 -07:00
Nicolas Ruflin
fecbd11fd6
Add beta modules to add Data UI (#20923)
The following modules are added with the beta label:

* aerospike
* couchbase
* dropwizard
* elasticsearch
* etcd
* haproxy
* kafka
* kibana
* memcached
* munin
* windows
2018-07-18 20:19:04 +02:00
Nathan Reese
59b63c6a63
[home] Include ability to publish kibana saved objects from add data tutorial (#19559)
* add savedObjects to tutorial schema, add savedObjects to APM, add bulk create endpoint

* SavedObjectInstaller component

* bulkCreate fixes

* fix tutorial jest test

* update from sqren review

* updated copy

* move saved object json into seperate json files

* minor commit clean up

* ensure isMounted before setting state after async call, allow manifest to customize saved object install message

* remove duplicated logic for getting config xpack.apm.indexPattern

* refactor get index pattern title

* add functional test that loads APM saved objects

* remove extra await

* display overwrite message

* use angular free savedObjectClient

* functional test cleanup

* handle bulkRequest exception and add jest tests for SavedObjectsInstaller

* use Promise.reject instead of throw

* update copy
2018-07-18 10:57:25 -06:00
James Gowdy
3c74d30bee
[ML] Adding close jobs menu item (#20927)
* [ML] Adding close jobs menu item

* changing icon

* updates based on review

* adding extra check for close failure

* adding extra guard against missing response
2018-07-18 17:47:44 +01:00
Aliaksandr Yankouski
4445c58988
Use only core in browser environment, loader in node env (#20905)
* use only core in browser environment and loader only in node env

* do not reexport node stuff from browser
2018-07-18 18:02:37 +03:00
liza-mae
4551dfc0ad
Improve visualization tests (#20782)
* Improve tests for histogram, tag cloud, input controls and enable lab mode.

* enable skipped tests

* Update shakespeare test navigation to visualize

* Add sleep to shakespeare test

* Skip shakespeare test for now, it is not clear why it is failing and does not fail locally, need the other tests to run in CI

* Revert selector for selectAggregation, re-enable shakespeare test

* skip vega spec text test, was not fixed with changes

* Enable only visualize tests to run, need to see results and it's being blocked by other test failures

* Enable all tests again, visualization tests all passed

* Skipping sample data test due to bug #20807, let's see if rest of the tests pass
2018-07-18 07:31:17 -06:00
Walter Rafelsberger
651013b89c
[ML] Moves tooltip of info icon to top to avoid overlapping with corresponding form fields. (#20874) 2018-07-18 14:20:05 +02:00
Tim Roes
41fd042798
Move del to dependencies (#20921) 2018-07-18 13:55:23 +02:00
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