Commit graph

1889 commits

Author SHA1 Message Date
Chris Cowan
fe9748583e
[Infra UI] ECS Migration (#28205) (#29965)
* 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 10:31:54 -07:00
Aaron Caldwell
d8efde6907
[Maps] Add zoom in/out map controls (#29862) (#29959)
* Add zoom in/out map controls

* Line up parens
2019-02-04 09:26:56 -07:00
Marco Vettorello
d6de5434f0
Decoupling UI Settings from buildEsQuery (#25994) (#29849)
* Decuple the UI setting config from kbn-es-query package

* Remove BuildESQueryProvider on ml utils
2019-02-04 16:15:25 +01:00
Sonja Krause-Harder
d98a1ebd39
[Infra UI] Always pass index patterns as strings. (#29927) (#29952)
* Always pass index patterns as strings.

* Abide by prettier rules.
2019-02-04 15:59:51 +01:00
Nathan Reese
61fb83a1fb
[Maps] Add layer - provide message when EMS is unavailable (#29909) (#29924)
* [Maps] provide message when EMS is unavailable

* small fixes
2019-02-04 07:46:44 -07:00
Nathan Reese
d730a31a0e
[Maps] provide better error message when vector shapes can not be fetched (#29888) (#29925) 2019-02-04 07:46:28 -07:00
Nathan Reese
9238b61bcd
[Maps] make getStore syncrouns (#29895) (#29923) 2019-02-04 07:45:40 -07:00
Walter Rafelsberger
4fe76588e1
[6.x] [ML] adds telemetry to ML (#29121) (#29939)
Adds telemetry to collect the amount of indices created using File Data Visualizer.
2019-02-04 14:45:13 +01:00
Aleh Zasypkin
e7c5c0bf3d
[6.x] Introduce I18nService core service and I18nContext. (#29944) 2019-02-04 14:39:45 +01:00
Felix Stürmer
789df7ca7a
[Infra UI] Add a source settings ui (#26786) (#29936)
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 14:19:09 +01:00
Sébastien Loix
7c64159041
[Watcher] Add missing Action types on client (#29818) (#29941)
* Add missing Webhook action on client

Fixes #29787
2019-02-04 14:13:45 +01:00
Sébastien Loix
49706cb980
[CCR] Put back API integration tests for cross-cluster replication (#29494) (#29932) 2019-02-04 13:09:37 +01:00
Kerry Gallagher
74d83d5e6f
[Infra UI] Handle no metrics data gracefully (#29424) (#29931)
* 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 11:32:37 +00:00
Josh Dover
e433e80837
Make ReindexWorker resilient to ES connection issues (#29908) (#29912) 2019-02-02 14:08:32 -06:00
Josh Dover
97037e3b39
Add UI for deleting old .tasks index (#29774)
* Add `command` url param to Console

* Add UI for delete index flyout

* Add backend for deleting .tasks index

* add upgrade assistant sidenav (#28124)

* Fix types

* Fix console test
2019-02-02 14:08:00 -06:00
Nathan Reese
b16e2065cf
[6.x] [Maps] better error handling when layer configs can not be found (#29534) (#29907)
* [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

* handle PageObjects rename gis to maps

* add doc field to svaed object json for 6.7
2019-02-02 11:38:33 -07:00
Nathan Reese
daf29ec271
[Maps] Full screen (#29751) (#29910)
* [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 10:18:38 -07:00
Thomas Neirynck
111815070f
[Maps] Rename gis variable names to maps (#29867) (#29870) 2019-02-01 17:49:35 -05:00
Nathan Reese
1578585131
set recenlty accessed when /map/:id route is accessed (#29861) (#29871) 2019-02-01 15:40:00 -07:00
Chris Cowan
a854514649
Fixing #29778 - Disable add button when field select is empty (#29779) (#29852) 2019-02-01 15:01:12 -07:00
dave.snider@gmail.com
d41dbccdb3
Dark mode for kql bar (#29684) (#29850)
KQL bar now works in dark mode.
2019-02-01 11:27:52 -08:00
Justin Kambic
9ed6364ad4
Uptime unit tests6.x (#29280)
* 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.

* Add unit tests for ping list and snapshot components.

* Add additional unit tests.

* Remove unused variable.
2019-02-01 14:27:38 -05:00
Robert Monfera
737cd36e66
[Canvas] Perf: save workbook assets separately from lighter weight structures (#29594) (#29855)
* Perf: save workbook assets separately from lighter weight structures

* Chore: simplification
2019-02-01 20:21:54 +01:00
Thomas Neirynck
b020bd596a
[Maps] Remove usage of gis from user-facing api (#29800) (#29851)
This also renames the gis-folders to maps for consistency.
2019-02-01 13:39:29 -05:00
Justin Kambic
8619b01386
[Uptime] Allow filter dropdown search for id, remove client-side size limits (#29557) (#29844)
* Fix filter bug for IDs, remove limits.

* Add name, URL as searchable fields.

* Update outdated API test fixture.
2019-02-01 12:52:56 -05:00
James Gowdy
8c6adf694a
[ML] Adding ui-select imports (#29823) (#29832)
* [ML] Adding ui-select imports

* using variable in scss
2019-02-01 17:15:41 +00:00
Robert Monfera
a424419517 [6.x] fix: add datetime as a date identifier (#29537) (#29834)
Backports the following commits to 6.x:
 - fix: add datetime as a date identifier  (#29537)
2019-02-01 10:13:09 -07:00
Thomas Neirynck
1eeace01fa
[Maps] Language improvements (#29473) (#29837) 2019-02-01 11:31:18 -05:00
Nathan Reese
a9fb56691f
[Maps] Fix new map showing no layers (#29799) (#29830)
* [Maps] Fix new map showing no layers

* return async to function signature
2019-02-01 08:35:14 -07:00
Nathan Reese
dbdac8a428
[Maps] Apply tile styles before waiting for _tileLoadErrorTracker timer to expire (#29798) (#29801)
* [Maps] avoid re-loading tiles after

* set starting min and max to values provided from descriptor
2019-02-01 06:44:11 -07:00
Kerry Gallagher
9295e8f158
[InfraUI] Add Discuss feedback links to Infrastructure and Logs (#29519) (#29613)
* Add header_feedback_link component

* Replace beta -> feedback link in Waffle Map

* Replace beta badge -> feedback link in logs
2019-02-01 10:55:25 +00:00
dave.snider@gmail.com
42336883d4
[6.x] Management design sidenav cleanup (#28222) (#29766)
* Management design sidenav cleanup (#28222)

Adjustments so nav menu works better with large screens.

* fix errors
2019-01-31 22:07:11 -08:00
Nathan Reese
141a514ceb
[Maps] clean-up console errors (#29772) (#29794) 2019-01-31 19:11:11 -07:00
Aaron Caldwell
1765077dff
SetMBPaintProperties needs layerId key (#29771) (#29777) 2019-01-31 17:27:45 -07:00
Matt Apperson
2d067fb8b3
[BeatsCM] Allow CM to scale better (#27717) (#29602)
* 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

* fix memory adapter for configs

* add missing index template field.

* fix issue of empty array in ES

* fix typings

* fix tag not showing up when assigning sometimes

* cleanup

* fix assignment options not always listing avaliable tags. Tag removal now works. Now warns when tag is assigned to beat. Removing a tag removes config blocks on that tag

* fix search bars

* add “other field”

* remove dumb conditional

* use previous ID on configs when updating configs

* deleting tags with config blocks works

* reload beats list after removing a beat

* fix param order for DB adapter

* fix types

* persist config in UI when creating new config blocks on new tags

* Fixed issue with YAML parsing, error editing an output config, and cleaned up a little

* added/enhanced test
2019-01-31 17:26:35 -05:00
James Gowdy
9cb90612fe
[ML] Displaying recognizer saved objects errors (#29734) (#29742) 2019-01-31 20:34:19 +00:00
Matthew Kime
ad92f4b451
[6.x] Management: EUI Navigation sidebar (#25905) (#29490)
* Management: EUI Navigation sidebar (#25905)

* partial work - sidebar works, need to address rendering issues

* rendering fixes

* refactor sidenav into its own file

* refactor sidenav into its own file

* remove unneeded changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove more unneeded EuiPage

* remove more unneeded EuiPage

* snap snap

* remove unused dependencies

* functional tests

* sidebar tweaks, beats-cm

* lint

* properly sharing UI code

* fix eui export

* type fixes

* add test

* add test

* testy test

* partial progress

* attmpt to fix functional test

* from merge

* snap snap

* clean up management for side nav changes

* functional test fix

* snap, blank landing

* snap snap

* change management item order

* test fix

* disable tslint line

* ts fix

* functional test fix

* functional test fixes

* fix functional test

* minor cleanup

* simplify management registry callback

* remove comment

* react island with kibana version

* merge

* fix scss reference

* fix types

* remove mistaken commit

* remove k7 switch

* snapshot update

* fix sidebar nav headers

* landing page copy

* remove dummy text

* merge

* i18n and revert unneeded change

* Update edit_role_page.tsx

* i18n

* i18n

* snap snap

* better text

* snap snap

* mergi

* pop open nav on mobile

* add management section tests

* NOTICE

* fix subhead text, add padding to bottom of management nav

* Update sidebar_nav.tsx

* merge merge

* fix sass lint

* .

* snap snap

* snap snap
2019-01-31 14:31:18 -06:00
Thomas Neirynck
7925589df9
[Maps] Do not wait for meta call to complete for bootstrapping the app (#29514) (#29740) 2019-01-31 15:28:04 -05:00
Tim Sullivan
df19d7e80d
Telemetry for Visualizations by type (#28793) (#29625)
* task runner and usage collector for visualizations by type

* type is always just "visualization"

* drop the I- prefix for interfaces

* bug fixes

* ts fix

* comment perfection

* just usage.

* const for task numworkers

* use mapValues

* get next midnight module

* move to oss_telemtry

* test fix

* errMessage.includes(NotInitialized)
2019-01-31 10:53:20 -07:00
Chris Cowan
33e6b48e41
[Infra UI] Table View for Home Page (#29192) (#29739)
* 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 10:44:22 -07:00
Aaron Caldwell
6ae764dbf9
[Maps] If tilemap source already exists, just sync style (#29620) (#29727)
* If source already exists, just sync tilemap style

* Review feedback
2019-01-31 10:21:00 -07:00
Chris Cowan
bb7a67af24
[Log UI] Flyout for Log Events (#28885) (#29729)
* 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 09:39:28 -07:00
Oliver Gupte
f646466664
[APM] fixes infinite recursion for multiple waterfall item references (#29659) (#29683) (#29690)
* [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 07:14:41 -08:00
James Gowdy
f4a7b5d20a
[ML] Fixing data recognizer panel refresh on new job page (#29701) (#29715) 2019-01-31 14:55:14 +00:00
Bill McConaghy
b427d6ce00
making badges clickable to filter in index management (#29635) (#29679)
* making badges clickable to filter in index management

* improving a11y for clickable badge
2019-01-31 08:29:11 -05:00
Pete Harverson
fdbc992a07
[ML] Add anomaly marker to charts when gap exists in data (#29628) (#29703)
* [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 13:02:38 +00:00
Walter Rafelsberger
a71cfb3787
[ML] Fixes caching/memoizing Anomaly Explorer data calls related to changed time ranges. (#29579) (#29588)
Fixes caching/memoizing Anomaly Explorer data calls related to changed time ranges.
2019-01-31 11:55:43 +01:00
Nathan Reese
b04c882a92
merge with master (#29680) 2019-01-30 20:37:18 -07:00
Chris Cowan
dc54aca2b4
[Infra UI] Custom Field Grouping for Waffle Map (#28949) (#29636)
* [Infra UI] Add Support for Grouping By Custom Field

* fixiing typescript errors

* Serializing custom options to url so they persist accross reloads

* Fixing more errors

* removing label; moving custom field to top of menu

* fixing typescript error

* Adding intl formatMessage to strings
2019-01-30 14:14:28 -07:00
Catherine Liu
5323a57fb5
Removed file_upload component (#29007) (#29654)
[6.x] Feat: Bulk Upload Assets (#29007)
2019-01-30 13:54:19 -07:00