Commit graph

22946 commits

Author SHA1 Message Date
Spencer
d58b663813
[junit] use default rootDirectory for project (#32256) 2019-03-01 13:56:53 -08:00
Justin Kambic
729fdfd654
[Uptime] Improve monitor charts query (#30561)
* Refactor chart querying.

* Fix monitor chart query.

* Refactor several inline computations to helper functions. Improve schema naming.

* Move unit conversion to client, remove bare conversion values.

* Add API tests for monitor charts.

* Add test for conversion function.

* Add type annotations to latest schema additions.

* Fix typo.

* Refactor based on PR feedback, add comments asked for in PR feedback.

* Rename fields in schema, update tests. Extract monitor charts to functional component and add unit test.
2019-03-01 16:05:16 -05:00
Nathan Reese
54bbdbaedb
[Maps] Map embeddable (#31473)
* [Maps] embeddable

* fix embeddable registration

* get embeddable to render

* render map embeddable

* support filter pills on dashboard

* fix layerName error

* update getBoundsForFilters to not record bounds request in inspector

* set isReadOnly

* fix bug where different states are sharing same inspectorAdapters instance

* populate indexPatterns so container has index patterns for type ahead and filter bar

* pass refreshConfig from container to map store

* add functional test verifying index patterns passed to container

* remove data.json files commited by mistake

* add functional test ensuring inspector adaptors are not shared between embeddables

* add functional tests for filters getting passed to embeddable

* remove embeddable dashboard from web logs sample data saved objects

* add slash to edit path

* fix typo

* pass previous query state on reload, add functional tests to verify reload and refresh timer

* remove unnecessary check in getFilters

* review feedback from thomasneirynck

* fix resize bug

* remove animationFrame from resize callback
2019-03-01 12:06:46 -07:00
Mikhail Shustov
d89a97fb14
update @types/node to latest v10 (#32306) 2019-03-01 17:44:10 +01:00
Mike Côté
8ac6d6991a
Exclude /html_docs from eslint (#32314) 2019-03-01 11:43:06 -05:00
Alexey Antonov
f73330861d
TSVB is retaining results even after indexpattern is removed from opt… (#32003) 2019-03-01 19:07:13 +03:00
Chris Davies
079834af25
Remove unused server functionality from the interpreter (#32133) 2019-03-01 10:31:04 -05:00
Chris Davies
b8a784eb0c
Add http/1 response streaming to Canvas batches (#32027) 2019-03-01 10:29:59 -05:00
Dmitry Lemeshko
bda704ad1a
Improve logstash pipeline tests (#32198)
* [services/pipeline_list] optimize getRows function

* run ciGroup2 x16 times

* [services/pipeline_list] wait for table body loaded

* Revert "run ciGroup2 x16 times"

This reverts commit 4e45a5eaf1.

* removed unused browser_exec_scripts
2019-03-01 11:06:06 +01:00
Pete Harverson
46cc8469fd
[ML] Adds missing applyAsync to advanced job wizard page (#32186) 2019-03-01 10:03:38 +00:00
Daniil Suleiman
f2ab504077
Fix percentiles for table in TSVB (#32084)
* Fix percentiles for table in TSVB

* Disable add percentiles in table
2019-03-01 12:05:34 +03:00
Jake Landis
c2f89f4ca8 Logstash central management typeless API (#30546)
This commit adopts Elasticsearch's typeless API for Logstash
central management.

Relates: https://github.com/elastic/elasticsearch/issues/3863
2019-03-01 11:46:26 +03:00
Spencer
369bef316a
[eslint] require final newline (#32265)
We have had `insert_final_newline = true` in our `.editorconfig` file since April 2015, but never validated it with eslint. I'm a little tired of extra changes showing up in PRs because some people use editors which respect the `.editorconfig` file and some don't, so I figured we might want to enable the rule in eslint so that the can be autofixed.

Votes requested please :)
2019-02-28 18:01:29 -08:00
Tiago Costa
9ca411c09e
Avoid transpiled files end up into the repo when building (#32069)
* fix(na): avoid transpiled files endup on repo when building xpack.

* docs(NA): added todo in order to remove added code when we run the upgrade to babel@7.

* fix(NA): include missing files from the x-pack build.
2019-03-01 00:26:42 +00:00
Bill McConaghy
2efe09afb5 Fix Index Management bug in which the "Show system indices" toggle turned off other toggles (#32258) 2019-02-28 15:47:12 -08:00
Oliver Gupte
aefa169a68
[APM] fix inconsistencies in ESC type migrations (#32097)
* [APM] fix inconsistencies in ESC type migrations

* [APM] audit ESC schema types and removed unused fields

* [APM] removed unused line property type from IStackFrameBase
2019-02-28 13:45:11 -08:00
Spencer
4749c6aab6
[ts][ftr] improve types for ftr and expect.js, cleanup changes to tsconfig files (#31948)
In https://github.com/elastic/kibana/pull/31234 there were some extra changes that I've reverted, like use of the `tsconfig-paths` package to magically rewrite import statements to defy the standard node module resolution algorithm, the inclusion of several unnecessary options in the `test/tsconfig.json` file, and changes of the line-endings in the config files. This also brings a few enhancements from https://github.com/elastic/kibana/pull/30190 including a modularized version of the expect.js types, and options for explicit mappings for the PageObjects and services used in ftr tests.
2019-02-28 12:06:00 -08:00
Lukas Olson
23fe22c871
Fix KQL handling of carriage return (#32150) 2019-02-28 12:39:49 -07:00
Spencer
03fe1f0ff0
move test using tsc into an integration test to avoid timeout (#32174)
Fixes #31828

To avoid a timeout we've seen fail 11 times since the end of January by moving the test into an integration test. The test starts up TypeScript, so it's clearly an integration test, and by moving it into an integration test it can have more time to run.
2019-02-28 11:25:59 -08:00
Spencer
6c52625c48
[build/fs/copy] use fs.copyFile to avoid race condition (#32220)
Fixes #31913

There have been 6 failures in this test in the last 60 days, which I believe is caused by a race condition of some sort that prevents us from accessing the file right after it's been written. It might have to do with writeStreams not actually flushing to the filesystem within time, but I haven't been able to prove it. @mikecote is taking a look at seeing if he can do some simple testing to reproduce the situation locally.

In order to avoid further errors this PR updates to use the `fs.copyFile` function that was added in node 8.5, which does the whole copy in a single native operation.
2019-02-28 11:18:57 -08:00
Bill McConaghy
55ecd79b41
disabling ccr and remote clusters when index mgmt is disabled (#32203)
* disabling ccr and remote clusters when index mgmt is disabled

* addressing PR feedback
2019-02-28 13:56:01 -05:00
Josh Dover
021acaa2e6
Remove types from Esqueue (#32146) 2019-02-28 12:29:30 -06:00
Spencer
ae3632b559
[kbn-test] upgrade to babel7, add ts support (#32168)
* [babel] add babel7 compatible node preset

* [kbn-test] upgrade to babel7 preset
2019-02-28 09:56:19 -08:00
Mikhail Shustov
e4e3354090
fix typings for a test (#32217)
didn't merge latest master in https://github.com/elastic/kibana/pull/32063
2019-02-28 18:31:03 +01:00
Jonathan Budzenski
2dd80ba3ad
[optimize] url-loader use limit (#32078) 2019-02-28 11:00:17 -06:00
Jonathan Budzenski
c988a41b92
[sass] compress in prod (#32139) 2019-02-28 10:58:41 -06:00
Søren Louv-Jansen
aa71146252
[APM] Convert most of remaining js to ts (#32115)
* [APM] Convert most of remaining js to ts

* Fixes for distribution component

* Make `page` and `sort` optional

* Add Server definition from hapi
2019-02-28 17:54:57 +01:00
Jonathan Budzenski
95a3284637
Bump node to 10.15.2 (#32200) 2019-02-28 10:48:42 -06:00
Mikhail Shustov
8c6b1e5908
Update Typescript to the latest version (#32063)
* bump typescript version to 3.3.3333

* fix tests after updating TS version

* suppress type errors until they fixed appropriately

* address comments

* add type def for UnconnectedKibanaLink

* remove fix @ts-ignore

* fix snapshot test. provide displayName
2019-02-28 17:21:47 +01:00
Aleh Zasypkin
890d255dfa
Document scripts/i18n_check. (#32196) 2019-02-28 17:27:13 +02:00
Aleh Zasypkin
0835cd30ca
Introduce Elasticsearch service. (#28344) 2019-02-28 17:22:07 +02:00
Aleh Zasypkin
b8c9d0afa0
Get rid of Handlebars support in i18n tools. (#32190) 2019-02-28 17:16:59 +02:00
Mikhail Shustov
5fc7addac5
Update jest to v24 (#31825)
* udpate jest, jest-cli, @types/jest to v24

* fix type error in kibana-i18n package

* return serivce explicitly to fix typings

* add explicit never

* suppress typings errors

* update jest versions in x-pack

* make tests in x-pack more robust and fix incompatibility

* suppress CallCluster mock typings

Mock interface doesn't match CallCluster. Requires
additional work

* x-pack. resolve other typing conflicts

* remove unused types/jest

* fix snapshots

* restore mocks after jest.spyOn

* remove outdated definitions for jest

* cleanup x-pack package.json and update @types/jest

* fix tests merged from master

* updated yarn.lock and log errors for scripts/type_check

* This commit fixes error in TS, which failed on parsing the file.

* suppress type errors from master

* jest-cli is devDep
2019-02-28 13:26:16 +01:00
Pete Harverson
f2acacb237
[ML] Fix formatting of values for time of day or week anomalies (#32134) 2019-02-28 09:32:32 +00:00
alakahakai
88c2b59c64
Add Kibana Home Tutorial for Filebeat zeek module (#31774)
* Add Kibana Home Tutorial for Filebeat zeek module
2019-02-27 21:39:21 -08:00
Joe Fleming
acd762d8ae Fix: don't initialize workpad from WorkpadApp (#32163)
Closes https://github.com/elastic/kibana/issues/32161

All the elements are loaded in the router, so loading the from the component just duplicates the work.

This is actually left-over code from before we had a router. Apparently I missed this lifecycle when adding the router, so it's been an issue in Canvas for quite some time now.

### Stats

Workpad | Previous load time | PR load time
-- | -- | -- 
Elastic{ON} Tour Dallas: Canvas v3 | 10 seconds | 7 seconds
Kibana Canvas - Your data, your way. | 32 seconds | 18 seconds

*Time from when the Canvas loading indicator goes away and the workpad app renders to when the loading indicator stops spinning*
2019-02-27 22:00:11 -06:00
spalger
7e1d565587 update kbn-pm build 2019-02-27 19:13:13 -08:00
Spencer
da38c346dd
[server/logging/tests] use --oss to load kibana faster and avoid timeouts (#32162) 2019-02-27 15:32:22 -08:00
Caroline Horn
75384404e8
[Bugfix] Remove bootstrap classes from Notifier (#31956) 2019-02-27 15:43:07 -05:00
nicknak
827e652351
Removes sinon from saved objects unit tests. (#32045)
* Removes sinon from saved objects unit tests.

* Uses mockResolvedValue for return values as promises.
2019-02-27 15:07:26 -05:00
Robert Monfera
0530dfb880
Usability: larger minimum element size (#32106) 2019-02-27 20:03:08 +01:00
Lukas Olson
d0fb7b8822
Move getIndexPattern service to visualize (#32060) 2019-02-27 11:51:07 -07:00
Alison Goryachev
6e77a7cb03
fix client validation for rollup index name (#32067)
* fix client validation for rollup index name

* remove wrapper object in constants file

* move support for "*" illegal character to common constants file
2019-02-27 13:08:37 -05:00
Aleh Zasypkin
2f62e6f1a5
Upgrade @babel/* dependencies. (#32031)
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2019-02-27 19:27:40 +02:00
Chris Cowan
aeb5f7ba7a
Fixes #32022 - Fix table to display name instead of ID (#32051) 2019-02-27 07:38:35 -07:00
Joe Reuter
295de1ed7d
Fix pushed down chart on multi line horizontal legends (#31466) 2019-02-27 15:30:45 +01:00
Walter Rafelsberger
db700ffcef
[ML] Fixes restoring table interval selection from appState. (#32056)
Fixes a regression introduced in #31692. The table interval selection wasn't properly restored from `AppState` because of a mismatch in the expected object structure.
2019-02-27 12:26:51 +01:00
Tim Roes
9d77205191
Cleanup unused code (#32018) 2019-02-27 10:18:35 +01:00
Joe Fleming
2028fdf56e fix: bump max payload size up to 25MB (#31974)
default of 1MB is very easy to hit, so it's not hard to make Canvas fail
2019-02-27 09:33:57 +01:00
Jonathan Budzenski
1782f376a8 [build] final path length check for windows (#32076)
Windows has a maximum path length of 260 characters.  We're approaching this limit so this adds a build task to check for any path > 200 characters.

200 + C:/ + path + kibana = total.  Rough estimation.
2019-02-26 17:21:40 -08:00