* use discover locator in data_visualizer to generate url
* pass in discover plugin into context
* format according to linter
* add console messages
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens][TSVB] Convert to Lens
* Add logic for multiple series
* Basic formula
* Fix circular dependencies
* Minor cleanup
* Fix types
* fix jest tests
* Fix test
* Change the schema, add more styling options, fix bugs
* Supports time shift and custom date interval
* Fix types
* Fix some types
* Move edit in lens button to top nav menu
* Cleanup
* Further cleanup
* Add try it badge in menu, controlled by localStorage
* Add go back to app button
* Discard changes modal and go back to TSVB
* Update by value and by reference visualizations, delete existing by ref
* Fix bug
* Apply some changes
* get title and description only if has context
* Pass originating app, title and description from the savedVis
* By ref TSVB to by ref Lens
* Match TSVB cardinality with Lens unique_count function
* Support moving average
* Fix test
* Support derivative
* Support cumulative_sum
* Add overall functions
* Support filter ratio
* Refactor code for easier testing
* Fix bug with auto interval
* Fetch types from visualizations plugin
* Pipeline aggs compatible with percentile
* Add some bugs
* Support nesred aggs
* Mini refactor and support all aggregations to Math
* Transfer terms sorting options
* Transfer axis position
* Fix translations keys
* Revert
* Fix redirectToOrigin buttion when the there is no embeddableId but comes from dashboard
* Improve context identification
* Support yExtents
* Fix bug in formula caused by changes in the main branch
* Support formatters
* Support custom label
* Cleaning up
* Fix terms bugs
* Support filter breakdown by
* Fixes math bug and escapes filter ratio query
* Add some unit tests
* Testing triggerOptions payload
* Fix console warning
* Add more unit tests on TSVB function helpers
* Adds a unit test on the vis top nav menu testing the new menu item
* Add unit tests
* Fix unsupported palette bug, clean up, add a unit test case
* Add final unit tests
* Support timeScale in derivative
* Add functional tests
* Cleanup
* Fix jest test
* Fix some bugs
* Fix some math agg bugs
* Fix more bugs
* Fixes jest test
* Fix the problem with the dashboard state
* Hides the badge and link instead of disabling it
* Changes the text
* Adds menu item vertical separator
* Enhance the appLeace confirm modal to change the confirm button text and color
* Fixes CI
* Adress code review comments
* Address some of the comments
* Fix more bugs
* Fix more bugs
* Zero decimals for formatting
* fix tests
* Navigate from dashboard to TSVB to Lens hides the appLeave modal
* Adds support for terms on a date field
* Support filter by
* Move the trigger to the visualizations plugin
* Minor
* Fix CI
* Support percentage charts
* Improve the vertical separator
* Fixes on the appLeave logic
* Remove unecessary import
* Add badge to the nav item level
* Fix jest test
* Fi filter ratio and filter by bug
* Replace all occurences of a variable
* Nest badge into the button level
* Design improvements
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This PR fixes the weblogs anomaly explorer docs screenshot by expanding the cell selection to the last element of the array and using another scrollIntoView.
* Removed pie/donut/mosaic/treemap expressions from lens
* Replaced pie/donut/mosaic/treemap expressions with expressions from expression_partition_vis
* Fixed bug with __other__ labels.
* Cleaned up not used fields at Lens.
* Added support of empty results for multiple chart types.]
* Refactored visualization_noresults.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Do not allow package policies with whitespace in their name
* Update x-pack/test/fleet_api_integration/apis/package_policy/create.ts
Co-authored-by: Nicolas Chaulet <n.chaulet@gmail.com>
Co-authored-by: Nicolas Chaulet <n.chaulet@gmail.com>
* fix auto refresh
* update unit tests
* update mock
* show warning only with enabled auto refresh interval
* add extra assertion
* change default refresh interval to 10s
* handle time range updates, show warning with reset button
* fix side nav URLs update
* fix i18n
* update jest tests
* fix resolving of an active route
* change text, set default to 5s
* sync refresh interval, restore from timefiler on the AD list page
* fix smv refresh
* fix AE refresh
* fix setting of default value
* update jest test
* change toast life to 30s
* fix setting a global filter on init
* Replace input to EuiFieldNumber, fix createNumberHandler in case when value can be optional
* Add placeholder
* Fix remarks
* Fix name
* Replace `input` to `EuiFieldNumber` in window field
* Rename `isOptional` to `isClearable`
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] adjust visual changes for configuration flyouts
* paddings for add layer
* fix bug for extra space for reference lines
* fix non loading icon
* moving options for references
* remove warning from test
* show px inside the line thickness slider
* Update x-pack/plugins/lens/public/xy_visualization/visualization.tsx
Co-authored-by: Michael Marcialis <michael@marcial.is>
* refactor contextMenu
* Update add_layer.tsx
* change name, don't display decoration position if there's no decoration,
* left, auto, right & bottom, auto, top
* display none no
* icon value name changes
* tests
* icon in prepend
* cleaning up after the last piece of feedback
Co-authored-by: Michael Marcialis <michael@marcial.is>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Translate dashboard state to URL conditionally
* Add functional tests
* Fix typo in functional test descriptions
* Remove deprecated references
* Rename useUrl to be more specific
## Summary
Fixes https://github.com/elastic/kibana/issues/125319
Reduces timeouts from 10 minutes per test down to 2 minutes and changes log.error to log.debug to avoid spamming
I test this by making a failing test here:
```
x-pack/test/detection_engine_api_integration/security_and_spaces/tests/aliases.ts
```
By increasing `await waitForSignalsToBePresent(supertest, log, 4, [id]);` from `4` to `5`....Then I watched the logs and timed it to ensure it doesn't take 2 minutes.
I did this by running the server:
```sh
node scripts/functional_tests_server.js --config test/detection_engine_api_integration/security_and_spaces/config.ts
```
And then running the client:
```sh
node scripts/functional_test_runner.js --config test/detection_engine_api_integration/security_and_spaces/config.ts --include test/detection_engine_api_integration/security_and_spaces/tests/aliases.ts
```
If we start to see flake again on the regular build servers we might have to slightly increase this number again. If this doesn't allow failing servers to fully complete we might need to also decrease this number further or we might need to make this more configurable.
### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Issue: https://github.com/elastic/kibana/issues/125223
## Summary
- removes try/catch for bulk edit operation
- removes isElasticRule in bulk route API, replaces with rule.params.immutable check(as isElasticRule is used within telemetry)
- adds Cypress tests
- fixes case when index pattern action applied to ML rule. As ML rules don't have index pattern, so we will throw error if there is an attempt to run this action. It partially addresses https://github.com/elastic/kibana/issues/124918
- now checks if updated index patterns array is empty, if it is: throws error(https://github.com/elastic/kibana/issues/125223)