Commit graph

22430 commits

Author SHA1 Message Date
Chris Roberson
fba727b2c0
[Monitoring] Address some UI regressions with shard allocation (#29757)
* Address some UI regressions with shard allocation

* Renable the shard tests, and a couple others that are disabled

* PR feedback
2019-02-04 15:15:09 -05:00
Josh Dover
888217dc0f
Upgrade Assistant Follow-ups (#29663)
* Check security privileges before allowing reindexing

* Add global readyForUpgrade flag for Cloud

* Add ml_settings to cluster_settings

* Generalize locking mechanism for stop/starting watcher

* Display ML/Watcher stopping/resuming steps in UI

* Fix type issues

* Handle security being disabled for privilege check

* Use xpack_main.info + add types

* Fix x-pack builds
2019-02-04 13:36:42 -06:00
Matt Apperson
564cb528c2
[BeatsCM] Add logging endpoint to get errors and status info back from beats - WIP (#29289)
* Types, and index pattern moved to new format

* fix imports

* API now doing full validation on config blocks

* progress pre-move-blocks to their own api

* Config is now stored as a JSON string keyword to prevent conflict

* New API server is working

* fixing types — progress

* “fixed” all types

* add lib and most adapter methods needed

* wired up more plumbing

* added REST adapter to client for config blocks

* fix some tests

* connect new APIs to beat details page

* fix typo causing several failing tests.

* update test data

* API bug fixes

* fix remaining testing

* revert index name change

* add new routes

* remove whitespace

* fix spelling

* wiring things up and adapting to the new UI

* config block creation works in UI

* config blocks now show up once added

* adding paging to tables

* config list paging works

* version check for UI changes

* fix types

* Update the rest of config UI, still needs create API connection

* create now mass creates tags after tag is created, edit creates and deletes configs in real time

* create config blocks when creating tags

* propperly load tags on their own for beats

* load inital config blocks on edit page

* wired up initial pass at assignable tags

* assignments now work.

* squash many bugs with tag creation, editing, as well as k7 breadcrumbs

* fix label id

* Fix the displaying of module types

* bug fixes for deleting config blocks during initial tag creation

* make name really required on initial walkthrough tag creation

* Fix and enhance deleting a config block from existing tag

* Initial non-working endpoint that validates API and response

* init new endpoint

* beat ID is required

* returns 400 if beat not found

* fix memory adapter for configs

* add new libs to compose

* add index template

* tweak types

* move index template logic to ES event hook

* propperly wait for ES

* add lifecycle names

* fix translations, remove old config update from API

* insert status into ES

* remove old tests

* added RUNNING status

* expand types

* Re-init route

* dont map litterals

* convert timestamp
2019-02-04 14:18:29 -05:00
Chris Roberson
b10540f06f
[Monitoring] Add default search fields for each table (#29748)
* Add default search fields for each table

* Remove custom schema

* We don't need it here

* Add ccr tables

* Fix tests
2019-02-04 14:11:46 -05:00
Justin Kambic
2320f15b9b
Allow greater than default size for snapshot count. (#29681) 2019-02-04 13:16:42 -05:00
Luke Elmers
22933775ac
Prepare for cutover to vis data loader (#29873) 2019-02-04 11:03:13 -07:00
Pete Harverson
6afcc28c3b
[ML] Edits to labels in the Apache and Nginx ECS data recognizer modules (#29935) 2019-02-04 17:19:25 +00:00
Søren Louv-Jansen
f782b9fe35
[APM] Add support for chained exceptions (#29345)
* [APM] Add support for chained exceptions

* Rename constants to elasticsearch_fieldnames
2019-02-04 18:08:23 +01:00
Søren Louv-Jansen
a5724bda68
[APM] Flip transaction.name to keyword by default (#29718) 2019-02-04 18:08:02 +01:00
Chris Cowan
a5aa0dc3e9
[Infra UI] ECS Migration (#28205)
* updating fields

* Migrate to ESC event.dataset

* Migragte fields to ECS fields

* renaming variable

* Reverting back to host.name

* Changing from Top Hits to Terms Agg for getting node name; change host.name back to host.hostname for name.

* Changing back to host.name

* Moving from using the document source to an aggregation for node name

* Updating tests with new data format and data.

* removing unused fields

* adding test data for docker 6.6.0

* Adding docker tests for 6.6.0

* Fixing jest tests

* Fixing tests

* Adding the most critical line of code in the entire project

* Fix ECS-compatible apache rules and restore old ones

* Fix ECS-compatible nginx rules and restore old ones

* Add tests for apache2 in ECS and pre-ECS format

* Add tests for nginx in ECS and pre-ECS format

* removing console.log

* Fixing tests
2019-02-04 09:47:03 -07:00
Nathan Reese
4f42dde279
[Maps] fix full screen (#29958) 2019-02-04 09:22:07 -07:00
Justin Kambic
1925ee9566
Add loading states for Snapshot and Filter Bar. (#29858) 2019-02-04 11:18:45 -05:00
Sarah Hersh
bf866030c7
fix broken image link of time filter page (#29961) 2019-02-04 11:14:40 -05:00
Aaron Caldwell
f8a5e99396
[Maps] Add zoom in/out map controls (#29862)
* Add zoom in/out map controls

* Line up parens
2019-02-04 08:39:41 -07:00
Sarah Hersh
3cd087663b
[Docs]Updates to Discover docs (#29868) 2019-02-04 10:20:24 -05:00
Thomas Neirynck
bfbce22165
Use Kibana locale when loading content from the Elastic Maps Service (#29671) 2019-02-04 09:55:55 -05:00
Casper Hübertz
8604e8f3f4
[APM] Replace colour vars with EUI (#29822)
Refactored all use of custom APM UI colour variables and replaced with EUI theme
2019-02-04 15:42:38 +01:00
Sonja Krause-Harder
d42a3f484e
[Infra UI] Always pass index patterns as strings. (#29927)
* Always pass index patterns as strings.

* Abide by prettier rules.
2019-02-04 15:17:29 +01:00
Court Ewing
475dd5651b
Content security policy strict mode (#29856)
A content security policy is a great addition to the protections built
into Kibana, but it's not effective in older browsers (like IE11) that
do not enforce the policy.

When CSP strict mode is enabled, right before the Kibana app is
bootstrapped, a basic safety check is performed to see if "naked" inline
scripts are rejected. If inline scripting is allowed by the browser,
then an error message is presented to the user and Kibana never attempts
to bootstrap.
2019-02-04 09:09:40 -05:00
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