* add HttpResources basic implementation
* expose http resources to plugins
* add mocks
* move http resources to a separate service
* hide rendering service
* adopt internal types
* expose HttpResources service to plugins
* update platform mocks
* plugins start using HttpResources API
* remove RenderingServiceSetup export
* RenderingServiceSetup --> InternalRenderingServiceSetup
* improve types
* remove httpRespources leftovers from http service
* remove rendering types from RequestHanlderContext
* fix security plugin tests
* add unit tests for httpResources service
* add unit tests
* remove outdated cache-control header
* restructure http resources service
* merge getUiPlugins and discover
* static route declaration shouldnt require auth & validate
* update docs
* use HttpResources service instad of rendering
* address comments
* update docs
* roll back unnecessary changes
* use getVars for rendering
* dont pass app. it is not public API
* remove static registers
* update migration guide
* Add embeddable via saved object example
* give todoRefEmbed a different name from the by value one
* fix types
* fix order of unmounting
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
getHref on Action interfaces in uiActions plugin is now async. getHref is now used only to support right click behaviour. execute() takes control on regular click.
* [Metrics UI] Refactor containers to hooks
* clean up depends; move useInterval out of useWaffleTime;
* converting WithWaffleFilters to useWaffleFilters
* Removing WithWaffleOptions
* Refactor WithWaffleViewState to useWaffleViewState
* Removing obsolete files
* Fixing race condition with complext state
* Adding undefined to RisonValue; unwinding changes trying to work around bad type
* Switching to context
* Change assertion to ignore the length of the current URL
* Fixing test frameork to accept urls longer then 230 characters
* Fixes#59395; Refactor WithMetricsTime to hook; Fixes brushing on metric detail page; fixes refresh button on metric detail page
* Fixing tests with adding timeRange
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fixes following cases:
Saving dashboard with pinned filter unpins it. Do not save pinned filters with dashboard see #62301 (comment)
When navigating with global filter to dashboard with same saved filter, filter becomes unpinned
When navigating from listing to dashboard with saved filter, back button didn't work
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* bump dependency, add edge support in ftr services
* add config files
* fix browser version for msedge
* use npm ms-chromium-edge-driver
* download edge driver aside from session creation
* move dependency to dev
* update dist/index file
* bump edge-driver version
* change type to msedge to match w3c spec
* fix discover tests for Edge
* Revert "fix discover tests for Edge"
This reverts commit 87e7fdd256.
* bump driver version up
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Move the default_editor to NP
* Fix paths
* Import styles through the visualize
* Other fixes
* Fix ip_ranges exhaustive-deps array
* Fix filters and extend bounds
* Other fixes
* Fix date_ranges tests
* Use useMount on first render
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* enable w3c for chrome
* update maps tests
* update maps tests
* update common_page
* Revert "update maps tests"
This reverts commit 31f43fd678.
* revert changes to maps tests
* undo after removal
* update expect range to pass on Windows, unskip tests for Firefox
* print out value for discover brushing test
* log first timestamp
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* simplify new index pattern button click method
* replace method name to match previous commit
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* update cache-control header
* update tests
* update test run config
* remove custom cache-control header for authentication resources
* address test flakiness
* address PR feedback
* revert changes to endpoint test
* revert changes for real this time
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Remove absoluteToParsedUrl reference in dashboard
* Remove KibanaParsedUrl from visualize
* Fix tests
* Add tests
* Fix saved dashboard
* Fix empty line after resolving conflicts
* Move dashboard to np
* Move migrations back to legacy
* Make it works
* Other fixes
* Move into application folder
* FIx translations
* Make share & home plugins otional
* FIx kbn url tracking, jest tests
* Import from dashboard_constants in FT
* Fix translations order
* Use getStartServices for start plugin deps
* Path fixes
* i18n fix
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Unskip
* Set only suite
* Add field search
* Use alternative flaky fix
* Remove extra actions
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1. Change logic around deciding wether to use time from url or from saved object. Previously code looked only into if _g is present in the url at all. And didn't consider edge case if time or refreshInterval is missing in _g
2. Fix initial syncing of time from savedobject causing redundant history record. _This changed caused order of _a and g params in url change. One test was affected by it because it relied on the order. I don't think it should be considered breaking as order app puts it's query params shouldn't matter.
3. Fix another race condition between state syncing with url and angular controller $destroy. Similar fix was done before in #57795, but this on covers case when we stay within dashboard app, but change dashboard
4. Fix initial panel state migration causing redundant browser history records
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* wip
* typescript map embeddable
* More updates
* Address code review comments and update some usages in SIEM and uptime to the new types
* More clean up - carry over some of the SIEM types to maps for render tool tip
* fixes
* fixes
* Address more review comments
* fixes
* fixes
* fix jest test
* Fix visualize embeddable
* fixes after master merge
* Fixes
* Prefix variable with name "custom" to make it more obvious
* Remove layerList from input state
* fixes
* Update src/plugins/dashboard/public/embeddable/dashboard_container_factory.tsx
Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>
* review updates
* fixes
* update maps readme
Co-authored-by: Vadim Dalecky <streamich@users.noreply.github.com>
* accessibility tests for dashboard panel
* added back the skipped test as it is still required to pass through the a11ySnapshot
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Migrated sample_action to NP. Panel action tests returned to the test flow.
* fixed names
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [ci/es] always pull snapshots, break early when they're not available
* move to setup.sh after deps are installed
Co-authored-by: spalger <spalger@users.noreply.github.com>
* Auto interval on date histogram is getting displayed as timestamp per 0 milliseconds when x-axis bucket is collapsed
Closes#57822
* Fixed incorrect interval label displaying while scaling the chart.
* Updated agg.test.tsx snapshot
* Got rid of context and refactored agg hooks
* Fixed agg.type.name check
* Added functional tests to cover the date histogram interval editing
* Fixed some expected values in tests
* Updated some test cases
* Added a new visualization to visualize archive
* Added testSubjects service to replace find where possible
* Updated tests to match updated behavior
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Migrated kbn_tp_custom_visualizations to the new platform
* skip test instead of deleting
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Migrated top nav plugin test to the new platform
* Removed old plugin. Some refactoring.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Catch invalid calendar exception
* Use isValidEsInterval directly
* Show field error message right away
* Fix for the case 2w
* Update time_interval.tsx
* Restructure validation
* Rename fn to isValidCalendarInterval
* Refactoring
* Update time_interval.tsx
* Add functional tests
* Add functional tests for interval
* Update _area_chart.js
* Don't show error when value is empty
* Use error message from InvalidEsCalendarIntervalError
* Update _area_chart.js
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>