Commit graph

2065 commits

Author SHA1 Message Date
Oliver Gupte
dee4da7ec3
[APM] Add span subtype and action to Span Flyout (#30041) (#30415)
* [APM] closes #26247 by conditionally adding span subtype and action to the flyout if available

* renamed vars for better readability and tossed out the formatting on span action

* [APM] renamed some variables for clarity
2019-02-07 22:24:17 -08:00
Nathan Reese
cff3ecc3f7
[Maps] upgrade mapboxgl to 0.52.0 (#30431) (#30463) 2019-02-07 20:57:54 -07:00
Thomas Neirynck
75e69285c2
[Maps] Fix tileload error messaging / Fix heatmap error message (#30327) (#30443) 2019-02-07 19:02:02 -05:00
Nathan Reese
b797f83b4f
[Maps] do not show joins UI for ES geo grid source (#30309) (#30375) 2019-02-07 15:15:53 -07:00
Josh Dover
f629dd2c37
[upgrade] Handle APM being disabled, fixes #30301 (#30308) (#30408) 2019-02-07 14:55:21 -06:00
James Gowdy
773f631951
[ML] Fixing position of job management search bar error (#30251) (#30360)
* [ML] Style tweaks for job management in K7

* adjusting search bar error

* removing custom title style for EuiTitle
2019-02-07 19:57:08 +00:00
Tim Roes
c983516758
Typings for saved object client (#29951) (#30367)
* WIP typings for saved object client

* Move more files to TS

* type saved objects client

* clean up typings for saved object client

* tie typings form server and client for saved objects together

* add missing html import typing to x-pack

* Add missing buildSourcePatterns

* Removed accidental comma

* add typings for saved_object_client tests and fix test cases

* duplicate case_conversion helpers for the moment

* Address PR review

* Fix some documentation

* Replace ts-ignore by any imports

* Remove expect.js from test

* Add more typings to prevent CI failure
2019-02-07 18:18:18 +01:00
Nathan Reese
dd4031a2a4
remove left-over geohash grid code (#30312) (#30373) 2019-02-07 07:50:42 -07:00
Pete Harverson
fc7a0c4417
[ML] Fixes bucket spans and detector descriptions in ECS auditbeat modules (#30362) (#30379) 2019-02-07 14:26:31 +00:00
Jason Rhodes
1087d8b473
Adds processor filter to ML query (#30284) (#30370) 2019-02-07 08:20:51 -05:00
Tim Sullivan
dcd0179ad1
[Task Manager] Provide "include_type_name: true" in put template (#30261) (#30303)
* [Task Manager] Provide "include_type_name: true" in put template

* fix for 7.0+
2019-02-06 21:08:05 -07:00
Matt Bargar
e885b6cc26
Makes KQL the default query language for new searches (#27092) (#30329)
Changes the default query language to KQL in all apps that respect the `search:queryLanguage` advanced setting.
2019-02-06 19:12:26 -05:00
Spencer
2ff8dfeb84
[yarn] upgrade elasticsearch-js (#30297) 2019-02-06 16:00:23 -06:00
James Gowdy
7eb8d24442
[ML] Fixing the hiding of the timepicker on the settings and data visualizer landing page (#30200) (#30306)
* [ML] Fixing the hiding of the timepicker on the settings page

* disabling timefilter on file data visualizer pages

* removing comment
2019-02-06 21:54:05 +00:00
Tim Sullivan
096dec4ce8
Fix date formatting on server for CSV export (#29977) (#30264)
* Fix date formatting on server for CSV export

* remove stray console.log

* allow async to act in parallel

* Log a warning when "Browser" is the timezone
2019-02-06 12:52:12 -07:00
Jason Rhodes
1b5e83902d
[APM] Updates head title and fixes breadcrumb string issues (#29960) (#30270)
* Solves several breadcrumb string/object problems, adds title to page

* Updates breadcrumb tests and adds title tests

* Removes switch logic from route config in favor of a single switch around all routes

* Adding draft version of withBreadcrumbs HOC with TS errors

* ProvideBreadcrumbs implemented

* Adds tests to provide breadcrumb logic

* Fixed up generics and tests
2019-02-06 13:22:27 -05:00
Chris Roberson
7c376e95eb
[Monitoring] Restore mappings.json (#30153)
* Restore mappings json and update the incorrectly updated json test files

* Fix up these after merging in master
2019-02-06 09:07:59 -05:00
Walter Rafelsberger
3d4dc093f3
[ML] Adds jest tests for annotation_service. (#30193)
This adds tests to `server/models/annotation_service`. The tests include a check if the `.key` attribute of an annotation is properly removed from an annotation before indexing it.
2019-02-06 14:43:04 +01:00
Justin Kambic
5e39f92682
Add code to format the timeseries data to local time. (#30160) 2019-02-06 06:54:58 -05:00
Walter Rafelsberger
0942332b0a
[ML] Remove key attribute from annotation before indexing. (#30183)
The UI adds a `key` attribute to annotation objects to store the letter used for labels in the chart and tables. When editing and saving an annotation that `key` could end up being saved to the annotations index. This isn't necesseary since the `key` attribute is just a dynamic label used within the UI. This fixes it by deleting an eventual `key` attribute from the annotations object before saving it to the index.
2019-02-06 11:23:29 +01:00
Felix Stürmer
d64648641b
[Infra UI] Patch the log sample dataset to be compatible with default log sources (#30060)
This adds a `@timestamp` alias to the mapping of the builtin log sample dataset to make it compatible with other log indices. It also adds the index pattern `kibana_sample_data_logs*` to the default `logAlias` setting in order for the sample data to show up in a default setup.

fixes elastic/kibana#29450
2019-02-06 10:51:03 +01:00
Tyler Smalley
c16849dc3b
Support for reindexing APM indices (#29845)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-02-05 19:47:48 -08:00
Nathan Reese
6ad036b187
Replace angular timepicker with EuiSuperDatePicker (#29204)
* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* 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

* update setAbsoluteRange for EuiSuperDatePicker

* replace setQuickTime with calls to setAbsoluteTime

* remove open time picker button in discover empty results view

* pass config values to super-date-picker directive

* remove getPrettyDuration

* clean up typescript lint problems

* some functional test fixes

* try something else to fix I18n problems

* fix some more functional tests

* update query_bar jest test

* remove unused method in kbn_global_timepicker

* do not import removed timepicker styles

* remove mode from time state

* remove mode from time_history interface

* fix problem with ui_settings_defaults

* fix failing TSVB functional test

* another round to test fixes

* more functional test changes

* fixes for failing tests

* add retry block to flaky tsvb test

* styles/bootstrap_dark.less

* fix functional tests

* call fetch event even when times are the same

* add retry around flaky tsvb test

* fix timefilter jest test, attempt to fix another flaky functional test

* revert emitting fetch outside of areTimePickerValsDifferent check

* clean up time mode code that is no longer needed in dashboard

* fix timefilter tests changed by timefilter emit revert
2019-02-05 20:45:31 -07:00
Andrew Cholakian
ebe69ee4e5
[Uptime] Filter bar for type should actually be for scheme (#29854)
Functionally it already filters by scheme, but the label is misleading. The distinction is a particular issue when comparing the filter to the `type` column on the monitor list. Type indicates the monitor type, whereas scheme indicates the URL type. So, items with the `https` scheme have the `http` type because that's the name of the monitor.
2019-02-05 21:31:48 -06:00
Justin Kambic
31a0f81e3b
Migrate from i18n context to provider. (#30124) 2019-02-05 22:19:55 -05:00
Nathan Reese
eb59088bd8
[Maps] Clear missing style props on source change and join change (#30112)
* [Maps] clear missing style properyties

* add tests

* review feedback
2019-02-05 20:08:25 -07:00
Nick Peihl
95638a2000
Fix topojson featurecollection path (#30173) 2019-02-05 18:52:04 -08:00
Tyler Smalley
c20bb3a0d4
Reindexing prepends to index name instead of appending (#30114) (#30166)
Similar to what is done in the Index Lifecycle Management, we prepend as to
avoid possible issues with conflicts in index patterns, templates, etc.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-02-05 18:48:54 -08:00
Caroline Horn
f8c7320277
EUI 6.10.0 & Background color fixes (#30136)
* First foray into turning .application background off

* Hopefully fixing the last few plugins

* Update EUI to 6.9.0

* removing hacks

* last fixes

* Remove a few more `100vh`

* Can I remember to copy & REPLACE

* EUI at 6.10.0
2019-02-05 21:29:30 -05:00
Aaron Caldwell
b84a65d415
[Maps] Set maps tab title using same pattern used elsewhere in Kibana (#29976)
* Set maps tab title using same pattern used elsewhere in Kibana

* Include current map title in document title when open

* Only update doc title on /map/:id route. Update doc title on save action

* Remove fluffy formatting

* Remove string literal formatting
2019-02-05 18:01:40 -07:00
CJ Cenizal
3f61ac67cf
Order Elasticsearch Management apps in order of most used to least used. (#30145) 2019-02-05 16:24:34 -08:00
Tim Sullivan
7bec93f1b9
[Task Manager] Ensure putTemplate will only create/update the index template (#28540)
* get template version

* ensure putTemplate only creates/updates the template

* fix tests

* new test for throwing error re old template

* note comment

* clean up test

* test clarification

* store kibana metadata in scheduled task doc

* map `dynamic: false`

* logging

* add kibana uuid

* fix tests

* last todo

* fetching available task uses apiVersion in the query

* scheduledAt

* ts fix

* ts fix

* fix snapshot

* await to fail test if snapshot does not match

* fix bad merge

* remove _.get

* fix typeError happening in tests
2019-02-05 16:55:16 -07:00
CJ Cenizal
d2e2be0e78
Disable flaky follower indices API integration tests. (#30157) 2019-02-05 15:29:53 -08:00
Bill McConaghy
b71144074a
fixing React warning about missing prop (#30147)
* fixing React warning about missing prop

* removing redundant aria-label
2019-02-05 18:14:40 -05:00
CJ Cenizal
2f92df5ee3
Add configPrefix to Index Management, License Management, Rollup Jobs, and Upgrade Assistant. (#30149) 2019-02-05 15:00:18 -08:00
Nick Peihl
92ae5baadd
Use Elastic Maps Service v7.0 (#30006)
* Use Elastic Maps Service v7.0
2019-02-05 14:26:28 -08:00
Jen Huang
30989fbca7
[CCR] Follower index CRUD (#27936)
* [CCR] Refactor redux for Auto-follow pattern detail panel (#27491)

* [CCR] Refactor redux for Auto-follow pattern detail panel

* [CCR] Small refactor

* [CCR] Change to present tense

* [CCR] Display auto-follow pattern name even if it does not exist

* [CCR] Use href to edit auto-follow pattern + remove middelware to update "pattern" query params

* [CCR] Fix navigation back bug + set 2 ids for detail and edit an auto-follow pattern

* [CCR] Replace api middleware with redux-thunk action

* [CCR] Show detail footer close button even when cluster is not valid

* [CCR] Add endpoints for fetching and creating follower indices (#27646)

* Add GET /follower_indices endpoint with deserialization logic and tests.

* Add POST /follower_indices endpoint with serialization logic and tests.

* [CCR]  Add unit tests for RemoteClusterForm, RemoteClusterList, and RemoteClusterTable (#27647)

* Use componentDidUpdate instead of getDerivedStateFromProps.

* Add unit tests for RemoteClusterForm, RemoteClusterList, and RemoteClusterTable.

* Add jest mock for eui `makeId()` utility and get deterministic aria IDs for snapshots

* Update snapshot for Remote Cluster list test

* [CCR] Follower indices table and detail panel (#27804)

* Store for follower indices

* Initial work for follower indices table and detail panel

* Fix load auto-follow stats load as middleware was removed

* [CCR] Create follower index UI form (#27864)

* Initial setup Follower Index form

* Working form without client validation

* Add client side validation for follower index

* Add client validation to check if index already exist

* Improve error message when leader index does not exist

* Remove update method for follower index

* Clear api error on field change

* Fix i18n error

* Update snapshots

* [CCR] Add pause, resume, and unfollow actions for follower indices (#28305)

* Add pause and resume follower index routes

* Add unfollow route

* Add api methods for new routes

* Adjust routes to have bulk capabilities, add corresponding actions

* Refresh list after pausing/resuming, remove items after unfollowing

* First pass at UI for pause and unfollow (and resume, but that is not visible due to ES stats response)

* Handle additional conditions needed for unfollowing leader index, add placeholder code to deduce paused status

* PR feedback

* [CCR] Advanced settings UI for follower indices (#28267)

* Add client side validation of advanced settings form
* Move form entry row to separate component
* Add server side serialization for advanced settings
* Ignore advanced settings input when that section is hidden.
  - Cache and restore input when the section is shown again.

* [CCR] Show remote cluster validation in CCR forms, and add edit follower index (#28778)

* [CCR] Advanced settings component

* Remove preview active on toggle settings

* Add client side validation of advanced settings form

* Move form entry row to separate component

* Add title to panel

* Add i18n translation of advanced settings

* Update Follower index form with toggle for advanced settings

* Add server side serialisation for advanced settings

* Make code review changes

* Fix test: mock constant dependency

* Add section to edit follower index

* Show confirm modal before updating follower index

* Add edit icon in table + update server endpoint to pause / resume

* [CCR] Show remote cluster validation in follower index form & auto-follow pattern form

* PR feedback, cleanup form sizes, add redirect to edit remote cluster

* Fix routing, remove unused code, adjust auto follow pattern edit loading error page

* Adjust error messages and make remote cluster not found edit page the same

* Fix functionality as result of merge

* Fix validation, reorder actions, fix tests, and address feedback

* PR feedback and fix validation pt 2

* Adjust remote cluster validation

* Fix i18n

* Fix api error not showing on add follower form

* [CCR]  Integrate new follower index info ES API (#29153)

* Integrate new follower index info ES API

* Collate data from follower stats and info apis when retrieving all followers and single follower
* Add follower settings info to detail panel
* Add paused/active UI state
* Surface follower default settings to UI

* Adjust tests

* Address PR feedback

* Update snapshots

* [CCR] Surface license errors in-app and refine permissions error UI. (#29228)

* Fix camelcasing bug in XPackInfo.
* Silently swallow API error when checking for index name availability.
* Fix typo in followerIndexForm fatal error.
* Add permissions check before allowing user to access the app.

* Refine wording of CCR permission denied page, to specify cluster privileges. (#29533)

* [CCR] Improve form error handling and general UX (#29419)

* Remove unnecessary eslint disable-line

* [CCR] Implement Advanced Settings design feedback (#29543)

* Use EuiSwitch to toggle advanced settings in Create Follower Index form.
* Move 'optional' from each Advanced Setting field to the section heading.
* Change Advanced Settings switch label and description to emphasize that you can customize them or use the defaults.
* Prepopulate Advanced Settings fields with default values.
* When editing a follower index, check if advanced settings have been edited and open them if so.
* Add 'Reset to default' button below advanced settings fields if their values are different than the default.
* Remove 'Default' copy from Advanced Settings descriptions.
* Simplify toggleAdvancedSettings function, add comments, and fix React console error.

* [CCR] Follower index list fixes from design feedback (#29484)

* Delete remote cluster settings before updating

* Fix detail panel z-index

* Remove default descriptor from follower index detail panel setting values

* Follower index confirm action copy adjustments

* Change z-index styling to use EUI vars

* [CCR] Improve remote clusters test coverage (#29487)

* Add Jest test for RemoteClusterForm validation state.
* Extract validation functions out of RemoteClusterForm and add unit tests.
  - Return null instead of undefined from validators.
* Add unit tests for different types of remote clusters in RemoteClusterTable.
* Add unit test for RemoteClusterList empty prompt.
* Add tests verifying behavior for row link, row delete button, and detail panel delete button.
  - Use getRouterLinkProps to assign onClick and href to edit buttons in row and detail panel.

* [CCR] Adjust spacing around descriptions in list views, link to transport port docs, etc (#29789)

* Adjust spacing around description around descriptions in list views so that it's even on top and bottom.
* Add link to transport port docs from Remote Cluster form.
* Move 'View in Index Management' link from the detail panel body into the footer.

* Re-order follower index form sections: remote cluster, leader index, follower index. (#29885)

* Fix deep-linking to follower index after creating/updating it. (#29865)

* [CCR] Copy edits (#29676)

* Use 'Resume/pause data replication' in context menu and row actions.
* Update copy of 'Update' confirm modal for a paused follower index.
* Update copy of 'Update' confirm modal for an active follower index.
* Update copy of 'Pause data replication' confirm modal.
* Update copy of 'Resume data replication' confirm modal.
* Update copy for permissions check.
* Update copy of table empty state.
* Update copy around tables.
* Update form copy.
* Update copy for RemoteClustersFormField callouts.
* Convert 'data replication' -> 'replication'.
* Update copy for Unfollow confirm modal.
* Update copy for form API error and Auto-follow Patterns table.
* Update form save button labels to be 'Create' and 'Update'.
* Move API errors to bottom of form, into same position as sync validation errors. Remove spacer from SectionError implementation.

* [CCR] Open index after unfollowing leader (#29887)

* Open index after unfollowing leader, fix some variable names

* Fix typo

* Add comment

* [CCR] IE and Screen reader accesibility (#29731)

* Fix api endpoit for auto-follow stats

* Prevent letter wrapping in IE for the Remote cluster "connection" table column

* Move inline style to CSS class to fix IE flex bug

* [CCR] Add callout to paused follower index detail panel (#30013)

* Add callout to paused follower index detail panel

* Update copy

* Skip call to ccr stats api if follower index is paused (#30027)

* [CCR] Add integration tests for follower indices (#30064)

* [CCR] Add integration tests for follower indices

* Import advanced settings value from app constants
2019-02-05 14:01:17 -08:00
Andrew Cholakian
486a5d3654
[Uptime] Improve perf / accuracy of overview queries (#29998)
Improves the accuracy and perf of the up/down/total counts
Sets the correct size of 50 for the monitor list. The widget shows 50 entries.
2019-02-05 15:48:55 -06:00
Justin Kambic
529162a044
[Uptime] Responsive snapshot histogram chart (#29649)
* Resize snapshot histogram chart.

* Update busted tests.
2019-02-05 16:47:00 -05:00
Aleh Zasypkin
b61f87f559
Introduce x-pack/translations plugin. (#30115) 2019-02-05 22:31:28 +01:00
Jen Huang
f44dea576c
Enable orderBy and orderAgg in vis editor for rollup visualizations (#29894) 2019-02-05 13:28:38 -08:00
Thomas Neirynck
e961137f8c
[Maps] fix adding kibana tilemap layers (#30094) 2019-02-05 16:08:50 -05:00
Larry Gregory
eca712589d
Support allow_restricted_indices on PUT role api (#30077)
* Support allow_restricted_indices on PUT role api

* update PUT role API test
2019-02-05 15:57:34 -05:00
Tim Sullivan
ef0fba1bd2
[Reporting] Copy Post URL: track layoutID in state (#30029)
* [Reporting] Post URL: track layoutID in state

* I think this code was not supposed to be here

* ts fix

* revert some diff

* Revert "I think this code was not supposed to be here"

This reverts commit b2e5f60afb.

* static getAbsoluteReportGenerationUrl

* ts fix
2019-02-05 13:48:44 -07:00
Bill McConaghy
e36da1bc5a
improving a11y for activating phases (#30101) 2019-02-05 15:43:43 -05:00
Tim Sullivan
5fea0c72c7
[OSS-Telemetry] Make the plugin have the right config prefix (#30005) 2019-02-05 13:33:48 -07:00
Justin Kambic
dcc96365b7
Re-add missing loading states for filter bar and snapshot components. (#30122) 2019-02-05 15:20:29 -05:00
Walter Rafelsberger
3db812b08e
[ML] User Annotations V2 (#29448)
- Fixes a bug where it's not possible to start dragging to create an annotation over a chart tick element.
- Adds an option to edit annotations via the annotations table.
2019-02-05 21:03:44 +01:00
Felix Stürmer
fd061abd4a
[Infra UI] Adapt settings ui to saved object version type change (#30082) 2019-02-05 20:30:31 +01:00
Chris Cowan
4cb86aa5bd
Fixes #30104 - Add check to make sure popover needs to be closed (#30105) 2019-02-05 12:28:03 -07:00