Commit graph

17690 commits

Author SHA1 Message Date
Justin Kambic
f4d9e08b45
[PipelineViewer] Replace bare img tags with euiicon (#20330)
* Remove direct references to EUI SVG. Remove bare img tag from DetailDrawer.

* Update DetailDrawer test snapshots.
2018-07-01 15:37:19 -04:00
CJ Cenizal
926675139d
Aggregate SearchRequestQueue functions into a single module (#20332)
* Refactor all functions operating on requestQueue to be instance methods of the SearchRequestQueue class.
* Rename requestQueue to searchRequestQueue.
2018-06-29 16:56:30 -07:00
CJ Cenizal
9d12f8448d
Prevent undefined from and to timepicker dates. (#20355) 2018-06-29 14:03:03 -07:00
CJ Cenizal
ff7018e3a9
Remove Notifier lifecycle, timed, event, describeError, and log methods (#20327) 2018-06-29 13:24:00 -07:00
archana
757e7d2e05
Run functional test dev server from snapshot by default (#20312) 2018-06-29 13:36:48 -05:00
Bill McConaghy
2cce4ff29f
fixing issues with bad error message for low permission users (#20275)
* fixing issues with bad error message for low permission users

* fixing stats, settings, and mappings error message and removing unused file
2018-06-29 13:49:49 -04:00
Jen Huang
8def9be997
Field editor to React/EUI (#20245) 2018-06-29 09:45:54 -07:00
Bill McConaghy
d29e612ec0
improving warnings for delete and force merge (#20264)
* improving warnings for delete and force merge

* PR feedback
2018-06-29 12:08:34 -04:00
Bill McConaghy
3af5ef813b
fix sorting for index management (#20266)
* fix sorting for index management

* PR feedback
2018-06-29 12:07:25 -04:00
Bill McConaghy
c5be83bbd6
clearing error message when upload component mounts (#20268)
* clearing error message when upload component mounts

* fixing tests
2018-06-29 12:06:00 -04:00
Casper Hübertz
6e2de2e33d
[DOCS] Updating APM UI documentation (#19946)
Adding new documentation about the APM UI and definitions of terminology and more.

* Images added to docs

* Adding Using APM UI page contents

* Including new APM UI page

* Updated Watcher copy

* Copy feedback from @gchaps
2018-06-29 10:45:19 +02:00
CJ Cenizal
d1dce9b831
Refactor SearchLooper and rename it SearchPoll (#20315)
* Refactor SearchLooper by removing unused interface methods and internal logic.
* Rename SearchLooper to SearchPoll.
* Remove use of Angular $timeout.
* Make courier responsible for stopping the search poller when there's a fatal error.
* Integrate _search promises with the digest cycle.
2018-06-28 16:34:15 -07:00
Nathan Reese
8f996d3c85
Allow setting offset relative to overall chart time (#19709)
* Allow setting offset relative to kibana time

* remove changes to kibana.yml

* use timerange instead of kibana_time, do not allow default value, better help text

* throw error when zero is provided, round number to avoid decimals - which are not allowed

* do not allow offsets larger than zero
2018-06-28 17:12:41 -06:00
Lisa Cawley
6b690d7d1c
[DOCS] Fixes license expiration info (#20316) 2018-06-28 15:26:09 -07:00
Stacey Gammon
435eccb3dc
remove unused fn and variable (#20111) 2018-06-28 17:48:31 -04:00
Tim Roes
5f0e590ad5
Change AggConfig(s) to ES6 syntax (#20224)
* Change AggConfig(s) to ES6 syntax

* Use arrow syntax

* More ES6

* Fix cyclic import issue

* Use more ES6 syntax

* Add more ES6 code
2018-06-28 20:53:35 +02:00
Stacey Gammon
db1aad03bb
Remove _behaviors abstraction in Chromium reporting (#20106)
* remove over abstraction.

* delete unused file
2018-06-28 14:03:19 -04:00
Nathan Reese
575bc35f36
use absolute path for sample data (#20244) 2018-06-28 11:23:24 -06:00
Maxim Tolochko
050e7ef13d Update @kbn/i18n yarn.lock file (#20301) 2018-06-28 18:31:40 +02:00
Felix Stürmer
24ac3df4b6
Upgrade redux, redux-thunk and react-redux in x-pack (#20267)
This upgrades x-pack dependencies to the following versions:

* `redux@4.0.0` (to support TypeScript in the upcoming infra-ui migration, `redux-observable@1.0.0` in particular)
* `redux-thunk@2.3.0` (to support `redux@4.0.0`)
* `react-redux@^5.0.7` (to support `redux@4.0.0`)
2018-06-28 15:35:29 +02:00
Hamid
1366f86022
[APM] update js agent instructions (#20262) 2018-06-28 14:47:10 +02:00
Stacey Gammon
10e184a40b
turn off object-literal-sort-keys rule (#20274) 2018-06-28 08:40:30 -04:00
Peter Pisljar
339fd6825a
fixing failling test (#20287) 2018-06-28 12:28:30 +02:00
Maxim Tolochko
f522b31ac9
Add draft implementation of I18n engine (#19555)
* Add draft implementation of I18n engine

* Add i18n loader

* kbn-i18n refactoring

* Fix react i18n context and update doc

* i18n engine refactoring

* Fix locales data loading and add more jsdoc comments

* Fix verify_translations task

* I18n tests refactoring

* Add build scripts to kbn-i18n package

* Fix some bugs

* Move uiI18nMixin into ui_i18n folder

* Add 'browser' field to kbn-i18n package.json

* Get rid of "showError" method

* Make i18n and i18nLoader a singleton object

* Add default locale as fallback if translation files were not registered

* Update yarn.lock

* kbn-i18n fix

* Add default formats

* Try to fix build

* Add more examples into kbn-i18n/README.md

* kbn-i18n fix

* Fix app_bootstrap tests

* Add links to issues in TODO comments
2018-06-28 12:38:39 +03:00
CJ Cenizal
3ea4c3e0bc
Simplify Courier interface and organize internals (#20060)
**Interface changes**

There are two goals behind the interface changes:

* Make it clearer which courier modules are meant for public consumption by exporting them from the top level.
* Simplify the courier object by removing responsibilities and focusing its responsibility solely on scheduling search requests via the fetch method and timefilter.refreshInterval Angular event.

I did this by taking the following steps:

* Removing redirectWhenMissing, indexPatterns, SearchSource, and SavedObject from the courier object. I also removed some unused methods from its interface.
* redirectWhenMissing is now a service registered on the kibana/url Angular module.
* indexPatterns is now a service registered on the kibana/index_patterns Angular module.
* SearchSourceProvider and SavedObjectProvider are now top-level exports of ui/courier.
* migrateFilter, decorateQuery, buildQueryFromFilters, and luceneStringToDsl are now top-level exports of ui/courier.

**Internal changes**

I also made some internal changes in an effort to organize the code clearly and reduce unnecessary complexity.

* I refactored the async code in CallClient to appear sync with async/await and encapsulated chunks of logic in helper functions. I also used an isAborted flag instead of overwriting the esPromise var with an enum.
* I combined Looper and SearchLooper into a single class and deleted unused functions.
* I reorganized the courier/fetch/request code into SearchRequest, SegmentedSearchRequest, and serializeFetchParams modules.
* Renamed various other methods and variables to improve clarity.
2018-06-27 16:58:19 -07:00
Spencer
c8185cfef5
Avoid unnecessary recompile at startup (#20176)
When running the optimizer in dev mode, with new or updated entry files, the optimizer will run once and then a second time immediately after. This is because the webpack watcher uses really loose timestamp checks and since the entry files are created immediately before initializing the optimizer they are considered to be "changed" even when they aren't. To avoid this I've integrated the `webpack.WatchIgnorePlugin` to ignore the entry files from the watcher.


This could also be fixed by modifying the timestamps of the files after writing them to disk, but I didn't want extra FS access and it's not actually possible to change the entry files without completely restarting the optimizer.
2018-06-27 15:13:04 -07:00
Lee Drengenberg
aa6c06e1f3
ES 6 visualize tests (#20178)
* ES 6 visualize tests

* metric_chart es6

* correct test names, no screenshots

* switch spy panel to inspector

* ES 6 visualize tests

* metric_chart es6

* correct test names, no screenshots

* switch spy panel to inspector

* es6 some more tests

* un-skip tag_cloud tests

* fix data table indentation
2018-06-27 16:59:40 -05:00
Lisa Cawley
49c175afe0
[DOCS] Clarified X-Pack features in trial (#20271) 2018-06-27 11:12:58 -07:00
Peter Pisljar
58cd7c8cb8
reactifying visualization (#16425) 2018-06-27 16:14:45 +02:00
Tim Roes
3ec284c26b
Update makelogs to 4.1.0 (#20232) 2018-06-27 11:48:58 +02:00
Josh Soref
2b27fb1c5f Fix misspellings (#19981) 2018-06-26 20:17:41 -07:00
Shaunak Kashyap
ad44ae971b
Add a Static Lookup field formatter (#19637)
* Add static lookup field formatter

* Adding field formatter ID to test IDs
2018-06-26 17:07:18 -07:00
Bill McConaghy
61aa89cb64
adding missing data-test-subj and renaming one (#20238) 2018-06-26 20:05:32 -04:00
archana
b03243f5d8
[Functional Tests] Use @kbn/test on Kibana CI (#18967)
* Replace test:api with @kbn/test runTests

* Improve CLI help menu 🆘

* Use --es-from

* Replace jenkins:selenium with kbn-test

* Validate cli args, fixing test in the process

* Clean up some stuff

* Code review fixes

* Explanation for collectCliArgs

* Remove exit codes, they're useless anyway.

* Make markdown vis test pass with dev_mode setting

* Tests

* Remove unneeded export

* Code review: move console logging up to cli.js

* Code review: refactor startServers and runTests to take single options collection

* Code review: Remove all things I am sure we do not use

* Improve tests

* Code review fixes

* Pass created log to runFtr, runElasticsearch, runKibanaServer

* Update --es-from option to --esFrom
2018-06-26 18:08:40 -05:00
Justin Kambic
068c02f1c9
[Pipeline Viewer] [Monitoring] Rename config view to PipelineViewer (#20230)
* Rename config view to PipelineViewer.

* Remove unused className.

* Remove unneeded variable.

* Format file with prettier.
2018-06-26 18:59:18 -04:00
Peter Pisljar
28402d3dfc
Remove Angular from courier request handler (#20032) 2018-06-26 20:41:02 +02:00
Bill McConaghy
dbdbb688de
[console] adding support for autocompletion of template names (#20218)
* adding support for autocompletion of template names

* changing template_id param to template to make it consistent with index and others
2018-06-26 12:51:54 -04:00
Nathan Reese
2341661cd8
Replace timefilter angular service with singleton (#19852)
* use uiSettingsClient instead of angular config service

* replace timefilter service with singleton

* remove all other uses of timefilter service, get timefilter singleton working

* remove Private from brush event

* globalState

* fix timefilter jest test

* clean up rebase artifacts

* lint errors

* another lint error

* fix broken functional test _shared_links

* fix broken mocha test doc.js

* fix service load order breaking status page

* remove Provider from change_time_filter

* another round of mocha test updates

* convert create_brush_handler test to jest

* fix kbnGlobalTimepicker toogle mocha test

* remove _root_search_source - removed in another PR and somehow I added it back during rebase

* better comments around Object.assign and proper js-docs format

* use  so listerners get cleaned up when scope is destroyed

* listen to correct timefilter update event

* update APM to use timefilter singleton

* update angular scope when timefilter changes

* fix APM jest test

* add listenAndDigestAsync to listen.js

* fix apm breadcrumbs jest test

* move diffTime and diffInterval into timefilter

* pass mode to updateFilter to resolve functional test failure

* call registerTimefilterWithGlobalState from APM application

* remove rootScope from kbn_global_timepicker

* use  to subscribe to timefilter in cases where results need to happen in digest async

* spalger review changes

* ensure monitoring timefilter callbacks are executed inside evalAsync

* remove unneeded evalAsync calls around setTime
2018-06-26 10:29:41 -06:00
liza-mae
2acb0265d8
Fix flaky visualize lab mode tests (#20165)
* Update saveSearch method in discover and add wait page loading for advance settings

* Fix spaces
2018-06-26 10:28:15 -06:00
CJ Cenizal
6cbfb97abd
Fix broken SearchRequest clone method and add test. (#20222) 2018-06-26 09:19:57 -07:00
gchaps
e05e0bc0bc
[COPYEDIT] Updates to text in force merge modal in index management (#20134) 2018-06-26 08:04:24 -07:00
Justin Kambic
94d99d63f3
[Monitoring] [Pipeline Viewer] Remove obsolete code (#20122)
* Remove PipelineViewer component, replace with Config Viewer as index export.

* Remove tests for obsolete component.

* Remove obsolete code.

* Remove obsolete CSS.

* Remove old SVG class for graph edges.

* Remove more graph rendering code.

* Remove obsolete properties from graph classes.

* Remove unused constants.

* Remove obsolete keys from subtitle props.

* Fix broken unit tests.
2018-06-26 10:49:11 -04:00
Bill McConaghy
d8c7970840
simplifying logic for showing extend trial and adjusting tests (#20211)
* simplifying logic for showing extend trial and adjusting tests

* PR feedback
2018-06-25 14:38:44 -04:00
Aleh Zasypkin
18037984da
Upgrade rxjs: 6.1.0 ---> 6.2.1. (#20209) 2018-06-25 20:04:19 +02:00
Bill McConaghy
a141087179
[console] Fixing rollover autocomplete (#20167)
* adding body autocomplete for rollover

* adding scope link for settings for rollover autocomplete

* adding additional body autocomplete properties
2018-06-25 12:50:55 -04:00
Nathan Reese
a566312adb
replace SearchSource fetch with fetchAsRejectablePromise (#20130)
* move errorHandler into constructor, replace fetch with fetchAsRejectablePromise

* update existing users of fetch to handle promise rejection
2018-06-25 07:27:12 -06:00
Nathan Reese
a1d44c155e
add isBeta flag to add data module schema (#20049)
* add isBeta flag to add data module schema

* remove changes to packages/kbn-es/yarn.lock

* do not put empty flex item in dom

* update snapshots
2018-06-25 07:11:59 -06:00
Nathan Reese
b32d2fe542
remove unused code metrics executor (#20135) 2018-06-25 07:06:15 -06:00
Bill McConaghy
4a66c2cace
removing custom tokenizer code from console (#20013) 2018-06-25 08:47:46 -04:00
Bill McConaghy
eafcd909a4
fixing issue with autocomplete and slashes at end of url (#20151) 2018-06-25 08:46:28 -04:00