* Create new atomic params type for status alerts.
* Update executor params typing to support both alert params types.
* Update snapshot for alert factory function.
* Fix broken types and refresh snapshots.
* Clean up naming of action/selector.
* Fix a bug and add tests.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Switch from `EuiFieldNumber` to `EuiFieldText` on settings page.
* Add unit tests for cert form fields.
* Improve validation.
* Add additional server-side settings check with tests.
* Only create number object for validation when value is string.
* Clean up validation function.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* add error if filter index pattern is gone
* docs change - why?
* Fix i18n
* Added a functional test for broken filters (field + index pattern)
* Clarify readme
* Moved readme
* New warning status
* Remove getAll
* git pull upstream master
* Fix translation files
* Fix merge
* added filterbar texts
* disabled correction
* Disable check in maps test until #64861 is resolved
* Fix tests, warning state is not disabled.
* Adjust warning filter - ignore filters from "foreign" index pattern, that are still applicable
* Add an additional unrelaeted filter test
* Update src/plugins/data/public/ui/filter_bar/_global_filter_item.scss
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
* Update src/plugins/data/public/ui/filter_bar/_global_filter_item.scss
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
* Fixed test data
* Revert mapping
* Update data with missing test
* Update test to match data
* Code review
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
LogPositionState doesn't always reevaluate the value of `endTimestamp`
when live stream is on. The [dependencies][1] for it to change rely on the
scroll position to update. If there's less than one scroll page or the
previous API call didn't return any entries, the `endTimestamp` would
not update.
We force `Date.now()` as an `endTimestamp` on the API call to ensure it
always gets the latest entries possible, regardless of the state. This
introduces some inconsistency that will be fixed once work beings on #65493.
[1]: fe4c164681/x-pack/plugins/infra/public/containers/logs/log_position/log_position_state.ts (L160-L173)
* Update synchronous actions in patchRules
This method was typed to accept actions, but it was not doing anything
with them. This was mainly a "bug by omission" so I'm simply adding
unit tests for regression purposes.
* Allow synchronous actions to be patched either individually or in bulk
Now that patchRules uses this field, we simply need to pass it.
Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
## Summary
Fixes a bug in timeline-based views, (e.g. the Host Events table), where a column would revert back to it's original position after being dragged and dropped to a new position.
Only timeline-based views were effected, not the timeline itself.
To reproduce:
1) On the SIEM Overview page, click the `View events` button
2) Drag and drop any column in the Events table to a new position
**Expected Result**
- The column is relocated to the position where it was dropped
**Actual Result**
- The column reverts to it's original position
## Testing
- This PR adds a Cypress test for this scenario
- The new test was successfully run (at least) 10 times via `node x-pack/plugins/siem/scripts/loop_cypress_tests.js`
- This fix was desk tested in:
- Chrome `83.0.4103.61`
- Firefox `76.0.1`
- Safari `13.1`
* [Maps] fix mapbox glyphs error when EMS access is turned off
* santize range parameter
* add api test
* clean up mapbox view
* add jest test for getGlyphsUrl
* add license file
* remove unneeded font files
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* modifies 'Creates and activates a new custom rule' test to cover 'import query from saved timeline' functionality
* adds missing files
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Reporting]: Move router + license checks to new platform (#66331)
* WIP: Move routes to new API, license and other checks inbound
* Move license checks over to np licensing observable
* Fix license checks + remove older modules
* Fixing check_license tests, move to TS/Jest
* Fix licensing setup for mocks
* Move job.test.ts over to np
* WIP: move user checks to higher-order func
* Move more handler logic over to Response factory vs Boom
* Major refactor to consolidate types, remove facades, and udpate helpers
* Fix validation for dates in immediate exports
* Linter fix on check license test
* Fix job generation tests
* Move deps => setupDeps
* fix api test
* fix jobs test
* authorized_user_pre_routing and tests
* Fixing duplicate identifiers
* Fix licensing implementation changes
* WIP: Moving license over to async/observables
* Fix disabled-security case
* finish auth_user_pre_routing cleanup - no more license check
* WIP: Fixing final api tests
* Trying to get schema differences in alignment
* Reverting back to previous generation handler
* Fix final API tests
* Final API test fixes, few more hardening tests and better error messages
* Simplify lower-level module implementation (core only interface) + test updates
* Push some core logic into plugin
* Move some core logic up to plugin
* Marking private setupDeps + downstream fixes
* revert logger as a param
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
# Conflicts:
# x-pack/legacy/plugins/reporting/export_types/printable_pdf/server/create_job/index.ts
# x-pack/legacy/plugins/reporting/server/routes/generation.ts
* Add back in legacy /viz /search and /dashboard routes
* Add back in and fix compatibility shim/tests
* [Lens] Warn if leaving with unsaved visualization
* Made confirmation logic more robust and add title
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
### Summary
- Updates exception list hooks to include filtering options and updates corresponding unit tests.
- Adds refreshList callback to hook that fetches the list and its items
- Updates hooks tests to test onError callback
- Updates tests to use type checking more effectively per feedback from @FrankHassanabad (thanks!)
* [Lens] Allow visualizations to provide a dimension editor
* Update to tab style
* Remove table update
* Update class name
* typecheck fix
* Add test
* Require each dimension group to enable editor
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>