* adds data for having closed signals
* adds 'Open one signal when more than one closed signals are selected' test'
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Gate ML Rules behind a license check
If they don't have a Platinum or Trial license, then we disable the ML
Card and provide them a link to the subscriptions marketing page.
* Add aria-describedby for new ML input fields
* Add data-test-subj to new ML input fields
* Remove unused prop
This is already passed as isLoading
* Fix capitalization on translation id
* Declare defaulted props as optional
* Gray out entire ML card when ML Rules are disabled
If we're editing an existing rule, or if the user has an insufficient
license, we disable both the card and its selectability. This is more
visually striking, and a more obvious CTA.
* Parsing the Authorization HTTP header to grant API keys
* Using HTTPAuthorizationHeader and BasicHTTPAuthorizationHeaderCredentials
* Adding tests for grantAPIKey
* Adding http_authentication/ folder
* Removing test route
* Using new classes to create the headers we pass to ES
* No longer .toLowerCase() when parsing the scheme from the request
* Updating snapshots
* Update x-pack/plugins/security/server/authentication/http_authentication/http_authorization_header.ts
Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>
* Updating another inline snapshot
* Adding JSDoc
* Renaming `grant` to `grantAsInternalUser`
* Adding forgotten test. Fixing snapshot
* Fixing mock
* Apply suggestions from code review
Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-Authored-By: Mike Côté <mikecote@users.noreply.github.com>
* Using new classes for changing password
* Removing unneeded asScoped call
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
* Fix edge case where reindex op is can falsely be seen as stale
This is for multiple Kibana workers, to ensure that an item just
coming off the queue is seen as "new" we set a "startedAt" field
which will update the reindex op and give it the full timeout
window.
* Update tests to use new api too
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Fix formatter on range aggregation
* Fix test that was using unformatted byte ranges
* Fix test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* adding custom links to actions menu
* user should have at least gold license to be able to manage custom links
* replacing variable for the correspondent value
* refactoring license prompt to a shared place
* fixing query to return filters that were saved separated by comma
* refactoring license prompt to a shared place
* fixing query to return filters that were saved separated by comma
* adding unit test, splitting value by comma and removing empty ones
* adding custom links to actions menu
* UI fixes
* moving stuff to common
* changing flyout texts
* refactoring getSelectOption
* refactoring getSelectOption
* refactoring filter options name
* adding preview panel
* adding preview panel
* fixing test
* adding unit test for replace template variables
* fixing typo
* polishing preview panel
* fixing pr comments
* fixing pr comments
* adding links
* fixing unit test
* removing servicemap license prompt
* Update the Authentication histogram to use categorization fields
* linting
* Use categorization fields for the Authentications table
* Use event.outcome for authentications KPIs
* Adjust mock to fix unit test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Adds a settings page to the Uptime UI. The settings page values are per-space. The only current setting is heartbeatIndices.
To test this against alternate indices try changing setup.ilm.rollover_alias in heartbeat.yml to something like alt-prefix. See the ilm docs for more details.
This should be tested with read-only and write only roles. To test this in kibana try creating two users with two different roles in kibana. One roll should have read access to the Uptime space in kibana. The other should have all access. Both should have read permissions for the heartbeat-* index pattern.
This patch also splits API perms from just heartbeat to uptime-read and uptime-write.
This patch also refactors some of the header component functionality, using hooks for breadcrumbs, and making the top links optional.
Fixeselastic/uptime#43
* Allow ML Rules to be patched
* Test passing of params from our patch routes to our helpers
Since patchRules accepts a partial there's no way to verify this in
typescript, we need regression tests instead.
* Update lists when importing with overwrite
This was simply missed earlier.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Adds rotation transform which does the top->bottom to left->right
transformation + an extra 5 degrees which results in taxi edges
separating when rendered.
* PR feedback to reduce edge width on hover, and assure that connected
edges are highlighted when node is selected/focused
* update disabled kuery bar placeholder text for service map
resolves https://github.com/elastic/kibana/issues/60744
This is a fairly complex test, with alerts that run actions that write to
an index which we then do queries over. The tests didn't account for some
slop in all that async activity, but now should be about as flake-free as they
can be.
resolves https://github.com/elastic/kibana/issues/59889
The index threshold APIs - used by both the index threshold UI and the
alert executor - were returning errors (500's from http endpoints) when
getting errors from ES.
These have been changed so that the error is logged as a warning, and the
relevant API returns an "empty" result.
Another 500 response was found while experimenting with this. Apparently
the date_range agg requires a date format to be passed in if the date format
in ES is not an ISO date. The repro on this was to select the `.security`
alias (or it's index) within the index threshold alert UI, and then select
one of it's date fields.
* Use ingest API to get endpoint datasources
* Add `application` service to `KibanaContextProvider`
* Adjust Policy list to show data available from API
* Added ingest service + refactored middleware
* handle api failures/errors
* Removed policy list fake_data generator
* Fix typing
* Rename method + added explicit return type
* move dispatch outside of try block
* Removed unnecessary action
* Added FIXME comments with link to issue
* Skip some functional tests
* added tests for ingest service
* Policy list tests - turn it all off
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* update to eui 21.0.1
* most changes needed for search bar ts changes
* Passing types
* snapshots
* jest tests
* Removed IQuery placeholder types
* Updated functional test to only look at table headers with content
* Moved 'filters' definition around in api docs
* Update types
* update snapshot
* typo
* Move DATA_FRAME_TASK_STATE enum to its own file to fix x-pack functional test config imports
* merge public api 'changes'
Co-authored-by: patrykkopycinski <patryk.kopycinski@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>