Commit graph

22375 commits

Author SHA1 Message Date
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
Mike Côté
196d43bd67
Fix saved object repository bulkCreate to return migrated references and attributes (#29754) 2019-01-31 15:48:04 -05:00
Ryan Keairns
de92f9b1b7
Monitoring design touchup (#29479)
* UI design touchup for 7.0

* clean up chart titles and beta icon

* Make shard list wrap on IE11

* wrap table cells with much content

* fix title height above graphs on ie11

* update tests and snapshots

* update functional test for node detail

* fixing more functional tests
2019-01-31 14:32:04 -06:00
Pete Harverson
0c86822e40
[ML] Automatically migrate saved objects created by data recognizer (#29736)
* [ML] Automatically migrate saved objects created by data recognizer

* [ML] Remove TODO from saved object import step
2019-01-31 19:54:22 +00:00
kaiyan-sheng
95cbc4ffd7
Remove beta label from GA metricbeat modules (#29720) 2019-01-31 12:22:05 -07:00
James Gowdy
f46a8d64ca
[ML] Displaying recognizer saved objects errors (#29734) 2019-01-31 17:14:18 +00:00
Chris Cowan
fada5d9e15
[Infra UI] Table View for Home Page (#29192)
* Addding initial table implimentation

* Moving waffle map to seperate component; adding contextual menu to nodes; adding filter to groups; adding pagination; adding sorting

* Fixing EUI types for EuiInMemoryTable to work for EVERYONE

* Adding server plugin for tslint for VIM; Fixing tests

* Adding the view switcher

* removing dependency

* updating yarn.lock

* Change padding to use EUI rules

* Rename waffle/index to nodes_overview; move table to nodes_overview

* Adding missed files in last commit

* Adding textOnly to the columns that need special truncation because they are buttons

* Fixed an error in the merge

* Fixing merge issues
2019-01-31 09:53:09 -07:00
Luke Elmers
402b8cfa8a
Test dashboards in spaces & interpreter socket. (#29459) 2019-01-31 09:44:23 -07:00
Tyler Smalley
c70aeec6fd
[kbn-es] Support platform specific distributions (#29678)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-01-31 08:41:29 -08:00
Søren Louv-Jansen
528e533528
[APM] Fix Legend positioning and margins (#29707) 2019-01-31 17:28:12 +01:00
Ryan Keairns
bbc68b0000
[7.0] Adds new K7 side navigation (#28940)
* initial commit of K7 side nav

* [ui/persistedLog/recentlyAccessed] support observing history items

* [globalNav] use real recentlyAccessed and navLink data

* fixes header logo and mobile layout

* handle hidden links and no recents, use size vars

* handle hidden links and no recents, use size vars

* adds prop to wrap flyout link text

* fix menu scroll for IE

* [chrome/headerGlobalNav] fix typescript issues

* [chrome/headerGlobalNav] only ignore types that are actually missing

* update EUI to 6.6.0

* Revert "update EUI to 6.6.0"

This reverts commit 048cbf9157f8fc7410d4cf8e017b210c4548104e.

* [chrome] remove HeaderAppMenu component

* [ftr/services/appsMemnu] update for new style

* [ftr/discover] tweak size of discover tests and size-dependent assertions

* [chrome] disable offsets in embed mode

* [ftr/discover] try sticking with original screen width

* [ftr/discover] try to force screensize before checking axis labels

* [ftr/services/appMenu] ensure menu closed after clicking app

* uptime app icon, mobile header size removed

* [ftr/discover] make assertion resilient to minor changes in vis width

* [chrome] add types for nav apis

* [chrome/recentlyAccessed] display app icons when possible

* [ftr/discover] make a little wider so scroll doesn't interfer with vis width

* [ftr/services/globalNav] fix test subject
2019-01-31 10:13:40 -06:00
Thomas Neirynck
98a77ab9db
[Maps] Do not wait for meta call to complete for bootstrapping the app (#29514) 2019-01-31 10:43:09 -05:00
Aaron Caldwell
cbefe90d50
[Maps] If tilemap source already exists, just sync style (#29620)
* If source already exists, just sync tilemap style

* Review feedback
2019-01-31 08:40:29 -07:00
Chris Cowan
7e9315a528
[Log UI] Flyout for Log Events (#28885)
* Adding flyout to log viewer

* Adding filtering

* Fixing typescript errors

* Adding a test for graphql; fixing test data for 7.0.0

* Adding terminate_after:1 to logItem request

* fixing test data

* Switching back to old data

* Fixing data for tests

* Adding i18n translations

* changing label from add to set

* Make flyout call more robust; fixing typings

* Adding loading screen to flyout

* Fixing linting errors

* Update x-pack/plugins/infra/public/components/logging/log_flyout.tsx

Co-Authored-By: simianhacker <chris@chriscowan.us>

* Fixing visible mis-spelling

* Fixing types

* Change withLogFlyout to be conditional; Add icon instead of onClick for flyout

* Adding dark mode support

* Adding user-select:none to icon div

* Removing remnants of a failed experiment

* Adding aria-label to view details button

* Fixing padding on date element

* Removing unused variable that somehow got past the linters

* Fixing empty_kibana

* Fixing data for infra

* Fixing merge weirdness
2019-01-31 08:34:09 -07:00
Nox911
caa31170d3
Translate filter editor (#29713) 2019-01-31 17:57:32 +03:00
Nox911
6303731052
[i18n] Translate missed labels in src/ui folder (#29614)
* Translate missed labels

* Resolve review comment

* Add missed translation
2019-01-31 17:56:13 +03:00
Bill McConaghy
779c9e1fd3
Update xpack console specs (#29506)
* updating xpack console specs for _xpack namespace deprecation

* fixing stray xpack

* adding additional spec

* fixing issues with stray _xpack
2019-01-31 08:28:37 -05:00
James Gowdy
a6291afd7d
[ML] Fixing data recognizer panel refresh on new job page (#29701) 2019-01-31 13:11:27 +00:00
Maryia Lapata
17bb0d0483
Update kbn-i18n dependencies (#29699) 2019-01-31 15:54:22 +03:00
Peter Pisljar
db64c791a2
adding tests for vilisb legend filtering (#29604) 2019-01-31 04:41:21 -08:00
Nox911
e2d5e1048b
[i18n] Translate filter_bar (#26250)
* Translate ui -> filter_bar

* Fix issue

* Resolve review comments
2019-01-31 15:13:04 +03:00
Leanid Shutau
bc4b075de2 [I18n] Add README.md for i18n_integrate tool (#21035)
Add i18n build tools readme
2019-01-31 15:04:29 +03:00
Sophie Chang
413d37d5ed [ML] Update http access modules for ECS (#29383)
* [ML] Initial commit for apache ecs module

* [ML] Update apache2 module for ECS

Rename following fields
event.module:apache
event.dataset:access
source.address
url.original
http.response.status_code
source.geo.location

Rationalise to only use one set of kibana saved objects for all http web access logs
Rename files from apache
Combined URL explorer into Count explorer dashboard as there was a lot of duplication
Add filter to custom url
Rename custom urls to Investigate Source IP and Status Code
Add chart to show overall event rate split by event.module - can tell if multiple datasets are included
Increase limit for top source ips from 5 to 50
Add created_by to custom setting for telemetry
Rename jobs and saved objects to include ecs tag

Tested side by side against v6 jobs

* [ML] Rename apache files from hyphen to underscores

* [ML] Further apache renames

Also change custom URLs to lower case to match "View series"
Change created_by to ml-module-apache-access

* [ML] Initial commit of nginx ml module

* [ML] Rename dashboard to generic explorer

* [ML] Further refinement for apache

Rename http_status_code to status_code_rate
Update custom url to use filters instead of lucene query bar

* [ML] Convert apache module to nginx

Copy files, keeping nginx logo
Multiple renames to nginx

* [ML] Make chart legend visible by default
2019-01-31 11:39:18 +00:00
Pete Harverson
0467735ce8
[ML] Add anomaly marker to charts when gap exists in data (#29628)
* [ML] Add anomaly marker to charts when gap exists in data

* [ML] Amend check for anomaly markers on gaps and update Jest tests
2019-01-31 11:30:03 +00:00
Silvia Mitter
5521917a24
[APM] align index pattern (#29691) 2019-01-31 12:01:15 +01:00
Nox911
53307404e6
[i18n] Translate fatal errors (#29410)
* Translate fatal_errors

* Update snapshot

* Update snapshots

* Fix ids

* Add path to translations in scr/core folder
2019-01-31 13:19:50 +03:00
Oliver Gupte
db147984f8
[APM] fixes infinite recursion for multiple waterfall item references (#29659) (#29683)
* [APM] fixes #29564 by bailing out of recursion when a multiple references of the same object are detected

* [APM] minimized test fixure to isolate logic being tested

* [APM] improve readabilty by using better var name
2019-01-31 01:16:32 -08:00
Bill McConaghy
06bbf1da65
making badges clickable to filter in index management (#29635)
* making badges clickable to filter in index management

* improving a11y for clickable badge
2019-01-30 21:02:07 -05:00
Nathan Reese
c1d6a1bd76
[Maps] use EuiSuperDatePicker in QueryBar instead of Angular timepicker in Top Nav (#29235)
* Embed timepicker in query bar (#29130)

* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* embed timepicker in query bar

* flesh out date picker in query bar for maps app

* wire up refresh config

* fix bug with way update function called by watcher

* get maps application functional tests working with new timepicker

* remove some changes outside of scoped work

* clean up typescript lint problems

* fix query_bar I18n lint error

* update query_bar jest test

* grab some parts missing from one cherry-pick

* pass dateRange to updateQueryAndDispatch when app state changes

* use timefilter disable methods to hide timepicker from top naav

* get selected refresh unit

* use EuiSuperUpdate button

* Fix responsive sizing of datepicker (#29)

* set isDisabled on EuiSuperUpdateButton

* review feedback

* remove ts-ignore comment from defaultProps, fix query_bar snapshot

* make new props optional

* fighting with ts linter

* do not include dateRangeFrom and dateRangeTo in isDirty when shoDateRange is not true

* pull initial query from UI settings
2019-01-30 17:02:42 -07:00
Tim Roes
434747b37c
Allow select settings to specify labels for their values (#29584) 2019-01-30 23:24:46 +01:00
Matt Bargar
45b24afe83
Revert "Migrate filter bar to React, EUI, and Typescript (#25563)" (#29662)
This reverts commit 410c094547.
2019-01-30 17:00:42 -05:00
Chris Davies
425dc84058
Make Canvas expressions use socket.io polling only (#29647)
This gets Canvas expressions to behave consistently across environments, and is the first step in migrating expressions to a different transport layer.
2019-01-30 16:07:28 -05:00
Mike Côté
1b0f595f01
Add new "references" attribute to saved objects for relationships (#28199)
* Add new references attribute to saved objects

* Add dual support for dashboard export API

* Use new relationships API supporting legacy relationships extraction

* Code cleanup

* Fix style and CI error

* Add missing spaces test for findRelationships

* Convert collect_references_deep to typescript

* Add missing trailing commas

* Fix broken test by making saved object API consistently return references

* Fix broken api integration tests

* Add comment about the two TS types for saved object

* Only return title from the attributes returned in findRelationships

* Fix broken test

* Add missing security tests

* Drop filterTypes support

* Implement references to search, dashboard, visualization, graph

* Add index pattern migration to dashboards

* Add references mapping to dashboard mppings.json

* Remove findRelationships from repository and into it's own function / file

* Apply PR feedback pt1

* Fix some failing tests

* Remove error throwing in migrations

* Add references to edit saved object screen

* Pass types to findRelationships

* [ftr] restore snapshots from master, rely on migrations to add references

* [security] remove `find_relationships` action

* remove data set modifications

* [security/savedObjectsClient] remove _getAuthorizedTypes method

* fix security & spaces tests to consider references and migrationVersion

* Add space id prefixes to es_archiver/saved_objects/spaces/data.json

* Rename referenced attributes to have a suffix of RefName

* Fix length check in scenario references doesn't exist

* Add test for inject references to not be called when references array is empty or missing

* some code cleanup

* Make migrations run on machine learning data files, fix rollup filterPath for savedSearchRefName

* fix broken test

* Fix collector.js to include references in elasticsearch response

* code cleanup pt2

* add some more tests

* fix broken tests

* updated documentation on referencedBy option for saved object client find function

* Move visualization migrations into kibana plugin

* Update docs with better description on references

* Apply PR feedback

* Fix merge

* fix tests I broke adressing PR feedback

* PR feedback pt2
2019-01-30 15:53:03 -05:00
Matt Bargar
410c094547
Migrate filter bar to React, EUI, and Typescript (#25563)
Rewrites the filter bar in React, EUI, and Typescript. Updates the look and feel of the filter bar and makes it consistent with the rest of K7.
2019-01-30 15:48:31 -05:00
Marco Vettorello
ee32e89324
Enable KQL support for TSVB (#26006)
* Use buildEsQuery for table, series and annotations

* Fix query test.

Using the buildEsQuery changed a bit the order of the must.bool array on the query

* Remove console.log

* Remove console.error and comment

* Fix wrong merge of PR #26510

* Fix default/empty index_pattern

When the user save the visualization without configuring
manually an index_pattern, a default empty string is used
instead of the default pattern. This leads to an empty
visualization after the refactoring done in #24832.
Now it will update the index_pattern field with the default
index pattern in visualize editor and on dashboard.

* Remove unnecessary wrapping query in an array

* Enable query bar on tsvb

* Remove unnecessary setDefaultIndexPattern

After fixing the null index pattern issue in kql
there is no need to use set the default index pattern
before rendering.

* fix(tsvb-server): Ignore query bar search on ignore_global_filters param

This commit mimic the behaviour of the ignore_global_filters currently used with lucene syntax:
if you enable the ignore_global_filter option on data or on annotations, data or annotations
are filtered out when using the filter bar and the search bar

* Disable showQueryBar
2019-01-30 21:42:43 +01:00
Chris Roberson
c443fee919
[Monitoring] Refactor index patterns from configurable to constants (#29528)
* Move away from index patterns as configs and move them into constants

* Refactor more usages of the index patterns

* Remove debug

* Update comment

* Fix mocha tests

* PR feedback
2019-01-30 15:21:06 -05:00
Catherine Liu
cc0e2d0d7d
Removed file_upload component (#29007)
Moved filepicker style to main.scss. Removed workpad_upload component

    Added filepicker to asset manager

    Removed check for assets in workpad header to always show asset manager button

    Deduped image uploads in asset manager. Added loading indicator to asset manager

    Added empty prompt to display when there are no assets

    Adds additional image upload type checking

    Updated verbiage

    Undid CSS changes to  workpad_loader filepicker
2019-01-30 13:05:06 -07:00