* Uses "data" or "test data" when referring to the general idea
* Uses "archive" when referring to the specific data/implementation
* Adds a few grammar/spelling tweaks
* update test
* added test
* updated type
* updated test
* updated test
* update test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* bc6 rule import april 9
Increased the lookback of the ML rules
* re-import
with LF chars
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Link ML Rule card CTA to license_management
Taking the user directly to the license management page within kibana
(where they could immediately start a trial subscription) is much more
actionable than taking them to the subscriptions marketing page.
* Revert translation key change
Neither of these is totally accurate, and there've already been
translations written for the old one.
* Rename IndexMgmtSetup to IndexManagementPluginSetup.
* Remove unused fetch index template route and related tests.
* Remove unnecessary custom styles.
* Adds a new config flag to encode with BOM for our CSVs
* Push out bom-chars to it's own constant
* Getting those snapshots back into shape 💪
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Move buildHierarchicalData to vislib
* Move shortened version of buildPointSeriesData to Discover
* Move buildPointSeriesData to vis_type_vislib
* Convert unit tests to jest
* Remove ui/agg_response
* Convert point_series files to TS
* Update TS in unit tests
* Convert buildHierarchicalData to TS
* Convert buildPointSeriesData to TS in Discover
* Clean TS in Discover
* Update TS for buildHierarchicalData
* Update buildHierarchicalData unit tests
* Clean up TS in point_series
* Add unit tests fro response_handler.js
* Simplify point_series for Discover
* Return array for data
* Add check for empty row
* Simplify point_series for Discover
* Return all points
* Specify TS
* Refactoring
* Simplifying
* improve types
* Update _get_point.test.ts
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Set refresh on bulk create to 'wait_for' when actions are present, so we do not respond until the newly indexed signals are searchable.
* set refresh on bulk create to 'wait_for' when actions are present, so we do not respond until the newly indexed signals are searchable
* fix types in tests
## Summary
Fixes critical bugs found during testing of the rule notification.
* Fixes a bug where when you turn on rules quickly such as ML rules you would see these message below. This message can also be seen when you first create a rule with an action notification. This is a race condition with how we update rules multiple times when we really should only update it once and do it before enabling a rule
```
server log [12:18:35.986] [error][alerting][alerting][plugins][plugins] Executing Alert "63b828b5-24b9-4d55-83ee-8a8201fe2d76" has resulted in Error: [security_exception] missing authentication credentials for REST request [/_security/user/_has_privileges], with { header={ WWW-Authenticate={ 0="Bearer realm=\"security\"" & 1="ApiKey" & 2="Basic realm=\"security\" charset=\"UTF-8\"" } }
```
* Fixes a bug where we were using `ruleParams.interval` when we should have been using `ruleAlertSavedObject.attributes.schedule.interval`. When changing rule notifications to run daily, weekly, etc.. you would see this exception being thrown:
```
server log [21:23:08.028] [error][alerting][alerting][plugins][plugins] Executing Alert "fedcccc0-7c69-4e2f-83f8-d8ee88ab5484" has resulted in Error: "from" or "to" was not provided to signals count query
```
* Fixes misc typing issues found
* Fixes it to where we no longer make multiple DB calls but rather pass down objects we already have.
* Changes the work flow to where we only update, create, or patch the alerting object once which fixes the race condition and improves the backend performance.
* Removes left over unused code
* Applied https://en.wikipedia.org/wiki/Single-entry_single-exit to functions where it made sense and easier to read.
### Checklist
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
* start of error exception type
* width and link
* removed extra line
* updated snapshot
* updated snapshots
* updated snapshots
* Update snapshots
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
* Closes#62878 in Service Maps by improving the selection algorithm for root nodes
* Fixes some latent centering issues when navigating in the service map.
* Removes unused imports
* Added layoutstopDelayTimeout to cleanup step
* [Maps] fix attribution overflow with exit full screen button
* use margin-left instead of padding-left
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Implemented actions server API for supporting preconfigured connectors defined in kibana.yaml
* Fixed type check
* Fixed due to comments and extended functional tests
* Fixed tests and renamed connectors
* fixed jest tests
* Fixed type checks
* Fixed failing alert save
* Fixed alert client tests
* fixed type checks
* Fixed language check error
* Fixed jest tests
* Added missing comments and docs
* fixed due to comments
* Fixed json config for preconfigured
* fixed type check, reverted config
* config experiment with json stringify
* revert experiment
* Removed the spaces from connector names in config
Summary
- #60022
- Follow up on #60171
- Modifies boolean filters to enum of "included" and "excluded"
- Adds operator types of enum "match", "match_all", "list", and "exists"
- Adds values properties to include those for "list"
- DOES NOT FILTER ON THE VALUES JUST YET (That will be a follow on PR)
## Summary
* Fixes the Type Script types so we don't have to use non-null-assertions
* Adds null checks where needed
* Changes the time range query to have a format of epoch to avoid mapping issues
### Checklist
- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
* add new ecs description
* new auditbeat/filebeat description
* update description winlogbeat
* bring back description in pictures
* review I + use ECS doc as last ressource when you do not know the index
* update test
* safety default just in case
* fix functional test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add service map icon for rum-js agent type
We previously were only checking for "js-base" as the RUM `agent.name` but it can report either "js-base" or "rum-js", so make that work.
I saw an "opbeans-react" service on a map generated by apm-integration-testing that Gil had running last week. Not sure if that's a newer or older version because I don't see it on apm.elstc.co.
Also clean up the icons storybook a little.
Fixes#62336.
* use isRumAgentName
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* removed unnecessary filter
* update condition
* added a unit test for mix state
* fix types
* fix type
* updated test
* update
* updates test
* updates tests
* updates tests
* updated type
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* bc5 rule merge
version changes
field changes to endpoint rules
removed max_signals from 7 rules
* Fixing monitoring i18n (#62715)
* Updates esarchiver test data with the latest rules (#62723)
* Remove CR, only CRLF for rules
* delete two files
for Garrett
* deletes
delete 2 files (for Garrett)
* Revert "deletes"
This reverts commit cc2ac1e05f.
* Revert "Fixing monitoring i18n (#62715)"
This reverts commit 028574037a.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
* update crypto packages
* as type for return value
* get default export
* add if checks
* wrap errors in i18n
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Move layers to new location
* Update layer path refs
* Update np kibana services to cover all required services
* Init np kibana services in legacy plugin. Port init functions to np
* Path updates, supporting file moves, general clean up
* More moves of related files and clean-up of legacy refs
* Path updates. Typescript warning fixes
* Update test paths
* Clean up unused kibana services usage in legacy
* Remove unused http ref
* Test fixes and clean up
* Remove unused snapshots
* Add np service init to embeddables too
* Move validate color picker to NP
* WIP
* Add new alert with tests
* Fix type issues, and disable new alerting for tests
* Fix up the view all alerts view
* Turn off for merging
* Fix jest test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Test ClosureOptionsRadio component
* Test ClosureOptions component
* Test ConnectorsDropdown component
* Test Connectors
* Test FieldMappingRow
* Test FieldMapping
* Create utils functions and refactor to be able to test
* Test Mapping
* Improve tests
* Test ConfigureCases
* Refactor tests
* Fix flacky tests
* Remove snapshots
* Refactor tests
* Test button
* Test reducer
* Move test
* Better structure
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Default uptime alert type and disable changing type.
* Update functional test to handle new UI flow.
* Fix type error.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Remove absoluteToParsedUrl reference in dashboard
* Remove KibanaParsedUrl from visualize
* Fix tests
* Add tests
* Fix saved dashboard
* Fix empty line after resolving conflicts
* Move dashboard to np
* Move migrations back to legacy
* Make it works
* Other fixes
* Move into application folder
* FIx translations
* Make share & home plugins otional
* FIx kbn url tracking, jest tests
* Import from dashboard_constants in FT
* Fix translations order
* Use getStartServices for start plugin deps
* Path fixes
* i18n fix
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* config shim
* simplify route register calls
* switch to in-sync worker functions
* fix tests
* comment
* fix set up config with defaults
* reduce loc change
* remove test for removed file
* reportingconfigtype
* revert changing executeJobFactory to synchronous
* imports cleanup
* Clean up some awaits
* undo comment
* clean up async
* clean up imports
* add warning logs for config defaults
* Move around some config shim code
* Register routes params take ReportingCore
* usageCollection is an optional dependency
Alerting no longer requires the manage_api_keys privilege, so we are removing it from the detection engine code. Fixes#62387
* removes hasManageApiKeys since alerting is using the internal user api calls, manage_api_keys privilege is no longer necessary
* linting error
* fixes types and removes a test for manage api keys
* removes manage api key reducer and updates leftover tests
* moves userHasNoPermissions repeated code into a function in helpers, adds a few test cases, updated references to new function
* fix test title
* remove userHasNoPermissions function and remove tests, replace with just not canUserCRUD
* Revert "remove userHasNoPermissions function and remove tests, replace with just not canUserCRUD"
This reverts commit 93912e7e22.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Moves enableDataFeed outside of MLPopover
If we accept our dispatch functions, enableDatafeed can be abstracted as
a pure function. The version bound to popover's dispatch functions is
now named 'handleJobStateChange', as that is the callback it's used for.
* Remove unused component state
We no longer deal with jobs in our local state; that's the
responsibility of the useSiemJobs hook
* Prevent user from initiating multiple job installations
When attempting to run a job from the ML Popover, if the job needs to
first be installed, we set the rest of the jobs to be "loading" while
installation is performed.
Without this change, if users are fast enough they can potentially
trigger multiple rule installations, which is undefined behavior and
leads to failures and bad state in our component.
* Remove unused import
* remove all unknowns from all rules table props
* update sorting property type remove optional, also remove unnecessary properties we are not using in sorting, rename paginationMemo prop to pagination, remove null from rulesStatuses type as we are defaulting to empty array now
* fixes type mismatch for sorting and rulesStatuses
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Because these messages are used for logging, we should ensure they do
not span multiple lines and confuse log parsers. Since the frontend does
not currently display these newlines, anyway, there is no impact to the
UI.
* wip
* typescript map embeddable
* More updates
* Address code review comments and update some usages in SIEM and uptime to the new types
* More clean up - carry over some of the SIEM types to maps for render tool tip
* fixes
* fixes
* Address more review comments
* fixes
* fixes
* fix jest test
* Fix visualize embeddable
* fixes after master merge
* Fixes
* Prefix variable with name "custom" to make it more obvious
* Remove layerList from input state
* fixes
* Update src/plugins/dashboard/public/embeddable/dashboard_container_factory.tsx
Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>
* review updates
* fixes
* update maps readme
Co-authored-by: Vadim Dalecky <streamich@users.noreply.github.com>
* Remove support for deprecated xpack.telemetry configurations
In 7.5, we moved telemetry to OSS and dropped the xpack prefix for the
telemetry plugin configuration options. We deprecated the usage of the
xpack prefix so any existing usage would trigger a warning at startup.
In 8.0, we remove support for the deprecated xpack prefix configs for
telemetry.
* Move telemetry settings into its own document
* Use external reference instead of anchor
* Update docs/migration/migrate_8_0.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/migration/migrate_8_0.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Update docs/settings/telemetry-settings.asciidoc
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* Remove depecrated xpack.telemetry.* config from xpack_main/index.js
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Fixes#62255 . There were some remaining usages of a static defined
index name.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Rename some alert types
* Use sentence case for remaining changes + fix jest test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Maps] source registry and register seperate clusters and heat map sources
* split into to registries
* add EMS file source
* add geojson upload layer
* register rest of sources
* i18n changes
* ts lint errors
* fix jest test
* fix pew-pew source
* review feedback
* import registires in plugin so they exist in embeddable
* remove order parameter and move all layer registies into single file
* fix functionalt est
* pass constructor to sourceREgistry instead of factory
* review feedback
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* fixes sorting to what it was in 7.6.1
* removes sortable=true from non-sortable columns, fixes naming of sortable column field from activate to enabled to match the field eui expects to sort on, fixes react render warning due to resetting tableRef's current field during a render
* fix persistence between filter
* Fix API filtering bug
* Show username if full name is empty
* fix user in avatar
* do not allow push to service now when connector is none
* fix types
* Show errors from actions
* update connector name in configure
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
* add functional test
* update func test
* refactor more changed
* update test
* update test
* update type and test
* fix the fix of fix, which din't get fix
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add action variables for monitor status alert.
* Translate action variable descriptions.
* Add state variables to list. Update defaultActionMessage.
* Remove non-literal characters from test names, and update outdated snapshots.
* Hide APM alerting menu if alerting plugin is disabled
Checks for presence of plugin and does not display the link if the plugin is disabled.
Use `xpack.alerting.enabled: false` in config/kibana.dev.yml to try it.
Fixes#61048.
* adding PagerDuty icon to connectors cards
* Fix jest
* remove unnecessary global typings from canvas and sync global typings in xpack with oss
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add fetchFunction binding appropriate version of fetch for ems client
* Wrap standard window fetch prior to passing to ems-client
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* allow case to work without security
* disable configure button + add call out if license does not match and if kibana config does not allow if
* add skeleton for crud in case
* fix link to timeline + disable action on case on read only + allow read only access to our saved object in siem + manage no x-pack.security + show msg when read-only + fix reporters bug
* add actions required in plugins
* review I
* review II
* review III
* review IV
* fix types
* review V
* Use docLinks API for APM doc links
Remove `packageInfo` (from ui/metadata package from the legacy platform) and replace with `core.dockLinks` in the `ElasticDocsLink` component.
Fixes#56453Fixes#60945
* Move isMlRule helper to a more general location
And use it during rule execution as well.
* Add error message back to rule error status
This was unintentionally removed in a previous merge commit.
* Expose mlClient as part of ML's Setup contract
This allows dependent plugins to leverage the exposed services without
having to define their own ml paths, e.g. "ml.jobs"
* Move ML Job predicates to common folder
These are pure functions and used on both the client and server.
* WIP: Check ML Job status on ML Rule execution
This works, but unfortunately it pushes this executor function to a
complexity of 25. We're gonna refactor this next.
* Move isMlRule and RuleType to common
These are used on both the frontend and the backend, and can be shared.
* Refactor Signal Rule executor to use RuleStatusService
RuleStatusService holds the logic for updating the current status as
well as adding an error status. It leverages a simple
RuleStatusSavedObjectClient to handle the communication with
SavedObjects.
This removes the need for our specialized 'writeError', 'writeGap', and
'writeSuccess' functions, which duplicated much of the rule status
logic and code. It also fixes a bug with gap failures, with should have
been treated the same as other failures.
NB that an error does not necessarily prevent the rule from running, as
in the case of a gap or an ML Job not running.
This also adds a buildRuleMessage helper to reduce the noise of
generating logs/messages, and to make them more consistent.
* Remove unneeded 'async' keywords
We're not awaiting here, so we can just return the promise.
* Make buildRuleStatusAttributes synchronous
We weren't doing anything async here, and in fact the returning of a
promise was causing a bug when we tried to spread it into our attributes
object.
* Fix incorrectly-named RuleStatus attributes
This mapping could be done within the ruleStatusService, but it
lives outside it for now.
Also renames the object holding these values to the more general
'result,' as creationSuccess implies it always succeeds.
* Move our rule message helpers to a separate file
Adds some tests, as well.
* Refactor how rule status objects interact
Only ruleStatusSavedObjectsClient receives a savedObjectsClient, the
other functions receive the ruleStatusSavedObjectsClient
* pluralizes savedObjects in ruleStatusSavedObjectsClient
* Backfills tests
* Handle adding multiple errors during a single rule execution
We were storing state in our RuleStatusClient, and consequently could
get into a situation where that state did not reflect reality, and we
would incorrectly try to delete a SavedObject that had already been
deleted.
Rather than try to store the _correct_ state in the service, we remove
state entirely and just fetch our statuses on each action.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Remove unused legacy services
These were migrated to NP in a previous PR.
* Remove unused legacy request types
* Type our siem client as optional
If a plugin does not have siem enabled, they won't get our client.
While it seems unlikely to be in a situation where our routes are being
hit but our client is unavailable, we will return a 404 in that case,
similar to the unavailability of actions/alerting.
This also removes some redundant checks on action/alerting clients.
* Remove more redundant dependency checks
In general, we use optional chaining to ignore any intermediate null
values, and defer checks to our actual dependencies, e.g. alertsClient
or siemClient.
* [Maps] clean-up unsaved state check (#61535)
* close layer panel in functional test
* skip vector styling test
* skip saved object management test
* skip all of group 7 tests
* turn back on group 7, skip full screen
* turn on all tests except full screen
* unskip all tests and resolve root problem
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* allow users importing data if they are authorized
* rename props
* rename types
* hide import timeline btn if unauthorized
* unit test for TimelinesPageComponent
* update schemas
* update schema
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
[SIEM][Detections Engine] - Add rule markdown to timeline global notes
* added functionality of new global timeline note created on init timeline creation if signal.rule.note exists
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* adds test data
* implements 'Deletes one rule' test
* adds new data
* fixes 'Deletes one rule' for the new data
* adds 'Deletes more than one rule' test
* clean up comments + add update_by/update_at case when comment are added/updated + return all comments
* add refresh button + get a better interaction between user + fix bug with pushed data + fix three dot on detail page
* fix i18m
* review I
* review II
* typescript map embeddable
* Address code review comments and update some usages in SIEM and uptime to the new types
* More clean up - carry over some of the SIEM types to maps for render tool tip
* Address more review comments
* create empty plugin + move home feature registration to it
* move the so action_registry to new plugin
* adapt existing calls to the registry
* fix i18n namespace
* fix table unit tests
* update codeowners
* rename plugin to match other PRs
* remove registerLegacyAPI from spaces public plugin
* fix typo
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Hide bottom bar when flyout is open
* Track unchanged saves
* Make function optional
* Show action bar when close flyout
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* refactoring custom link server side
* refactoring custom link server side
* fixing pr comments
* fixing unit test
* fixing unit tests
* renaming server directory
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Accounts for security being disabled, adds tests
* Updates other auth-aware endpoints (import timeline, graphql) to
account for security being disabled.
* Make global service map zoom toward center
Calculate the center of the graph when there's not a primary node.
Also update to latest version of types.
Fixes#61176.
* Fix types
Fixes behavior in chrome where using the enter key to submit the settings form would reload the page. Fixes#61006
Fixes test failures in uptime settings tests by waiting until form data is loaded: https://kibana-ci.elastic.co/job/elastic+kibana+master/3882/https:/
Sample failure:
{ Error: expected { heartbeatIndices: '' } to sort of equal { heartbeatIndices: 'heartbeat-8*' }
at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js💯11)
at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
at Context.it (test/functional/apps/uptime/settings.ts:31:25)
at process._tickCallback (internal/process/next_tick.js:68:7)
actual: '{\n "heartbeatIndices": ""\n}',
expected: '{\n "heartbeatIndices": "heartbeat-8*"\n}',
showDiff: true }
Re-enables location tests failure, which should have been fixed by https://github.com/elastic/kibana/pull/60573/files#diff-7198f3de6fe631f903e590f63bc88e21R20
## Summary
This adds an optimization script very copied and slightly modified from:
* https://github.com/elastic/kibana/pull/49868
Usage:
Run this to do an dev tsconfig optimization:
```ts
node x-pack/legacy/plugins/siem/scripts/optimize_tsconfig
```
Run this to undo the optimization:
```ts
node x-pack/legacy/plugins/siem/scripts/unoptimize_tsconfig
```
Testing and what this does:
Run this:
```ts
node x-pack/legacy/plugins/siem/scripts/optimize_tsconfig
```
Then run your start-test-all or at least your linter, typescript check, and jest tests to make sure they all operate as expected. Restart your IDE and ensure everything works as expected.
Run `git status` and ensure it looks like no new files want to be checked in.
Open up your:
```ts
kibana/x-pack/tsconfig.json
```
And notice it is now changed when optimization has run to use a smaller set of includes.
Open up your:
```ts
kibana/tsconfig.json
```
And notice it is now changed when optimization is run to use a smaller set of includes.
Replaces generic object type mappings with explicitly defined properties. These were probably unmapped because the sample data for some agents does not have these fields.
* Allow embeddables to track their own render complete for report generation in canvas
* Updating following consult with reporting team
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* splits signal detection rules tests in different spec files
* implements 'creates and activates a new ml rule'
* refactors code
* updates 'select_rule_type' data-test-subj selectors
* Refactor JobStatusBadge
I'm adding a data-test-subj and it seems silly to define it in two
branches.
* Update ML Rule cypress tests
* Updates the test now that the Rule Details have changed
* Adds an additional assertion on the new JobStatusBadge
* keeps code consistency
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Ryland Herrick <ryalnd@gmail.com>
* backend rule monitoring with gap desc, last look back date, and time duration of search after and bulk create operations
* adds new properties to mocked request_response status saved object
* first pass at UI table
* migrate rule monitoring backend to work with refactor of rule executor, fix some formatting stuff on the frontend, update the mapping for gap to be a string instead of a float
* trying to write a test for rules statuses hook
* fixed hooks tests
* fixes merge conflicts from rebase with master
* add columns for indexing and query time lapse
* i18n
* i18n for tabs
* don't change the mappings in ml es_archives
* remove accidental commit of interval change for shell script detection engine rule
* removes inline object from prop
* fix merge conflicts
* backend changes from pr comments
* updates ui changes from pr feedback
* fix tests and add formatting for dates
* remove null from rulesStatuses initial state and replace with empty array
* Add basic help text to ML Job dropdown on Rule form
* Use EUI's preferred layout for form fields
* Add a link to ML in the Job select help text
* Restrict timeline picker to EUI guidelines
Don't display the row as fullwidth, lest the help text wrap across the
entire page. It only looks okay now because it was a short sentence;
adding the ML Job select with its wrapped text caused some visual
weirdness, so this at least makes it consistent.
* Add placeholder option to ML Job dropdown
* Humanize rule type on Rule Description component
This is displayed both on the readonly form view, and the Rule Details
page.
* Add useMlCapabilities hook
This is a base hook that we can combine with our permissions helpers.
* Restrict ML Rule creation to ML Admins
If we're auto-activating jobs on their behalf, they'll need to be an
admin.
* Extract ML Job status helpers to separate file
* WIP: Enrich Rule Description with ML Job Data
This adds the auditMessage as well as a link to ML; actual status is
next
* Display job status as a badge on Rule Details
Also simplifies the layout of these job details.
* Port helper tests to new location
* Fix DescriptionStep tests now that they use useSiemJobs
UseSiemJobs uses uiSettings, so we need to use our kibana mocks here.
* Fix responsiveness of ML Rule Details
The long job names were causing the panel to overflow.
* add import timelines route
* update timeline
* sync with master
* wip
* wip
* update timeline
* overwrite pinned events
* clean up
* init server side unit test
* add server side unit test
* clean up unit test
* unit test
* add unit tests
* clean up
* clean up
* fix unit test
* fix types and unit tests
* rename constants
* fix validation schemas
* review
* fix schemas
* functional test
* skip a functinal test
* add unit tests
* code review
* review with angela
* fix tests
* update modal label
* rename folder to align component name
* fix types
* fix unit test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
* WIP: Check license on simple rule creation
We'll add this to the rest of the routes momentarily.
* Add license checks around all rule-modifying endpoints
This ensures that you cannot create nor update an ML Rule if your
license is not Platinum (or Trial).
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Set crossOrigin to anonymous only on requests from external hosts
* Update x-pack/legacy/plugins/maps/public/connected_components/map/mb/utils.js
Co-Authored-By: Joe Portner <5295965+jportner@users.noreply.github.com>
* 🙇♂️ Lint
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Closes#60527 by adding called to shared observability usage tracking
function when service map page is loaded, and if the user interacts with
it
* trigger usage tracking on specific cytoscape events: node select, object hover
This PR:
1. Adds a callout on the Alerting UI when security is enabled but TLS is not
2. Cleans up displayed error message when creation fails due to TLS being switched off
* Revert "Revert "[APM] Collect telemetry about data/API performance (#51612)""
This reverts commit 6de7f2a62b.
* Update transaction mock data to reflect the type