* [Uptime] Update functional test directory to use a pinned version of package registry via docker (#117736)
* update functional test directory to use a pinned version of package registry via docker
* remove console log
* adjust config
* skip synthetics tests if no docker image
* remove extra configs
* move synthetics tests to a different directory
* update tests
* update tests
* remove duplicate tests
* update helpers
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
# x-pack/test/functional_synthetics/apps/uptime/synthetics_integration.ts
* Update x-pack/test/functional_synthetics/apps/uptime/synthetics_integration.ts
* Modify Exploratory View link to prevent filtering by monitor from Overview page.
* Modify route match so only detail page will include monitor name filter on exploratory view link.
* Remove unnecessary comment.
(cherry picked from commit 939a642819)
* Implement locator for Uptime Overview page.
* Give more descriptive name to locator ID const.
* Lazy load locator init code to reduce bundle size.
(cherry picked from commit af78c358d5)
* [Uptime] Drop requests for overview page data when filter not initialized (#120031)
* Drop requests for overview page data when the value for the es filters has not been initially set.
* Update to not wait when no filters are defined.
* Add tests and clean up some files.
* Delete unneeded code.
* Reduce check condition to single boolean value to avoid triggering effect multiple times.
* Simplify implementation, fix race. Update tests and fix types.
* Make `useOverviewFilterCheck` consider kuery search as well.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
# x-pack/plugins/uptime/public/lib/helper/rtl_helpers.tsx
* Fix linting errors.
* [Uptime] Disable 'Create Rule' button when user doesn't have uptime write permissions [#118404] (#120379)
* [Uptime] Disable 'Create Rule' button when user doesn't have uptime write permissions [#118404]
Before this commit, users would be able to open the flyout to create an
alert and would end-up seeing an error toast when they tried to save it.
This commit will now disable the create alert button when the user
doesn't have permissions to write to Uptime. It will also display a
helpful tooltip.
* [Uptime] Disable "Enable Anomaly Alert" when users can't write to uptime [#118404]
This commit causes users not to be able to use the "Enable Anomaly
Alert" button within the popover in the monitors screen. That button
will now be disabled and contain an informative tooltip whenever users
don't have permissions to write to Uptime.
We've chosen to take this approach so that we don't have to modify the
component which deals with the alert creation, which belongs to another
team and that we plan on eventually replacing. Furthermore, this pattern
is already used in the logs app.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* add missing useKibana hook to ML Flyout Container for detecting uptime write permissions
Co-authored-by: Lucas F. da Costa <lucas@lucasfcosta.com>
Co-authored-by: Lucas Fernandes da Costa <lucas.costa@elastic.co>
* [Uptime] add throttling parameters to the browser synthetic monitor form
This commit adds three fields to the browser synthetic monitor creation
form, these fields are: `download_speed`, `upload_speed`, and `latency`.
Each of these fields is used to test how applications behave under
particular network conditions.
This commit closes#114155.
* [Uptime] add functional tests for synthetic monitors throttling fields
* [Uptime] add toggling for throttling fields
* [Uptime] add normalizer for editing browser throttling fields
Co-authored-by: Lucas F. da Costa <lucas@lucasfcosta.com>
Previously, if users weren't able to create an ML job, they would simply
be shown a grayed-out button.
Showing this disabled button without explaining _why_ they cannot create
ML jobs could be confusing. Therefore, this commit adds a proper callout
explaining which roles and privileges are necessary.
Co-authored-by: Lucas F. da Costa <lucas@lucasfcosta.com>
This commit allows users to save uptime settings when they've got the
advanced setting to inspect ES queries turned on. Previously, it was not
possible to save these settings because the UI would not strip out the
unnecessary `_inspect` field from the response and thus would send it as
part of the configurations to change, which would then get refused
because of this unexpected field.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lucas F. da Costa <lucas@lucasfcosta.com>
* Add `7.16` to supported index pattern defaults.
* Update supported index pattern based on requirements update.
* Fix broken unit tests.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
* [kbn/rule-data-utils] add submodules and require public use them
* fix lint errors
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Spencer <email@spalger.com>
* [Uptime] prefix internal APIs with /internal [relates to #116334]
* [Uptime] move hard-coded URL paths to rest_api constants [relates to #116334]
* [Uptime] use API_URLS from constants in API integration tests [relates to #116334]
* [Uptime] Remove unnecessary filters route test
* [Uptime] prefix internal RUM routes with /internal and /ux [relates to #116334]
* [User Experience] update API docs for prefixed internal UX APIs
* replace any with unknown in http client and types (#114265)
# Conflicts:
# x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/components/suggestions_logic.tsx
# x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curation_suggestion/curation_suggestion_logic.ts
# x-pack/plugins/enterprise_search/public/applications/app_search/components/curations/views/curations_settings/curations_settings_logic.ts
# x-pack/plugins/triggers_actions_ui/public/application/components/builtin_action_types/resilient/api.ts
* commit using @elastic.co
This commit fixes a set of issues to the new multilayer time axis:
- the tickLine is now removed from ticks without a label
- the axis/tick/label style is restored to the original EUI one
- the multilayer time axis style is now moved into the charts plugin and reused
- Lens: use the single-layer time axis when bars cluster is used
- TSVB: I reduced a bit the number of ticks on the Y axis, to reduce the noise of gridlines with multilayer axis
- Discover: I reduced by 8px the height of the histogram and moved the top padding to the bottom to separate a bit the time range text and the time axis
Coming from @elastic/charts update:
- multilayer time axis tick/grid is shown only when tick is inside domain (this removes the black vertical axis line at the beginning of the chart) fix(xy): show mouse cursors on charts with opaque background elastic-charts#1447
- Fix the invisible cursor on charts with opaque backgrounds fix(xy): multilayer time axis tick/grid only when tick is inside domain elastic-charts#1446
- Add missing last tick and rarify gridlines fix(xy): adding missing last tick and other tick improvements elastic-charts#1448
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
* Add `aria-label`s for icon and icon buttons.
* Fix typo.
* Create test wrapper to help with testing context-reliant components.
* Create tests for `WaterfallMarkerIcon` component.
* Create tests for `WaterfallMarkerTrend` component.
* Simplify test wrapper.
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>