Commit graph

22411 commits

Author SHA1 Message Date
Aleh Zasypkin
d05437703d
Introduce I18nService core service and I18nContext. (#29379) 2019-02-04 13:38:00 +01:00
Walter Rafelsberger
7966b2ff78
[ML] adds telemetry to ML (#29121)
Adds telemetry to collect the amount of indices created using File Data Visualizer.
2019-02-04 13:14:25 +01:00
Sébastien Loix
2c257df717
[Watcher] Add missing Action types on client (#29818)
* Add missing Webhook action on client
2019-02-04 13:11:16 +01:00
Felix Stürmer
cc13b77a02
[Infra UI] Add a source settings ui (#26786)
This adds a configuration UI to change various properties of an infrastructure data source. The properties that can be currently changed are:

* name
* index pattern for metrics
* index pattern for logs
* fields like the timestamp, container/host/pod identification

It is meant as a basis for providing configurability for other source properties like outgoing links and formatting rules in the future.
2019-02-04 12:56:02 +01:00
Kerry Gallagher
732915ee2a
[Infra UI] Handle no metrics data gracefully (#29424)
* Use metric_time prefix for metric_time actions

* Add refetch capabilities to with_metrics

* Pass through refetch to index

* Add no data message and refetch button to metrics/index

Next stage: Extract into shared component between metrics and waffle map

* Remove "refetching" and just use "loading"

No need for the explictness, just reuse the loading state, as there's no value to differentiating refetching vs loading here

* Add no_data component

* Amend for Prettier

* Use no_data component

* Change naming to better reflect current components

* Introduce notion of two empty states: no indices and no data

Also changes nodes_overview and logs to use moved component

* Add no_data functionality

* Remove metrics specific no data component, use the new shared component

* Change import order

* Use no_data component in nodes_overview

* Refactor logs to use shared no data component

* Import intl

* Revert testing value

* Pass handler correctly to avoid circular references

* Satisfy type check

* Remove one last unused component
2019-02-04 10:27:26 +00:00
Joe Reuter
93fef68647
Fix fieldformatter calls in pipeline helper and add functional test for range aggs (#29842) 2019-02-04 11:25:06 +01:00
Spencer
daf19f8a5a
[sass/mixins] move kibanaFullScreenGraphics keyframes to mixin (#29897) 2019-02-03 23:07:00 -08:00
Nathan Reese
1c09fe70fd
[Maps] provide better error message when vector shapes can not be fetched (#29888) 2019-02-03 21:21:50 -07:00
Nathan Reese
82dcf123db
[Maps] Add layer - provide message when EMS is unavailable (#29909)
* [Maps] provide message when EMS is unavailable

* small fixes
2019-02-03 20:44:23 -07:00
Nathan Reese
8d150e7379
[Maps] make getStore syncrouns (#29895) 2019-02-03 20:38:17 -07:00
Spencer
bc5d5143d4
[darkMode] Prevent success toast until uiSetting saved (#29898)
* [uiSettings] add getSaved$() for setting updates that have been saved

* [styles/theme] only prompt for refresh when setting is saved
2019-02-02 16:23:22 -08:00
Josh Dover
c0a2e8014e
Make ReindexWorker resilient to ES connection issues (#29908) 2019-02-02 12:11:25 -06:00
Nathan Reese
6888cd49ca
[Maps] Full screen (#29751)
* [Maps] full screen

* toggle fullScreen class

* remove unneeded class

* more specific class name

* change i18n name space to common.ui

* clean up scss imports
2019-02-02 06:19:15 -07:00
Spencer
32190e3ecb
[pageObjects/visualize] use testSubjects.setValue() to avoid partial input (#29903)
Fixes https://github.com/elastic/kibana/issues/29373
Fixes https://github.com/elastic/kibana/issues/29833

This flaky test is caused by the filter input box not being filled in completely. I was able to reproduce this once locally, but only after running the tests a couple times. To fix this I tried switching to the `testSubjects.setValue()` function, which focuses the input and clears its value before attempting to type into the field. This seems to have a higher success rate as I was able to run the test 40 times after making the change without a failure.
2019-02-01 22:38:24 -08:00
Jonathan Budzenski
61f999304b [kbn-es] Platform specific snapshots (#29673) 2019-02-01 20:59:59 -08:00
Spencer
b44d1ad54a
[chrome/nav] implement forcedNavigation logic in new nav (#29770)
## Summary

When the Kibana server is red we render the status page in place of the current page, kind of like an error page. This prevents us from having to worry about redirects, but also means that links which normally trigger navigation with hash changes are broken because the status page app is rendered instead of the current app. To fix this we enable "forced navigation" mode on the status page so that any nav bar link that is clicked, which resolves to the same protocol+host+path will trigger a page refresh.

This used to be implemented as a click handler on each nav item, but EUI doesn't support click handlers on links in the Nav, so this uses a single event listener at the container around the nav links which handles the click events which bubble up. This means the feature now also works for the recent links and the home link.

To test this you should start Kibana in oss mode as security prevents the display of the status page, since license info can't be retrieved.

 1. `node scripts/kibana --dev --oss` **without elasticsearch**
 1. open http://localhost:5601
 1. on the status page, try clicking the app links, the page should refresh and attempt to load the clicked url
 1. start es `yarn es snapshot --license oss`
 1. wait for Kibana to go green
 1. click an app link and the app should load correctly

Original implementation: 597062fcbd/src/ui/public/chrome/directives/global_nav/app_switcher/app_switcher.js (L35-L61)
2019-02-01 17:59:20 -08:00
spalger
bf6126ad1d [ftr/maps] use newly renamed maps page object 2019-02-01 17:08:14 -08:00
Spencer
d0a3ebaf41
[kbn/es-query] build ts with babel7 (#29872)
* [kbn/es-query] build ts with babel7

* [kbn/es-query] keep esm for public module output
2019-02-01 16:16:05 -08:00
Lisa Cawley
b71b815658
[DOCS] Removes problematic float (#29875) 2019-02-01 15:27:09 -08:00
Nathan Reese
b1e1ab6385
[Maps] better error handling when layer configs can not be found (#29534)
* [Maps] better error handling when layer configs can not be found

* remove kibana.yml changes

* gis-map to map

* throw exception for getStringFields and getAttributions and then handle exceptions in caller
2019-02-01 15:50:51 -07:00
dave.snider@gmail.com
fafa9fa9ae
EUI 6.8.0 (#29860)
Upgrades Kibana's EUI dep.
2019-02-01 14:38:46 -08:00
spalger
58cc36e243 fix pre-commit only lint errors 2019-02-01 14:19:43 -08:00
Court Ewing
7a87f03ec7
Introduce content security policy (CSP) (#29545)
* csp: nonce and unsafe-eval for scripts

To kick things off, a rudimentary CSP implementation only allows
dynamically loading new JavaScript if it includes an associated nonce
that is generated on every load of the app.

A more sophisticated content security policy is necessary, particularly
one that bans eval for scripts, but one step at a time.

* img-src is not necessary if the goal is not to restrict

* configurable CSP owned by security team

* smoke test

* remove x-content-security-policy

* document csp.rules

* fix tsconfig for test

* switch integration test back to regular js

* stop looking for tsconfig in test

* grrr, linting errors not caught by precommit

* docs: people -> you for consistency sake

Co-Authored-By: epixa <court@epixa.com>
2019-02-01 17:11:38 -05:00
Nathan Reese
c7e94975e6
set recenlty accessed when /map/:id route is accessed (#29861) 2019-02-01 14:50:54 -07:00
Thomas Neirynck
9f1408f42c
[Maps] Rename gis variable names to maps (#29867) 2019-02-01 16:44:42 -05:00
Robert Monfera
d91809d7de
[Canvas] Perf: save workbook assets separately from lighter weight structures (#29594)
* Perf: save workbook assets separately from lighter weight structures

* Chore: simplification
2019-02-01 19:18:10 +01:00
Chris Cowan
ff1af3e1ed
Fixing #29778 - Disable add button when field select is empty (#29779) 2019-02-01 10:35:39 -07:00
dave.snider@gmail.com
508a776efa
Dark mode for kql bar (#29684)
KQL bar now works in dark mode.
2019-02-01 09:22:44 -08:00
Thomas Neirynck
52fed8a52d
[Maps] Remove usage of gis from user-facing api (#29800)
This also renames the gis-folders to maps for consistency.
2019-02-01 12:07:05 -05:00
Caroline Horn
c0f50a17dc
[WIP] Add help menu item to header (#29664)
* Added static help menu item to header

* Update default message

* [chrome] add help menu extension point apis

* [chrome/headerExtension] fix test file name

* prettier

* Insert doclink and version dynamically

* Add missing i18n

* Lowercase `v` for version

* Smaller width for popover
2019-02-01 11:45:24 -05:00
Justin Kambic
11946fdc1b
[Uptime] Allow filter dropdown search for id, remove client-side size limits (#29557)
* Fix filter bug for IDs, remove limits.

* Add name, URL as searchable fields.

* Update outdated API test fixture.
2019-02-01 10:36:21 -05:00
Thomas Neirynck
e1a1bb8359
[Maps] Language improvements (#29473) 2019-02-01 10:28:22 -05:00
Joe Fleming
006cd31007 fix: add datetime as a date identifier (#29537) 2019-02-01 15:22:23 +01:00
Pete Harverson
c54d60061b
[ML] Removes unused filter bar from the Anomaly Explorer (#29817)
* [ML] Removes unused filter bar from the Anomaly Explorer

* [ML] Remove use of filters in URLs for explore series links

* [ML] Remove check for queryFilters from explorer controller test
2019-02-01 14:20:58 +00:00
Nathan Reese
22ca995911
[Maps] Fix new map showing no layers (#29799)
* [Maps] Fix new map showing no layers

* return async to function signature
2019-02-01 07:16:27 -07:00
James Gowdy
2656666106
[ML] Adding ui-select imports (#29823)
* [ML] Adding ui-select imports

* using variable in scss
2019-02-01 14:12:24 +00:00
Walter Rafelsberger
910bebb38b
[ML] Add ml-ui team to CODEOWNERS. (#29810) 2019-02-01 12:18:12 +01:00
Dmitry Lemeshko
83a2f7b030
[page_objects/visual_builder_page] fixes #29670 with proper wait for visualization loaded (#29741) 2019-02-01 11:11:24 +01:00
Caroline Horn
b1b941dd8f
Finally remove leftover LESS files (#29486)
* Use mixin for full screen graphics

- Moved svg assets to one folder under `ui/public/assets/images`
- Deleted .less files

* Fix Kibana logos as well

* forgot to remove

* adds dark mode images

* Removed search_select

In favor of pattern to be created in EUI : https://github.com/elastic/eui/issues/1498

* No LESS in plugin generator

* remove comment

* Remove .less from testbed

* snaps

* Update dark mode graphics to be a bit lighter

* [karma] load css via url, rather than webpack

* [karma] css isn't built at config time, concat at request time
2019-02-01 01:35:25 -05:00
dave.snider@gmail.com
037fcf4ab5
Inter UI and roboto mono font stack. Remove K6 theming. We did it (#29152)
Adds inter ui as the default font for Kibana. Removes the K6 theming. Kibana now uses EUI default.
2019-01-31 20:59:56 -08:00
Nathan Reese
37f507e5a9
[Maps] Apply tile styles before waiting for _tileLoadErrorTracker timer to expire (#29798)
* [Maps] avoid re-loading tiles after

* set starting min and max to values provided from descriptor
2019-01-31 21:52:47 -07:00
Nathan Reese
d9255a9798
[Maps] clean-up console errors (#29772) 2019-01-31 18:14:58 -07:00
DeDe Morton
f7de675be2
[Docs] Add list of supported config blocks for central management (#27275)
* [Docs] Add list of supported config blocks for central management

* Add Redis to list of supported outputs
2019-01-31 20:03:09 -05:00
Aaron Caldwell
75e6d07d0f
SetMBPaintProperties needs layerId key (#29771) 2019-01-31 16:43:03 -07:00
Matt Bargar
8a83955650
Re-introduce new filter bar (#29752)
Fixes the build issues introduced in #25563 and re-introduces the new react/eui/typescript filter bar, essentially reverting the revert in #29662. I did have to resolve one merge conflict in query_bar.tsx, and re-deleted all of the old filter bar code where translation code had been added.
2019-01-31 18:36:26 -05:00
Justin Kambic
f67e89b190
[Uptime] Use EUI color palette for charts/histograms (#29439)
* Add hardcoded eui primary/danger to charts/histograms.

* Use EUI JSON vars for color values.
2019-01-31 18:06:25 -05:00
Ryan Keairns
6418f80960
[K7 navigation] Reposition Discover tooltip and hide chrome on welcome (#29769)
* reposition tooltip, hide chrome on welcome

* Change tooltip to sentence case
2019-01-31 16:38:03 -06:00
Caroline Horn
90554c1744
Visualize sidebar design updates (#29658)
* Bring over all ui-select styles and convert color vars

* Some bootstrap dark theming

* Consolidating non-EUI form control styles

* Update some tutorial pieces set to EUI

* Fix up visualize editor sidebar as best as I can

* PR feedback

- comment for image
- euiScrollbar
- euiBorderThick

* Fix advanced toggle test

* Don’t show IE’s select arrow
2019-01-31 16:46:05 -05:00
Justin Kambic
505873ee6e
[Uptime] Port functional tests to 7.x (#29398)
* Refactor es queries and associated components/endpoints.

* Add unit tests, repair broken tests.

* [Uptime] Add API functional tests for uptime graphQL (#29128)

* Add API functional tests for uptime graphQL.

* Remove obsolete code.

* Add CI group for UI functional tests.

* Delete obsolete code, rename heartbeat es archive.

* Refactor adapter methods.

* Refactor adapter methods.

* Attempt to fix ci-group tag error.

* Skip functional app tests until later PR.

* Remove unused code.

* Optimize test runs.

* Add uptime to api test index.

* Fix formatting.

* Add HB 7.0 data for API tests.

* Configure first error_list test to work with 7.x data.

* Configure error_list filtered by id to work with 7.x data.

* Configure error_list functional tests to work with 7.x data.

* Update snapshot test to work with 7.x data.

* Update snapshot down filtered test to work with 7.x data.

* Configure snapshot up test to work with 7.x data.

* Configure ping list tests to work with 7.x data.

* Configure monitor list tests to work with 7.x data.

* Configure monitor status bar tests to work with 7.x data.

* Configure filterBar tests to work with 7.x data.

* Configure docCount tests to work with 7.x data.

* Simplify code based on PR feedback.

* Add loading spinner to monitor page title based on PR feedback.

* Rename GQL type based on PR feedback.

* Remove use of 'undefined' in ES query based on PR feedback.

* Simplify code based on PR feedback.

* Add definite size/shard_size for terms agg based on PR feedback.

* Simplify ES query based on PR feedback.

* Update x-pack/plugins/uptime/server/lib/adapters/monitors/elasticsearch_monitors_adapter.ts

Implement PR feedback.

Co-Authored-By: justinkambic <justin.kambic@elastic.co>

* Increase size for ES errors query based on PR feedback.

* Fix hardcoded field in terms filter based on PR feedback.

* Simplify get code for monitors function.

* Reduce unnecessarily large size for terms agg based on PR feedback.

* Pluralize filter bar props.

* Refactor filter bar query based on PR feedback.

* Update test.

* Fix busted GQL query.

* Update functional test docs to use data without buggy values.

* Update index name in HB functional api test docs.

* Update snapshot base functional test.

* Make snapshot filter tests pass, fix associated bug.

* Configure remaining snapshot e2e tests to work with 7.x data.

* Give better variable names and comments for ugly code.

* Configure ping list query tests to work with updated 7.x data.

* Rename graphql describe block.

* Update monitor status bar query tests to work with updated 7.x data.

* Update monitor list query tests to work with updated 7.x data.

* Update filter bar query to work with updated 7.x data.

* Update error list query to work with updated 7.x data.

* Update doc count fixture to work with new 7.x data.

* Address PR feedback with filter typing to clean up code.

* Add comments based on PR feedback.

* Fix bug introduced in 8856be8e39.
2019-01-31 16:40:33 -05:00
Rashid Khan
28c9f7b28e
Fix dev watcher instructions. 2019-01-31 14:17:26 -07:00