* 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
* 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
* 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
* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes
Fix: #34433
* [TSVB] [Performance]request for api/metrics/fields triggered after all UI changes - prevent reRender in case of no changes
Fix: #34433
* should update data on switching tabs
* fix PR comments
* Add Include and Exclude fields to the Terms group
* Change *clude to *cludeLabel
* Add the include and exclude parametrs to the server side
* Remove an unnecessary prop
* Use destructring
* Change back a variable
* Destruct lodash
* Fix input filling
* Add type checking to inputs
* Add constants to field types
* Make a snapshot of the SplitByTermsUI component
* Move constants to common
* 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
* Adds time_zone to query
* Adds dateFormatTZ to kuery query
Removes comments
* Adds defaults for the dateFormatTZ to the function signatures
* Adds tests for date match in kuery
Modifies test
* Adds a test for get_es_query_config
* Adds test for get timezone from settings utility method
* Adds tests for modified range method
Adds config param test to node_types/functions
code clean up
* resolves initial PR comments
* Refactors build_es_query test
* Refactors get_time_zone_from_settings test
* Uses spys to test that the config is passed down to children in ast toElasticsearchQuery
* removes default config nulls
* Deletes sinon.spy tests in kuery
* removes moment.setDefault from __tests__/get_timezone_from_settings.js
* 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
* 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
* [services/lib/web_element_wrapper] set custom wait for findAll
* [services/remote] print browser name and version on init
* [services/combo_box] fix return statement
* fix lint error
Now that https://github.com/elastic/beats/pull/9118 is merged, starting 7.1 users will be able configure Metricbeat for monitoring Kibana instances using a simpler syntax.
Previously, users would have to run `metricbeat modules enable kibana` to enable the `kibana` Metricbeat module, then configure the module for Stack Monitoring by manually editing `modules.d/kibana.yml`. Going forward, users will be able to achieve the same effect by running `metricbeat modules enable kibana-xpack`.
This PR updates the docs with this change.
Related: https://github.com/elastic/elasticsearch/pull/40879
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.
* Move ui/flyout to overlay core service
* Remove onClose in parameter (use FlyoutSession instead)
* Fix tests
* Remove old inspector tests
* Proper TODO message
* Convert flyout service to class
* Use correct i18n
* Resolving weird merge conflicts
* Fix panel plugin test
* Change new platform access
* Add more tests
* Remove commented tests
* Revert test fix (core is actually not fixed yet)
* Fix tests
* Expose onClose as Observable
* Use jest.doMock
* Fix typos
* Core start() -> setup()
* Remove @extends EventEmitter docs
* Refactor and test flyoutservice
* Fix comments: promise -> observable
* Fix tests
* Explicitly define OverlaySetup
* Fix OverlaySetup type signature
* Update Core API review file and docs
* Remove redudant if case
* Change FlyoutRef.onClose into a promise
* Remove redundante cleanup
* Use promise.finally
* Remove targetDomElement from openFlyout()
There's no need to support multiple targetDomElements per FlyoutService
and the current implementation handled this use case incorrectly.
Instead of adding complexity to try to support it, remove this from the
function signature.
* Fix + test to ensure child components are unmounted when a new flyover is displayed
* Wrap flyover in i18n Context component
* TSlint -> ESlint + test improvements
* EUIficate drop partials control
* Set right value to a comp before rendering
* Wrap the switch in tooltip
* Exclude legacy styles for eui prefix
* Add a spacer
* 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
This initial guide is focused on migrating plugins within the Kibana repo.
Once more of the details are fleshed out in concrete terms, we can
re-purpose it to be published for external developers as well.
## 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
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
* [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