* moving interval help text as a tooltip on the datepicker
* [Metrics UI] Refactor Snapshot data for use in FilterBar
Co-authored-by: Chris Cowan <chris@chriscowan.us>
* Refactor to use correct kea way of doing reset
The listener is not needed as the actions can set the state themselves
* Wire up reset button for Frequency section
* Extract shareble updateServerSettings method
We use a PATCH call to the server to update the state. We can extract this to a shared actions.updateServerSettings method that can be used in the main toggle on the Synchronization landing page, the Frequency section and the Object and assets section.
As a part of this commit, I refactored `updateSyncEnabled` to use this method as well. In doing so, to simplify things, I removed the granular enabled/disabled message in favor of the generic “"Source synchronization settings updated.” message that the other sections use. The state of the toggle is a good enough indication of the state the server is in.
I also renamed the updateSyncSettings method to updateObjectsAndAssetsSettings, as it was incorrectly named.
* Add schema for schedules
* Use mutable schedule in component
Originally used the immutable version directly on the content source for initial read view. We now use a mutable one found in SynchronizationLogic
* Set local copies of schedule after persisting to server
* Wire up form change handlers
We pass the ‘type’ to the component to inform the logic file which section is being changed. We then update the mutable `schedule` reducer with the correct value
* Wire up save button and persist changes
* Add type and make server prop optional
If there are no blciked windows, we send undefined, so the type has been updated.
* Add unsaved changes propmpt
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* refactor common fields
* add ignore_https_errors and journey filters options
* adjust formatters and normalizers
* adjust content and hide fields when zip url is not defined
* adjust content again
* update tests
* adjust tests
* adjust tests
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* added outcome to backend routes
* adds so resolved property alias_target_id to response
* adds UI portion
* working URL redirect on aliasMatch - todo -> update rule details page refresh button to use SO resolve.
* cleanup
* fix integration tests
* fix jest tests
* cleanup types
* fix eslint.. I think vs code formatted this
* WIP - undo me, working index.test.ts function
* WIP - also undo me, probably
* working test for aliasMatch, need to add test for outcome = conflict
* add conflict callout when SO resolve yields conflict outcome
* code cleanup
* fix type issues
* small cleanup, fix jest test after undoing changes for getFailingRuleStatus
* cleanup tests
* add alias_target_id to response validation too
* unit test changes
* update tests again
* add all dependencies to useEffect and prefer useMemo
* add type cast
* adds integration tests for different outcomes after mocking a migrated rule leading to an aliasMatch and a migrated rule + accidental inserted rule to lead to a conflict. Also removes the outcome property if it is an exactMatch
* remove unused import
* fix test
* functional WIP
* cleanup
* cleanup
* finishing touches to address PR review comments
* remove console.error
* fix bug where spaces was not typed correctly in the plugin start method here https://github.com/elastic/kibana/pull/113983
* 🐛 Fix metric rescale
* 📸 Restored old snapshots
* 🐛 Extend the fix to all scenarios
* 📸 Refresh snapshots for new fix
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* fix missing force now behaviour for v2 reports
* added jest test
* updated jest test snapshot to match removal of forceNow injection from locator params
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* test: rename mock utility
* Tests: artifact grid test coverage
* Fix: CardCompressedHeader should use CardCompressedHeaderLayout
* Tests: ArtifactEntryCollapsibleCard test coverage
* Context Menu adjustments to test ids and to avoid react console errors/warnings
* add test id to truncate wrapper in ContextMenuItemWithRouterSupport
* Tests for ContextMenuWithRouterSupport
* new mocks test utils
* HTTP mocks for Policy Details Trusted apps list page
* tests for policy trusted apps selectors
* Refactor: move reusable fleet http mocks to `page/mocks`
* HTTP mocks for fleet get package policy and Agent status + mock for all Policy Details APIs
* Tests: Policy Details Trusted Apps List
* Moved `seededUUIDv4()` to `BaseDataGenerator` and changed trusted apps generator to use it
* change `createStartServicesMock` to optionally accept `coreStart` as input
* Show api load errors on policy TA list
* [Maps] Fix apis Maps endpoints getTile should return vector tile containing document
* use find instead of if statement
* eslint
* can not use layer.feature.find is layer.feature is not an array
* unskip other test where fix has been merged
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
In the trace samples tab, the trace samples will not be shown if the overall histogram chart fails to load. This PR removes that limitation and will show the trace samples even when the chart fails to load.
* updated Discover getSharingData to accept flag for absolute time
* update snapshots
* simplify fallback title
* more appropriate title?
* remove old translations
* implement PR feedback
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Adding last duration to execution status and returning in alerting routes
* Fixing types
* Adding helper function to format duration
* Returning rule timeout value in list rules API
* Updating rules table to add duration column and tweaks to match mockup
* Updating rules table to add duration column and tweaks to match mockup
* i18n fix
* Only showing duration warning if duration is long
* Unit tests
* i18n fix
* Fixing functional test
* Aligning warning icon
* Reset last duration when rule is disabled then reenabled
* Fixing functional test
* Fixing functional test
* Restoring muted badge. Fixing scss
* Dont show muted badge if rule is disabled
* Moving disabled icontip to right of rule name
* Updating tooltips
* Updating last run
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>