* Don't skip last bucket for most aggs
* Allow alerting on partial buckets for certain aggs
* Fix test, PR feedback, and some comments
* Remove all offset logic for date_range aggs
* Remove code comment
* Add delivery delay
* Fix the date range for query
* Add TODO
* First pass add to case action in timelines plugin
* Fix fake duplicate import lint rule and some type errors
* Fix some tests
* Remove use_insert_timeline and pass as prop
* Remove unneeded ports, fix types/tests
* Finish fixing types and tests for add to case action
* Remove duplicated security_solution code
* Pass appId as props
* Fix lint and a type error
* Use react-router-dom instead of window.location.search
* Fix broken test
* Remove unused imports
* Remove unused export and related code
* Remove `getScopedSavedObjectsClient()` from server `EndpointAppContextServices` (not used)
* new EndpointMetadataService service (handles GET of a single endpoint for now)
* ensure `getFleetAgent()` sets the current status for the agent
* Replace the Route handler for Get of single endpoint with new call to service
* Fleet: change agent service to also calculate and return the agent status via calls from the agent service
* Fleet agent generator changed to set a random status
* generic `createInternalReadonlySoClient()` with runtime validation for non-readonly methods
(cherry picked from commit b6e9d8d411)
* Remove `getScopedSavedObjectsClient()` from server `EndpointAppContextServices` (not used)
* new EndpointMetadataService service (handles GET of a single endpoint for now)
* ensure `getFleetAgent()` sets the current status for the agent
* Replace the Route handler for Get of single endpoint with new call to service
* Fleet: change agent service to also calculate and return the agent status via calls from the agent service
* Fleet agent generator changed to set a random status
* generic `createInternalReadonlySoClient()` with runtime validation for non-readonly methods
* Adds API check for existing policies when saving/creating trusted apps
* Fixes wrong error message
* Fixes tests and replaces policy id by policy name in error message
* Updates error message text
* Address pr comments and remove old comments in code
* Addressed some pr comments and added type to the error response in order to know which kind of response it is
* removed unused imports
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [data.search.autocomplete] Move autocomplete method to UI settings
* Use select rather than boolean
* Add ftue tour
* Make a select rather than text box
* Only show when focused and first time page is loaded
* Add docs link
* Reverse order of sections
* Update docs/concepts/index.asciidoc
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/concepts/index.asciidoc
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
* Docs updates
* setting
* telemetry
* Add links to docs
* Fix translations
* Fix failing test
* Fix test
* Fix tests
* Revert changes to querybar service
* Fix discover query
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
* Add ability for types to define an exclude from upgrade hook
* Update test to use 7.13 fixture
* Add 404 handling to oldest action task query
* Update api docs
* Update and add unit tests
* Rename deleteOnUpgrade to excludeOnUpgrade
* Disable reporting browser download for integration test
* Update exports and TSDocs
* Disable reporting plugin entirely
* Typo in config key name
* Update api docs
* Fix eslint
* Add timeouts for hooks
* Make adjustments to getOldestIdleActionTask
* Add type name to log messages for failed hooks
* Update api docs
## [Observability RAC] Alerts table post-`EuiDataGrid` style updates
This PR updates styles in the Observability `Alerts` table, as a follow-up to the [TGrid migrating to use `EuiDataGrid` for rendering](https://github.com/elastic/kibana/pull/106199), and [this PR](https://github.com/elastic/kibana/pull/105446), which improved the alerts table columns.
- The `Reason` column uses up the remaining width, a follow-up task from https://github.com/elastic/kibana/pull/105446
- This task was originally tracked by https://github.com/elastic/kibana/issues/105227
- Increased the font weight and vertically aligned the `Actions` header with the other columns
- ~Removed the `Status` column~ (EDIT: we won't remove this, per a discussion w/ UX)
- Increased the width of the `Triggered` column
- ~Renamed the `Duration` column to `Alert duration`~ (EDIT: we won't rename this, per a discussion w/ UX)
- Eliminated the gap between actions
- Added truncation to the `Reason` column
### Before
![before](https://user-images.githubusercontent.com/4459398/126430458-89440150-c10b-43b1-b0b4-2044ddfc22a8.png)
### After
<img width="1280" alt="after" src="https://user-images.githubusercontent.com/4459398/126716690-be310fdf-3760-4014-998b-3c89099c2564.png">
### Desk testing
- To desk test the `Observability > Alerts` page, add the following settings to `config/kibana.dev.yml`:
```
xpack.observability.unsafe.cases.enabled: true
xpack.observability.unsafe.alertingExperience.enabled: true
xpack.ruleRegistry.write.enabled: true
```
cc @mdefazio
* Add validate_url route to crawler routes
* Add getDomainWithProtocol to crawler add domain form utils
* AddDomainLogic.actions.validateDomain now attempts to fix protocols for urls
* Apply suggestions from code review for AddDomain utils
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* Add Integrations page callout for package upgades
* Fix props
* Add missing file
* Add integrations upgrade callout message
* Add link to updates available tab
* Fix merge
* Upgrade ppolicies UI WIP
* Initial upgrade dry run API
* Add upgrade method
* Move overridePackageInputs and use for upgrade method
* Add new variables to dry run diff
* Revert UI changes to uto upgrade wizard
* Add vars and streams to error keys
* Type fix
* Fix jest
* Fix types
* Fix typecheck
* Fix types
* Add integration test for dry run API
* Flesh out test cases
* Clean up error responses for dry runs
* Fix failing tests
* WIP: Add (failing for now) test case for package upgrade w/ error
* Add compiled_stream to test API payload
* Fix failing test case for automatic upgrade
* Fix compiled stream in package policy upgrade
* Remove fleet and agent setup from integration test
* Unload esarchiver fixtures in api integration test
Co-authored-by: Kyle Pollich <kpollich1@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary
Fixes https://github.com/elastic/kibana/issues/105731, by replacing these `any` types:
```json
type IFieldType = any;
type IIndexPattern = any;
type Filter = any;
```
With the types from `es-query` which are:
* IndexPatternFieldBase
* IndexPatternBase
* Filter
Note: I had to do a few creative casting to avoid having to use `FieldSpec` since that is not within the package `es-query` and is not planned to be within that package or another package for at least a while if ever.
### Checklist
- [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
By pulling out most of the things that depend on the URL into where we open the flyout and passing them in as metadata props, we can make it so editing rules while in Stack Management.
You cannot edit a rule's service name, transaction type, or environment once it has been created (#106786 has been created to allow editing of these other values), but all other values can be edited.
In order for useFetcher to work outside of the APM plugin, it has been changed to use useKibana instead of useApmContext for toast notifications. The notifications API from useKibana is slightly different and allows passing a react element instead of a mount point as the body.
Fixes#76316.
* [Lens] Allows the users to change the axis orientation
* Disable orientation if ticklabels are off
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [ILM] Server to use new in_use_by property returned by ES API
* [ILM] Cleaning up the PR changes
* [ILM] Fixed functional test
* [ILM] Fixed 'modifiedDate' display in the table
* [ILM] Fixed sorting test
* [ILM] Removed a not needed function declaration
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Adjust the minimum value of the correlation chart's y axis.
- Adds Log-Log Plot to the section header to indicate the chart type.
- Adds a missing translation