* Add ability for types to define an excludeOnUpgrade hook (#106534)
* 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
* Update fixture for 7.x
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
* focus uptime tests
* update timeout time for alert confirm button
* await async requests
* check for alert name input before attempting to set value
* remove focused tests
* ensure that the alertNameInput exists after opening flyout
Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
## [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
Co-authored-by: Andrew Goldstein <andrew-goldstein@users.noreply.github.com>
* [App Search] Initial logic for Crawler Overview (#101176)
* New CrawlerOverview component
* CrawlerRouter should use CrawlerOverview in dev mode
* New CrawlerOverviewLogic
* New crawler route
* Display domains data for CrawlerOverview in EuiCode
* Update types
* Clean up tests for Crawler utils
* Better todo commenting for CrawlerOverview tests
* Remove unused div from CrawlerOverview
* Rename CrawlerOverviewLogic.actios.setCrawlerData to onFetchCrawlerData
* Cleaning up CrawlerOverviewLogic
* Cleaning up CrawlerOverviewLogic tests
* Fix CrawlerPolicies capitalization
* Add Loading UX
* Cleaning up afterEachs across Crawler tests
# Conflicts:
# x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_router.test.tsx
# x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_router.tsx
* App Search: Domains Table for Crawler Overview (#101515)
* Add delete route for crawler domains
* Added deleteDomain action to CrawlerOverviewLogic
* New DomainsTable component
* Replace EuiCode with DomainsTable in CrawlerOverview
* Fixing mock imports
* Fix spleling
* Fix i18n tag
* Clean up DomainsTable
* Clean up DomainsTable tests
* Clean up CrawlerOverview tests
* Clean up i18n tag in CrawlerOverviewLogic
* Utilize Kibana i18n and React for timestamp display
* Use elastic.co domain in tests
* Remove unneeded type casting
* Adjusting isDateToday check
* Apply suggestions from code review
* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.ts
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
* [App Search] New Add Domain Flyout for Crawler (#106102)
* Added /api/app_search/engines/{name}/crawler/domains to Crawler routes
* New AddDomainLogic
* New AddDomainFormSubmitButton component
* New AddDomainFormErrors component
* New AddDomainForm component
* New AddDomainFlyout component
* Add AddDomainFlyout to CrawlerOverview
* Use exact path for CrawlerOverview in CrawlerRouter
* Clean-up AddDomainFlyout
* Clean-up AddDomainForm
* Clean-up AddDomainFormSubmitButton
* Extract getErrorsFromHttpResponse from flashAPIErrors
* Clean-up AddDomainLogic
* Remove unused imports
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [App Search] Attempt to add protocols to crawler urls when they are submitted for validation (#106764)
* 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>
* Fix import
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* server.basePath vs server.rewriteBasePath
Moving content to make pronoun commentary applicable to correct nouns. Lined up to https://www.elastic.co/guide/en/kibana/6.8/settings.html
* Apply suggestions from code review
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Stef Nestor <steffanie.nestor@gmail.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>
Co-authored-by: Zacqary Adam Xeper <Zacqary@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
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.
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
* [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>
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>
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
Co-authored-by: Walter Rafelsberger <walter@elastic.co>
* [TSVB] Add more functional tests for Timeseries
* Fix failing test for timeseries
* Refactor visual_builder_page and _tsvb_time_series
* Add getChartItems to visual_builder_page
* Remove generic from getChartItems function
This PR stabilizes some functional tests for cloud execution / execution in different order.
* Reset fleet setup after module tests
* Additional check and retry for anomaly explorer dashboard integration
* Stabilize DFA job wizard step navigation
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
* Refactored `ArgForm` hoc from `recompose` to `react hooks`.
* Refactored from `connect` to `useSelector`.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Yaroslav Kuznietsov <kuznetsov.yaroslav.yk@gmail.com>