Commit graph

2287 commits

Author SHA1 Message Date
Søren Louv-Jansen
93549e6b60
[APM] Shim new platform (#34531) 2019-04-10 14:41:20 +02:00
Alexey Antonov
3099837678
[TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown (#34165)
* [TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown

Fix: #34047

* TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown - fix broken tests

* [TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown

* [TSVB] [Rollup support] exclude unsupported metrics from the Metric Aggregations dropdown - add filtering for group by

* fix tests

* Fix issue with fetching fields
2019-04-10 13:29:23 +03:00
Søren Louv-Jansen
aff8c69deb
[APM] Link to APM Server setup in APM Getting started guide (#34786) 2019-04-10 10:18:44 +02:00
dave.snider@gmail.com
ce6c33a3e4
Upgrade eui@9.9.0 (#34824) 2019-04-09 15:44:02 -07:00
Joel Griffith
8bb2c8b3ab
Set a default timeout for all "waitfor" methods (#34756) 2019-04-09 14:19:40 -07:00
Chris Cowan
4168f3594c
Fixes bug where tooltip doesn't line up with data (#34749) 2019-04-09 14:15:01 -07:00
Corey Robertson
85aac53fee
Fixes 'Can't update during existing transition' warning message (#33880)
* Move files to TS files

* Fixes the React warning message

* Strongly type the actions and the middleware

* Adds tests for in_flight middleware

* Clean up

* Ignore non-ts file
2019-04-09 16:51:52 -04:00
Mike Côté
fcd60ca0d9
Ensure migrations run on saved object import (#34793)
* Ensure migrations run on saved object import

* Fix broken tests

* Fix ESLint errors
2019-04-09 15:18:49 -04:00
Pete Harverson
d259e1f258
[ML] Fixes Single Metric Viewer anomaly markers for long chart aggregation (#34791) 2019-04-09 17:04:42 +01:00
Mike Côté
962722ae8a
Convert saved objects UI to use new import / export API (#33513)
* Initial work converting UI to use new server side APIs

* Remove missed file

* Fix jest tests

* Code cleanup pt1

* Fix file casing

* Fix jest tests

* Modify UI to support including nested references

* Fix button layout

* Connect includeReferencesDeep, remove references_missing_references logic

* Fix broken tests

* Cleanup

* Display success notifications and auto close modals on export

* More code cleanup

* Log to server when user imports using legacy .json file

* Final cleanup

* Update test snapshots to match updated text

* Apply PR feedback pt1

* Remove isLoading and wasImportSuccessful state variables, use single status variable instead

* Move business logic out of flyout component

* Apply PR feedback

* Update wordings
2019-04-09 12:02:54 -04:00
Josh Dover
5e32992a54
[UA] Show different interstital text when cluster is upgraded (#34762) 2019-04-09 09:54:17 -05:00
Kerry Gallagher
a5fb494d84
[InfraUI] Use EuiSuperDatePicker on the Metrics page (#34427)
* Remove custom date picker for Metrics page, replace with EuiSuperDatePicker. Remove redux-observable for metrics-time state, replace with hooks.

Pass through refreshInterval and set it as part of the startMetricsAutoReload action

Refactor metric time controls to use EuiSuperDatePicker

Remove redux / redux-observable usage for MetricsTime, replace with hooks

Add useInterval hook and hook up to auto reloading

Add refresh interval support to the URL

Use more concise syntax

Add small styling

Add tests for metric_time

Add extra test

Add correct typings

Update time range immediately when auto reload is turned on (so we don't wait for the first interval to elapse)

Use stricter typing

Remove custom date range picker

Amend translations after removing custom date range picker

* Amend test for CI sensitivity

* Amend test assertions

* DRY up with useCallback
2019-04-09 12:49:04 +01:00
Sébastien Loix
3bc39bdf77
[CCR] Client tests auto-follow pattern & follower index forms (#34449) 2019-04-09 11:43:04 +02:00
Søren Louv-Jansen
0eff2e15f5
[APM] Set minimum bucket size to connect dots in metric chart (#34473) 2019-04-09 09:33:58 +02:00
Robert Monfera
47e97532ed
[Canvas] Fix: wait for DOM element to exist (#34475)
* Fix: wait for DOM element to exist

* Fix: add the missing retry in the other branch too

* Fix: clear timeout

* Perf: avoid an extra async step

* Chore: remove unused static props and explicitly initialize them via the constructor
2019-04-09 00:35:38 +02:00
igoristic
50fab1aea3
Swapped kui base class with eui equivalent (#34644)
* Swapped kui base class with eui equivalent

* Added the react component instead
2019-04-08 16:51:44 -04:00
Jason Rhodes
cd532cd8f7
Rework link components to be separated by destination (#34630)
* Creates new LocationContext and useLocation hook

* Re-structures Discover links

* Re-structures ML job link, cleans up discover link changes

* Removes unused components and props

* Adds separated APM and Kibana link components

* Adds InfraLink component

* Adds integration link tests for new link components

* Moves unshared getSearchWithCurrentTimeRange into APMLink component where it is used

* Moves persistent APM params out of the generic url helpers util

* Refactoring rison more

* Clarifies interface names for rison

* Removes risonStringify helper

* Changes link components to inline function exports with manually created component type

* Consolidate APM href generation in one place

* Re-ordered imports for linting

* Updates breadcrumb snapshots now that they include default values
2019-04-08 15:47:16 -04:00
Jason Rhodes
c9f65adb1b
Add "Show trace logs" action (#34310)
* Adds trace logs link to action menu

* Updates tests

* Fixes time range values for action menu links

* Relaxes type checking on query param object to allow for outgoing links

* Revert unnecessary rison changes after realizing infra links do not accept rison
2019-04-08 14:24:07 -04:00
Ryan Keairns
f7e66eaf6e
[Canvas] Copy edits from docs review (#34666)
* Copy edits from docs review

* couple more edits

* edits
2019-04-08 12:58:06 -05:00
CJ Cenizal
b0542141c0
Update Delete Remote Cluster API to support multiple comma-delimited clusters. (#34595)
* Handle a 500 error. Add error message to toast notifications.
2019-04-08 10:41:08 -07:00
Thomas Neirynck
f611a1fc5e
[Maps] Clear data load error when layer gets correct data (#34484) 2019-04-08 13:37:24 -04:00
Thomas Neirynck
ae977f8636
[Maps] Add filter actions to tooltips (#33635) 2019-04-08 13:03:56 -04:00
James Gowdy
aa78584adc
[ML] Fix file data visualizer index pattern match (#34721)
* [ML] Fix file data visualizer index pattern match

* also global replace . and +
2019-04-08 16:57:06 +01:00
Felix Stürmer
576283cca9
[Infra + Logs UI] Reactively consume the ui settings (#34615)
Previously, the `theme:darkMode` and `dateFormat` settings were only read once, which made them susceptible to race conditions during initialization. This introduces and uses a new `useKibanaUiSetting` hook to reactively consume the settings.
2019-04-08 15:28:27 +02:00
Pete Harverson
659e4712eb
[ML] Limits maximum annotation text length to 1000 characters (#34540)
* [ML] Limits maximum annotation text length to 1000 characters

* [ML] Fix initialization of annotation errors array

* [ML] Fix typo in annotation flyout comment
2019-04-08 11:54:42 +01:00
Liza Katz
4dd7f1788d
New platform move doc table and doc viewer to kibana\discover (#34231)
* Moved doc table to kibana/discover

* moved doc viewer to Kibana app (used by docs and discover)

* Moved
- saved object finder
- paginated selectable list
from partiasls to directives/partials

* Moved paginate controls directive to directives/partials
2019-04-07 14:13:04 +03:00
CJ Cenizal
48b2478a67
Fix wrapping of Remote Cluster connection status in table. (#34642) 2019-04-05 11:38:42 -07:00
Tiago Costa
3d354a83a2
chore(NA): fix lint rule for canvsas. (#34650) 2019-04-05 18:57:48 +01:00
Oliver Gupte
dda54e4948
[APM] Fixes #33443 by guarding for undefined request types in URL (#33828) 2019-04-05 10:26:12 -07:00
Tiago Costa
ed795d28ee
Migrate from tslint (#33826)
* chore(NA): remove tslint dependencies, configs and enable eslint typescript parser.

* fix(NA): apply recommend eslint typescript rule.s

* chore(NA): upgrade eslint package versions.

* chore(NA): split javascript eslint config in an override section.

* chore(NA): split all eslint configs with overrides.

* chore(NA): remove missing console.log.

* chore(NA): change eslint splits and overrides order.

* chore(NA): replace tslint disable comments with eslint ones.

* chore(NA): solve eslint typescript errors for elastic/kibana-custom/no-default-export

* chore(NA): fixed multiple eslint typescript rule failures.

* chore(NA): add tarfet folder to the eslint ignore.

* chore(NA): apply prettier rule to ts type file.

* chore(NA): remove last mentions to tslint

* chore(NA): add old defined rules

* chore(NA): missing port rules website

* chore(na): ordered rules

* chore(NA): solved eslint typescript problems.

* chore(NA): fix spaced comment problems.

* chore(NA): fix some more eslint typescript rules: import/order no-empty-interface

* chore(NA): fix last rules and comment out what are the ones still failing.

* chore(NA): comment out camelcase rule.

* chore(NA): regenerate kbn pm dist.

* chore(NA): updated snapshots.

* chore(NA): updated snapshots.

* chore(NA): disabled sort-keys rule.

* chore(NA): remove rule prefer-arrow/prefer-arrow-functions.

* chore(NA): fix for @typescript-eslint/no-var-requires rule.

* chore(NA): fixes for @typescript-eslint/camelcase rule.

* chore(NA): fix typo on eslint config kibana typescript.

Co-Authored-By: mistic <tiagoffcc@hotmail.com>

* chore(NA): remove legacy note after the intellij upgrade to 2019.1

* fix(NA): import order plugin.

* chore(NA): fix ts ignore positions after auto fix.

* fix(NA): performance issue with typescript eslint.

* refact(NA): eslint configs organization.

* chore(NA): apply resticted paths to ts files too.

* chore(NA): split comment from eslint ignore.
2019-04-05 17:45:23 +01:00
Pete Harverson
e222fa64e0
[ML] Only update forecasting progress bar if value increases (#34614) 2019-04-05 17:01:16 +01:00
Pete Harverson
bbfe50f39b
[ML] Replace View Forecast button image with Single Metric icon (#34563)
* [ML] Replace View Forecast button image with Single Metric icon

* [ML] Remove table scss overrides and use icon in Explorer view
2019-04-05 16:57:23 +01:00
Clint Andrew Hall
b55a2063e3
[canvas] Type Renderers; Add DropdownFilter examples (#31299)
## Summary

This PR adds types to Renderers and the DropdownFilter.  It also adds snapshots and stories for DropdownFilter.  This change also includes better `recompose` typings.

<img width="1439" alt="screen shot 2019-01-24 at 5 53 57 am" src="https://user-images.githubusercontent.com/297604/51674396-80efbe00-1f9e-11e9-9ad9-d63b1ec51dbd.png">

## Bugs Found and Resolved

- `AdvancedFilter` renderer never successfully passed a selected `filter` value.
- `DropdownFilter` CSS did not constrain the dropdown arrow.  Without a `relative` positioned parent, the arrow would end up in the top-right of the screen.
- `DropdownFilter` had several [shadowed variables](https://palantir.github.io/tslint/rules/no-shadowed-variable/).
- `DropdownFilter` logic has several improvements, including creation of options and order of inclusion
2019-04-05 08:39:09 -05:00
Aleh Zasypkin
bdb289e3b7
Clear session if it belongs to the authentication provider that is not configured. (#34612) 2019-04-05 15:14:29 +02:00
Oliver Gupte
05b842c471
[APM] Addresses #33572 by adding support for new agent 'dotnet' in apm (#34077)
telemetry & documentation links
2019-04-04 22:35:08 -07:00
Nathan Reese
7f7b37aaf9
[Maps] replace jquery_ui_sortable with EUI Drag And Drop (#34553)
* [Maps] replace jquery_ui_sortable with EUI Drag And Drop

* minor clean up

* fix drag and drop skipping

* add jest snapshot test for LayerTOC

* extract EuiDraggable list to js variable

* more unique droppableId

* update jest snapshot
2019-04-04 18:36:05 -06:00
Nathan Reese
23bdee0956
[Maps] automatically disable filter by bounds for indexes with small doc counts (#34456)
* [Maps] automatically disable filter by bounds for indexes with small doc counts

* text updates

* review feedback

* minor text update
2019-04-04 18:34:37 -06:00
Luke Elmers
8b7f171eb8
Show kbn_top_nav in dashboard only mode. (#34400) 2019-04-04 14:41:18 -06:00
CJ Cenizal
e6660de89a
Internationalize Rollup Jobs and Remote Clusters app titles. (#34470) 2019-04-04 11:37:19 -07:00
dave.snider@gmail.com
f9bdf890ba Design cleanup of Uptime app (#31663)
* uptime design cleanup

* uptime design cleanup

* test

* errorlist now styled

* errorlist now styled

* errorlist now styled

* cleanup

* replace color vars with correct naming

* some titles

* more cleanup

* clean up silly gray graph

* Address problems with UI update.

* Refresh jest snapshots.

* Fix busted types.

* Refresh jest snapshots broken by busted type fix.

* Rename duplicate localization key.

* Use same curve type for both check series on monitors page.

* Remove unused translations.

* Display name instead of ID in ErrorList component.

* Update x-pack/plugins/uptime/public/components/functional/ping_list.tsx

Co-Authored-By: snide <dave.snider@gmail.com>

* Update x-pack/plugins/uptime/public/components/functional/ping_list.tsx

Co-Authored-By: snide <dave.snider@gmail.com>

* Modify updated code to avoid flooding console log with errors.

* Get functional and unit tests passing.

* Fix busted unit test.

* Update jest snapshots.

* Add panel to empty state.

* Avoid rendering monitor list sparkline charts when downSeries has no values.

* Remove crosshair synchronization from monitor charts because of display bug. Provide default 0 value to series for check chart.

* Fix broken snapshot.

* Update monitor list and errors list to handle simple_query_string filters.

* Make FilterBar component incremental to avoid overwriting queries that are in progress of being edited.

* Update histogram query to support simple_text_query.

* Delete hardcoded height prop that was breaking UI in mobile-sized windows.

* Fix bug in check histogram function and add tests.

* Update API tests and functional UI tests.

* Fix type error in test file.

* Last few fixes

- Center empty prompt
- remove crosshairs from sparkline
- reconcile styles of text in table

* Update snaps

* WIP.

* Update snapshot query to avoid Apollo Query class and allow manual fetching.

* Update SnapshotLoading component to better reflect the actual shape of the Snapshot component.

* Introduce HOC to manage GraphQL querying.

* Remove unneeded code.

* Update monitor page query components to use new query paradigm.

* Remove remaining references to apollo query component.

* Update filter bar snapshot.

* Update empty state.

* Fix busted type in test.

* Update schema type to avoid server error.

* Remove obsolete translations.

* Remove more obsolete translations.

* Remove obsolete code from Snapshot component. Rewrite graphql HOC with hooks.

* Change loading state condition for filter bar.

* Simplify app refresh process.

* Update loading state for several components to avoid unnecessary renders.

* Add default sort order for getAll pings function.

* Add translation to bare UI string.

* Update API fixtures to handle new default sort direction.

* Fix type errors.

* Remove unused import.

* Change the way component passes children prop.

* Fix typing error.
2019-04-04 13:26:22 -04:00
Peter
7dbb702b35
fixes #34513 (#34516) 2019-04-04 12:05:42 -04:00
Sébastien Loix
26add272e0
[Remote clusters] Add client integration tests (#34076) 2019-04-04 16:05:22 +02:00
Sébastien Loix
795b72375f
[ILM] Remove "Beta" badge (#34454) 2019-04-04 15:42:27 +02:00
Mike Côté
51e6a009ee
Modify saved object import APIs to handle special use cases from the previous import process (#34161)
* Modify import APIs to handle special use cases from the previous import process

* Cleanup

* Add more examples to the docs

* Make title come from data inside file

* Fix some broken tests

* Fix docs

* Fix docs wording

* Apply PR feedback pt1

* Apply PR feedback pt2
2019-04-04 09:10:54 -04:00
Maryia Lapata
5c2267f2ca
[vis: Default Editor] Remove regex control (#34530)
* Remove usued regex control

* Remove dependency on removed file
2019-04-04 16:10:33 +03:00
Tim Roes
cca14121cc
Improve description for translators (#34467)
* Improve description for translators

* Address review feedback
2019-04-04 11:18:16 +02:00
Pete Harverson
2d259ae373
[ML] Increase width of text column in annotations table (#34450)
* [ML] Increase width of text column in annotations table

* [ML] Remove unnecessary textOnly prop from annotation column

* [ML] Remove unused translations for annotations table
2019-04-04 09:36:09 +01:00
Liza Katz
8bf4cf2eb0
New platform cleanup directives (#34060)
* Delete dirty prompt

* Moved check box directive

* Move kbn tooltip directive to watcher

* Moved toggle directives to watcher

* Moved json input directive to watcher

* Moved sortable column to watcher

* Fixed sortable column translations

* Remove kbn src directive (unused)

* Moved table cell directive to paginated table

* Moved number list into agg types

* Moved
 - agg table
 - paginated table
to table_vis plugin

* Moved draggable to vis editor

* Moved sort_prefix_first filter to agg types
2019-04-04 11:29:22 +03:00
Philipp B
7f994701ca
Actions from dashboard listing table are not screenreader accessible #22429 (#34154)
* Now actions from dashboard/discovery/visualize listing table is screenreader accessible
* passing screen title to search_bar compoenent
* remove screen title from URL state
* removed obsolete translation for Asian language
2019-04-04 11:00:36 +03:00
Nick Peihl
2bc89452bb
[Maps] WMS Client should keep query parameters in URL (#34200)
* WMS Client should keep query parameters in URL
2019-04-03 16:34:04 -07:00