Commit graph

23489 commits

Author SHA1 Message Date
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
gchaps
b3f7435ad2
[DOCS] Fixes formatting in plugin and l10 docs (#34594) 2019-04-05 07:01:16 -07: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
Matthias Wilhelm
eceeb9fb35
Use enter to submit save modals (#34417)
Now you can use the Enter key to submit the form used e.g. when saving a new dashboard
Good for a11y + a time saver

Adds Form element, migration of Button onClick to Form's onSubmit 
Adds functional test for Enter key submission

Fix #30831
2019-04-05 10:47:30 +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
Matt Bargar
c4aedfc5ba
Fix stale state in filter field ComboBox (#34494)
The FilterEditor component was not updating derived state when the filter prop changed. This issue was exposed by a race condition in the dashboard app. When there are no panels with an index pattern the dashboard will fetch the default index pattern and pass it into the FilterBar. As a result, if a user managed to click the "Add Filter" button before the default index pattern finished loading the editor would first render with a filter containing no index pattern, which would cause the Field ComboBox to render in a disabled state. The FilterEditor props would update after the default index pattern finished loading, but state variables such as selectedIndexPattern would remain unchanged.

The root issue is that the source of truth about which index pattern should be used is stored in both the filter prop and the selectedIndexPattern state variable. To fix this I added a key prop to the FilterEditor that will be unique to each filter so that the component will be recreated on each filter change, while the draft state can remain fully uncontrolled in the FilterEditor component.
2019-04-04 19:46:31 -04:00
Luke Elmers
8b7f171eb8
Show kbn_top_nav in dashboard only mode. (#34400) 2019-04-04 14:41:18 -06:00
CJ Cenizal
2bf18429cc
Refine UI Metric app README and add guidance on tracking multiple metrics in a single request. (#34572) 2019-04-04 12:07:41 -07:00
CJ Cenizal
e6660de89a
Internationalize Rollup Jobs and Remote Clusters app titles. (#34470) 2019-04-04 11:37:19 -07:00
Sarah Hersh
4bca194d35
resolve merge conflict between master and 6.7 (#34570)
[DOCS] Adds i18n docs to master
2019-04-04 14:15:14 -04: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
Peter Pisljar
954d3e1093
updating tagcloud interpreter func arguments (#33773) 2019-04-04 14:33:38 +02:00
Geoffrey Ammons
2361d5e8b3 Fix migrate significant terms include exclude format (#34392)
* Fix migrate significant terms include/exclude

* update ref to expect, update test initialization

* created function to encapsulate duplicated code

* commented seemingly extraneous code in test

* Removed extraneous initialization code from sig terms test, updated migrate_include_exclude_format.js to use named import from lodash, added localized displayName to sig terms
2019-04-04 12:04:29 +02:00
Tim Roes
cca14121cc
Improve description for translators (#34467)
* Improve description for translators

* Address review feedback
2019-04-04 11:18:16 +02:00
Alexey Antonov
afaf8cac17
[TSVB] Tableview shows incorrect data (#34343) 2019-04-04 11:43:01 +03: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
Liza Katz
b16f9e0973
Remove parse_query from public/ui (#34232)
* Moved parse_query directive to agg_types
Moved fromQuery toQuery to query bar

* moved user input tests away from angular -> query_bar
2019-04-04 10:26:11 +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
Greg Thompson
865e6739fd
Upgrade EUI to 9.8.0 (#34486)
* upgrade eui to 9.8.0

* test selector updates
2019-04-03 17:25:10 -05:00
Luke Elmers
5bb9947b50
Fix missing column totals in data table. (#34169) 2019-04-03 16:04:55 -06:00
Bill McConaghy
0ce68ceb9d
fixing crash when zero replicas configured in a phase for policy (#34480) 2019-04-03 17:34:05 -04:00
Nathan Reese
30950519f2
[Maps] search bar docs (#34315)
* [Maps] search bar docs

* rename indexes to indicies and other text refinement feedback

* add example queries

* remove unused image

* Update docs/maps/search.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/search.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/search.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/search.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/search.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/search.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/search.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>
2019-04-03 15:15:33 -06:00
Dmitry Lemeshko
1af565973f
[services/retry] add onRetryBlock function to run before each retry (#34434)
* [services/retry] add onFaliureBlock function to run before each retry
2019-04-03 23:04:20 +02:00
Joe Fleming
a5b18e81d3
Fix: recreate handlers and reset completed state on expression change (#33900)
* fix: add expression and filter to ElementWrapper propso

cause the component to re-render when these values change

* fix: correctly spread additional props

* chore: convert ElementWrapper to functional component

* chore: refactor ElementWrapper container

use connectAdvanced instead of connect since it provides a way to get a hold of dispatch just one time, so the handlers object can be built in the container and only updated when something actually changes

* fix: reset handlers isComplete when element changes

allow completeFn to be called again, required so that the correct external actions happen

* feat: make expression available on shapes object

* fix: reset done checker on function change

* fix: only rebuild handlers when element changes

rebuild on happens when id, filter, or expression change

* chore: remove unused ElementWrapper props
2019-04-03 13:14:40 -07:00
Mike Côté
1e56a48fc7
Modify saved object export API to support exporting nested dependencies (#34225)
* Modify saved object export API to be able to export nested dependencies

* Apply verbal feedback

* Apply PR feedback
2019-04-03 15:51:07 -04:00
CJ Cenizal
b94c68abde
Add space at bottom of Auto-follow Pattern Form. (#34469) 2019-04-03 12:41:52 -07:00
Brandon Morelli
357dc6610c
docs: update tutorial (#34295) 2019-04-03 11:53:43 -07:00
Sarah Hersh
73c68b8e0b
[DOCS] Updates 7.0 upgrade guide (#34121) (#34346) 2019-04-03 14:50:47 -04:00
Robert Monfera
91f95ec9b5
Fix: don't attempt grouping while mouse is down (#34448) 2019-04-03 19:17:12 +02:00
Josh Dover
d33e6892da
Introduce UI PluginsService (#32672)
This commit introduces two changes:
- Adds new platform plugins as a new bundles to the optimizer
- A PluginsService in the UI that loads plugin bundles, initializes plugins, and manages the lifecycle of plugins.
2019-04-03 12:02:10 -05:00
Alexey Antonov
db113defb4
[TSVB] Sorting by Terms is not working (#34345)
Fix: #34344
2019-04-03 16:50:51 +03:00
Søren Louv-Jansen
377427dfbc
[APM] Replace omitLegacyData with includeLegacyData (#34426) 2019-04-03 15:41:31 +02:00
Larry Gregory
bb568e7ebe
Upgrade jimp to 0.6.0 (#27206) 2019-04-03 08:10:13 -04:00
James Gowdy
3930c36898
ML] Fixes bug in module setup endpoint caused by PR 30935 (#34414)
* [ML] Fixes module setup endpoint

* tweaks endpoint to allow trailing slash
2019-04-03 12:42:59 +01:00
Rudolf Meijering
5c457972d4
Generate core API docs from TSDoc comments (#32148)
* Generate core API docs from TSDoc comments

Uses api-extractor and api-documenter to generate documentation for
the Kibana core API from TSDoc comments in the source code.

Documentation can be generated using `npm run docs:api`.

I used --no-verify to ignore the following pre-commit hook errors:
1. Filenames MUST use snake_case - api-extractor.json
   It's possible to specify a different config file, but I prefer to keep the "standard" config file name.
2. UNHANDLED ERROR: Unable to find tsconfig.json file selecting "common/core_api_review/kibana.api.ts". Ensure one exists and it is listed in "src/dev/typescript/projects.ts"
   This is not a source file, so safe to ignore.

* Flesh out API docs a little bit

* Ignore snake_case check for api-extractor.json

* Ignore api-extractor's review file from pre-commit check

* Try to fix build failing by using masters yarn.lock

* I'm being stupid

* Found a better home for ignoring common/core_api_review/kibana.api.ts

* Node script for detecting core API changes

I initially wanted to include this as a precommit hook, but it takes
quite long to execute (~12s) so might be better suited as a test or
as part of the release process.

The script currently fails because api-extractor uses an older version
of typescript.

* Fix tslint precommit hook ignore condition

* Write tsdoc-metadata.json into ./build

* Add LogMeta and ElasticSearch to exported types & docs

* Suppress logging when running api-extractor from script

* Improve check_core_api_changes script and run as test

* Inline api-extractor.json config

* Fix check_core_api_changes --help flag

* LogMeta TSDoc comments

* check_core_api_changes: fail if api-extractor produces warnings or errors

And print more useful messages to the console

* Move ignored ts files list into dev/file

* Add back build:types since api-exporter cannot operate on source files

* Upgrade api-exporter/documenter

* api-extractor: independantly analyze core/public and core/server

Becasue of https://github.com/Microsoft/web-build-tools/issues/1029
api-extractor can't use core/index.ts as a single entry point for
analyzing the public and server API's as isolated namespaces.

Instead we analyze these projects separately. This introduces other
problems like the api review files and documentation always being
called "kibana." from the package.json filename.

* Build types as part of build task

* Include types in typescript browser compilation

* Force inclusion of core/public for building types

* Fix api review filename in api-exporter errors

* Update docs and API review files

* Fix api-extractor warnings

* Remove ts file ignored list since it's no longer necessary

* Rename exported api package name

* Review comments

* Export other missing types

* Upgrade api-documenter to latest beta

* Export more missing types

* Fix warnings and add api-exporter to Jenkins tests

* Correctly handle runBuildTypes() exceptions

* Fix another swallowed exception

* Fix api-extractor warnings after master merge
2019-04-03 12:26:00 +02:00
Peter Pisljar
98eb5d5bc4
renaming 'api/canvas' endpoint to 'api/interpreter' (#34410) 2019-04-03 12:25:45 +02:00
Wesley Hirsch
65362bb639 [Logs UI] Set [System][auth] program name correctly (#34212)
This fixes an incorrect reference to the `system.auth.program` field.

Fixes #34211
2019-04-03 11:57:37 +02:00
Nathan Reese
32bca45038
[Maps] do not show multi fields in tooltip and join field selection lists (#34379) 2019-04-02 18:57:01 -06:00
Robert Monfera
2e37f0d62f
[Canvas] Feat: make an empty pipeline expression legal (#28796) 2019-04-03 00:57:03 +02:00
Søren Louv-Jansen
9036aa49f4
Use ReturnType instead of explicit interfaces (#34065) 2019-04-03 00:44:58 +02:00