### Summary
Minor updates to the All Rules monitoring table. Includes front end and backend changes:
- Displays dashes in the monitoring table when no values are present
- Displays `lastLookBackDate` only if the rule indexes events into the signals index, otherwise `lastLookBackDate` is set to null
* convert eslint scripts into TS
* update settings for BWC
* add script updating styles to pretter v2
* use default prettier config
* run npx once, point to the correct head branch, do not add to git
* throw if run script not on a clear branch
* run in a batch, add logging
The needed change is to rely on history as source of truth for location instead of window.location.
btw, This makes possible to test state syncing utils integration using createMemoryHistory()
One issue was discovered after this change:
When switching from context to discover url was incorrect. history.location inside state syncing utils didn't get the last update. This happened, because history instance created in discover wasn't used in context app and when all listeners unsubscribed from it - it stopped receiving location updates. To fix this I just reused one history instance in discover, context and their kbnUrlTracker
Improves the messaging when the Pager Duty action has trouble parsing the timestamp field and adds trimming on the timestamp's field to make us more flexible in handling the parsing and hence more likely to be forgiving of the input by the user.
As the timestamp relies on context variables provided via mustcahe templates, we can't reliably validate this field at alert creation time.
We address by:
1. Trimming the edges, which is required when parsing a date, should help prevent accidental spaces from breaking the parsing.
2. Checking for a mustache template on the client side and if there are none - we validate for a valid timestamp when the action is created.
* Enable include/exclude in Terms agg for numeric fields
Closes#4576
* Added a new component that allows adding multiple values
* Added some validation to include/exclude fields
* Removed unnecessary comments and accepted API changes
* Fixed i18n ID issue
* Refactored some code and fixed discard button issue
* Added SimpleNumberList component and value parsing in include_exclude.tsx
* Fixed merge conflict
* Fixed merge conflict
* Refactored some code
* Got rid of lodash isArray, added Number.isFinite where needed and changed symbol of string join and array split
* Added some more test cases to cover migrate_include_exclude_format write method
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
## Summary
* Adds exact check to cause failures whenever a schema is using t.exact({}) and that schema has extra keys at any level of the schema hierarchy.
* Fixes the exact check to work with unknown in a safe way and only do recursive checks for keys only when the unknown is an Object.
* Changes the output to use a format error mechanism which pushes all the errors onto one line to be consistent with the response errors. We can change this as a team to whatever we want I just put it to a comma separator as that is what the responses type checks were using downstream.
* Moves the downstream code up higher to be used within SIEM for timeline and detection engine.
* Adds tests in TDD/red light/green light fashion where I fail the extra key checks first and then pass them second.
### Checklist
Delete any items that are not applicable to this PR.
- [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
* Move actions over
* Move connected components over
* Move components over
* Move selectors over
* Move embeddables over. Set up legacy presence to keep legacy maps embeddables working
* Move angular and services over. Some additional top-level files
* Some file moves. Move styles over to NP
* Handle feature catalogue entry in NP. Add plugin deps to kibana.json
* Move vis registration to NP
* Clean up linting comments. Add linting comments to route controller. Move common to NP
* Add back in i18n context for embeddable
* Fix jest test paths. Fix TS lint errors
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Adds a new xpack.reporting.csv.escapeFormulaValues boolean to auto-escape potentially bad cells
* Treat csvs with formulas differently than those that aren't escaped
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* use fixed table layout
* added markup structure / css for overview page
* add flyout and links to other pages
* add "alpha" messaging at bottom of all pages
* attrs instead of defaultProps on styled components
* use FormattedMessage on alpha messaging component
* remove leftover code
* remove unused import
* [DOCS] Alerting PagerDuty benefits
* [DOCS] Fixes broken link
* [DOCS] Organization changes
* [DOCS] Changes to meet template and incorporate review comments
* [DOCS] Fixed formatting of bulleted list
* [DOCS] Incorporates review comments
* Update docs/user/alerting/action-types/pagerduty.asciidoc
Co-Authored-By: Mike Côté <mikecote@users.noreply.github.com>
* [DOCS] Fixes naming and other formatting issues
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
* refactor: 💡 use inspector service in visualizations to open it
* refactor: 💡 remove expressions plugin dependency on inspector
* test: 💍 fix Jest mock
* fix: 🐛 remove Inspectore from Expressions plugin dependency inf
* docs: ✏️ add JSDocs for createStartServicesGetter() method
* test: 💍 fix TypeScript errors in expressions mocks
* move old code to legacy folder
* Use search service directly from search source
* Move get search params to fetch folder
* Delete search strategy folder
* Doc update
* Minor cleanups
* Moved es client to legacy folder
* Clean up some unused code (isViable, old search function)
* Updated tests
* strings update
* Fix jest test
* re-arrange runSearch function
* re-arrange runSearch function
* fix jest tests
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Refresh index and also show more info to user
* updated type
* updated type
* updated test
* updated formatting
* update text
* updated types
* updated translation
* update
* fixed types
* updated code
* fixed types
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [Alerting] Documentation for how to pre-configure connectors.
* small fix
* Adjusted titles
* Fixed wrong link
* fixed warning
* Fixed ci issues
* [DOCS] Edits preconfigured connector docs
* Replaced words 'pre-configured' with 'preconfigured'
Co-authored-by: gchaps <chappell_5@yahoo.com>