* Removes call to disable the angular encoding fix because we want that fix turned on for us
* Time range should be updated on every location change and not just when from/to values change
This was done in a previous commit but may have been lost in a merge somewhere...
This allows relative range refreshes to work so that 'now-24h' is re-calculated even though the string value didn't change. Redux handles the case where an absolute date is refreshed, and the chart requests are not re-made.
* add functional test to prove regression
* [chrome] strip # from hash before updating $location
* add opt-out level for disabling auto fix, disable in APM
(cherry picked from commit 319921ebfc)
* initial fix for navigation issue + Spencer
* added navigation test for issue #31238
* added more validations to the navigate back test
(cherry picked from commit ace80d1b59)
- This adds more thorough error handling to retrieving annotations from the server to avoid breaking Anomaly Explorer when there's a problem retrieving annotations. The UI will silently fail and hide the annotations table if for whatever reasons annotations cannot be retrieved for the selected jobs (this could be permissions or setup related if e.g. the annotations feature index/aliases are not present). This is now the same behavior like in Single Metric Viewer. The browser console will still output an error message. This fixes an error scenario where Anomaly Explorer would fail to load if a user upgraded to 6.6 because the backend task wasn't run yet to create the annotation index/aliases.
- Disables annotations feature in Single Metric Viewer if annotations fail to load.
- Use componentDidUpdate and an update check instead of deprecated componentWillUpdate for updating the annotations table in jobs management.
* fix: correctly access types
they are not exposed on the handlers object, they must be imported from @kbn/interpreter
* chore: move to function to browser
types can be accessed in the browser now, and a common function makes no sense right now. also https://github.com/elastic/kibana/issues/33039 prevents having the same function in both places anyway
* Add button for adding `index.query.default_field` setting to metricbeat indices (#32829)
* Add button for adding `index.query.default_field` setting to metricbeat indices
* Add button to 'group by index' view
* Refactor to more generic API
* Remove comment
* Update functional tests
* Use typeless API in 7.0
* Change vis save dialog when adding to dashboard (#32883)
* Change vis save dialog when adding to dashboard
* Update src/legacy/core_plugins/kibana/public/visualize/editor/editor.js
Co-Authored-By: timroes <mail@timroes.de>
* Fix jest text for older EUI version
* add check for extraMetric in point server tooltip hovers
* format extra metrics
* put z axis format information into series to format tooltip correctly
* fix failing tests
* extend tooltip formatter test
* add test
We have been deeply cloning the `searchSource.rawResponse` in the courier request handler, in an effort to prevent downstream applications from mutating the response and causing unintended side effects (for example, response data in the inspector will change if rawResponse is mutated).
While this was a sensible preventative measure, it unfortunately created some severe performance problems, particularly when dealing with deeply nested aggregations with a large amount of buckets.
This does the following:
* Stop deeply cloning response data in courier, which earns us some significant performance gains.
* Remove the following cache keys from index patterns which were mutating `searchSource`: $$_flattened, $$_formatted, $$_partialFormatted. They have been replaced with a WeakMap cache that doesn't rely on mutating the source data.
* Add link to Maps docs in Kibana getting started with sample data
* Update docs/getting-started/add-sample-data.asciidoc
Co-Authored-By: nreese <reese.nathan@gmail.com>
* [Maps] getting started documentation
* [DOCS] Edits for Maps Getting Started
* [DOCS] Incorporates review comments
* [DOCS] Rewrite section on sample data
* [DOCS] Adds link to add sample data page
* Makes sure fromQuery helper properly handles undefined values, adds test
* Adds APM default fallback values to every Kibana link, if no time picker values are currently set
* Changes date picker url updates to push instead of replace in stack
* Fixes bug with chart selection, dragging on charts now updates the URL which triggers all of the date picker updates
* Reverts query param encoding hacks due to fixes in #32732
* Removes unnecessary moment dep in SyncChartGroup
* Updates tests for url changes
* [APM] Moving the date picker into APM (#31311)
* WIP moving the date picker into APM
* Stable version of EUI date picker controls, still needs layout
* Flex layout for kuery bar and date picker
* Removes angular time picker logic and layout
* Fixes snapshot test
* Adds integration tests for date picker
* Simplifies refresh cycle with setTimeout over requestAnimationFrame
* Removes rison and local state from APM date picker flow
* Adds refresh tests, fixes some refresh logic
* Moves temporary EUI types out of component
* Moves toBoolean helper and fixes TS error
* Removes unused Link import
* Types for datepicker (WIP)
* Updates default date picker values after merging in Søren's type changes
* Streamlines new APM query types to prevent duplication
* Uses jest fake timers for refresh tests
* Updates url handling to remove Rison from APM URLs, keeps Rison in outgoing Kibana links
* Move filter bar up and out from within a react-redux-request to avoid catch-22 circular dependency
* Separates rison encoding from regular url handling
* Sets start and end defaults in urlParams reducer
* Adds IUrlParams type to initial state with correct typing
* Updated rison-related snapshots
* Resolves failing tests related to query param management
* Adds more tests for Kibana Link and Kibana Rison Link components
* Re-enables the update button for the EUI super date picker
* Adds more Discover link tests
* Moved getRenderedHref to testHelpers, switched Discover Links integration tests to TS, and added ML link integration test
* Changes how getRenderedHref works to make it clearer where location state is coming from
* Updates obsolete snapshot
* Fixes typescript-discovered errors and type errors
* Finishes up url_helpers tests, removes dead commented tests
* Removes temporary date picker types from APM
* Fixes common case for an existing URL bug by not encoding range params
* Fixes x-pack tests
* Fixes type errors in x-pack
* Fix table vis format date string when grouping by date field
* Use DateFormat instead of moment directly
* Add a pivot_type while selecting a pivot value in table
* Move fetchFields into a separate function
* Move setDefaultIndexPattern to ReactEditorControllerProvider
* [services/pipeline_list] wait for loadingPipelines is not displayed
* run x-pack-ciGroup2 x20 times
* Revert "run x-pack-ciGroup2 x20 times"
This reverts commit 1fb4077c2c.