* Create actions plugin (#35679)
* Basic alerting plugin with actions
* Remove relative imports
* Code cleanup
* Split service into 3 parts, change connector structure
* Ability to disable plugin, ability to get actions
* Add slack connector
* Add email connector
* Ability to validate params and connector options
* Remove connectorOptionsSecrets for now
* Fix plugin config validation
* Add tests for slack connector
* Default connectors register on plugin init, console renamed to log, slack to message_slack
* Add remaining API endpoints for action CRUD
* Add list connectors API
* Change actions CRUD APIs to be closer with saved objects structure
* WIP
* Fix broken tests
* Add encrypted attribute support
* Add params and connectorOptions for email
* WIP
* Remove action's ability to have custom ids
* Remove ts-ignore
* Fix broken test
* Remove default connectors from this branch
* Fix API integration tests to use fixture connector
* Rename connector terminology to action type
* Rename actionTypeOptions to actionTypeConfig
* Code cleanup
* Fix broken tests
* Rename alerting plugin to actions
* Some code cleanup and add API unit tests
* Change signature of action type service execute function
* Add some plugin api integration tests
* Fix type check failure
* Code cleanup
* Create an actions client instead of an action service
* Apply Bill's PR feedback
* Fix broken test
* Find function to have destructured params
* Add tests to ensure encrypted attributes are not returned
* Fix broken test
* Add tests for validation
* Ensure actions can be updated without re-passing the config
* Remove dead code
* Test cleanup
* Fix eslint issue
* Apply Peter's PR feedback
* Code cleanup and fix broken tests
* Apply Brandon's PR feedback
* Add namespace support
* Fix broken test
* Pass services to action executors (#37194)
* Pass services to action executors
* Fix tests
* Apply PR feedback
* Apply PR feedback pt2
* Cleanup actions plugin (#37250)
* Cleanup actions, move code from alerting plugin PR
* Rename service terminology to registry
* Use static encryption key for encrypted attributes plugin inside of tests
* Empty data after create test is done running
* Fix type checks
* Fix inconsistent naming
* add server log action for alerting (#37530)
adds the first "builtin" alertType for performing a `server.log()`
* Create alerting plugin (#37043)
* WIP
* Rename fire function and remove @ts-ignore in all places
* Change naming in alerting service
* Remove alert instance class for now, support interval configuration
* Cleanup TS
* Split alerting between registry and client
* Use saved object alongside task manager instance
* Add remaining alerting APIs
* Change create structure
* Rename some variables, change actionGroups structure
* Use handlebars for templating strings at fire time
* Fix params given to alert type execute function
* Use alert instance class
* Alert instances support meta attributes
* Move alert instances deserialization
* Change interval to be ms
* Rename actions es archive
* Fix tests to use encrypted esArchive for action record
* Add create alert test to demo end to end flow
* Fix type check issue
* Alerts to use references to action objects
* Only update task manager tasks after saved objects are fully updated
* Use scope in task manager
* Fix type check
* Use task manager to execute actions
* Convert ids into references and back
* Apply PR feedback
* Fix broken test
* Fix some bugs
* Fix test errors
* Alert interval to be previous runAt + interval instead of now + interval
* Add range support
* Remove extra line
* Cleanup
* Add alert_instance.test.ts
* Add alert_type_registry.test.ts
* Move tests around
* Create generic task manager mock
* Add note about saved objects client mock
* Create alert_type_registry.mock.ts
* Add alerts_client.test.ts
* Add create_alert_instance_factory.test.ts
* Add create_fire_handler.test.ts
* WIP
* Fix get_create_task_runner_function.test.ts and make test pass
* Make get_create_task_runner_function.test.ts 100% coverage
* Add unit tests for routes
* Move files around
* Created transform_action_params.ts
* Add get_next_run_at.ts
* Add comment explaining why we copy nextRunAt
* Re-use state within alert instance
* Finalize code coverage in unit tests
* Create base api integration tests
* Add a test that ensures end to end functionality of an alert
* Fix ui capabilities test
* Fix broken plugin api integration test
* Fix jest tests with new saved objects client
* Fix broken integration tests
* Change api integration test fixture to make more sense, add functions for future tests
* Move alerts integration testing into own file, prep to add more tests
* Add tests to ensure failed task instances get retried
* Add get_create_task_runner_function.test.ts for actions, create encrypted saved objects mock
* Add action validation tests
* Ensure action type validation occurs on update
* Test 400 on unregistered alert types
* Ensure alertTypeId can't be updated
* Add validation test for alert create / update
* Fix broken checks / tests
* Skip failing test for now
* Cleanup jest tests
* Ensure action objects can be updated while keeping encrypted attributes readable
* Remove partial update sopport, remove ability to change actionTypeId, require config
* Ensure actionTypeConfig is validated on create and update
* Add alertTypeParams validation support
* Fix failing tests
* Ensure alert cleanup errors don't replace the original error
* Pass callCluster as a service to alerts and actions
* Only pass log to alerts client
* Pass savedObjectsClient as a service to alerting and actions
* Fix failing tests
* Remove range support, provide when current and previous task got scheduled
* Ensure Joi validation happens before every execute
* Remove skipped tests, to be done in future PR
* Apply self feedback pt1
* Apply self feedback pt2
* Fix broken tests
* Apply PR feedback
* PR feedback pt1
* Apply security team PR feedback
* PR feedback pt1
* PR feedback pt2
* PR feedback pt3
* Fix broken tests
* Fix callCluster to have signature
* Revert f11a6aeb06
* PR feedback pt4
* Remove __jest__ folders
* PR feedback pt5
* Fix Joi from leaking secrets
* Fire instance actions in parallel instead of series
* Fix failing jest tests
* Accept core api changes
* Fix saved objects client mock
* PR feedback pt1
* Fix eslint issues
* Throw error when alert instance already fired (#39251)
* Throw error when alert instance already fired
* shouldFire doesn't need its own boolean value
* Actions & alerting getting started user guides (#39093)
* Initial user guides
* Cleanup
* Typos, example changes
* Switch to tables, use ordered list for usage
* Start docs around alert instances and templating
* Documentation changes
* Some adjustments
* Apply PR feedback
* Apply suggestions from code review
Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
* PR feedback pt2
* Provide better examples for alert types
* Apply PR feedback
* Update README locations
* [Maps] sybmolize points with maki icons
* add from for selecting symbol
* add from for selecting symbol
* get icons working for static colors
* static icon sizing
* refacto symbol_utils
* timing issue
* use SDF icons
* dynamic iconSize
* set icon-anchor
* display symbol icon in map legend
* add unit tests for VectorIcon
* set icon fill based on dark mode
* remove unused file
* fix jest tests
* set icon-opacity
* use size style to configure icon-image small or large
* fix queryRadius error by just hiding other point layer instead of removing
* remove console statement on error
* use maki icon size constants
* add retry around opening set view popover for flaky test
* Changing the Spaces management section to behave like the other FC
controlled sections
* Adding those glorious tests and fixing a bug
* Fixing some test descriptions
* Making the mergeCapabilities operation emulate the old behavior
* Fixing privileges test with the addition of the new action
* Updating jest snapshot
* Adding tests, preventing additional clobbering
* Changing requireUICapability to use management.kibana.spaces
* top hits
* fetch top hits
* trigger load if top hits configuration changes
* text clean-up
* add functional tests for top hits
* add functional test verify configuration updates re-fetch data
* show entity source tooltip message for top hits
* include entities cound in results trimmed message
* pass fields needed for data driven styling and joins
* fix i18n problem
* more i18n changes
* reverse hits list so most recent events are drawn on top
* review feedback
* set meta to null when no sourceDataRequest
* Optimized content to be more vertical for resizing consistancy
* Fixed snapshots
* Feedback changes
* Update _summary_status.scss
* Fixed column order for testing
* skip and adjust functional tests for Firefox
* downgrade geckodriver to 0.22.0
* [ftr] add firefox specific config file
* remove hard coded firefox adjustments
* remove firefox specific screenshot directory
* run functional tests in firefox in x-pack
* pass the logger to readConfigFile()
* rename local var
* skip xpack firefox config
* run xpack firefox functional tests in separate command
* update report name for XPack firefox results
* adjust viz shared item test
* skip shared item test
* [test/feature_controls] increase timeout to 20 sec & use forceLogout
* FF timeout on TSVB, refresh page on failure for url navigation
* [feature_controls/visualize_security] increase timeout to 20 sec
* skip dev_tools_spaces tests on FF
* run all groups 3 times
* skip more func tests
* skip more tests
* skip all feature controls tests for Firefox
* revert back changes in feature controls tests
* rename xpack report for chrome
* skip tile map for FF, wait for render before saving
* Revert "run all groups 3 times"
This reverts commit 12b4f69627.
* revert refresh on login
* apply feedback
* Split ciGroup3 and ciGroup5 (#36928)
* split large x-pack ciGroup5 into 3 groups
* split large x-pack ciGroup3 into 2 groups
* Add groups to the jenkins xpack ci group file
* Re-level some more work
* move es_search_source test to new describe block
* move es_search_source to first in ciGroup7
* move to x-pack-ciGroup6
* Improve the functional test of code (#35869)
* [Code] enable integration test
* [Code] Improve functional test
* disable flaky test #36495 (#36497)
* [Code] skip explore-repository functional test for code (#36926)
* skip failing tests
* Initial code to force collectors to indicate when they are ready
* Add and fix tests
* Remove debug
* Add ready check in api call
* Fix prettier complaints
* Return 503 if not all collectors are ready
* PR feedback
* Add retry logic for usage collection in the reporting tests
* Fix incorrect boomify usage
* Fix more issues with the tests
* Just add debug I guess
* More debug
* Try and handle this exception
* Try and make the tests more defensive and remove console logs
* Retry logic here too
* Debug for the reporting tests failure
* I don't like this, but lets see if it works
* Move the retry logic into the collector set directly
* Add support for this new collector
* Localize this
* This shouldn't be static on the class, but rather static for the entire runtime
* [Maps] fix flaky checking for layer removed in functional tests
* run x-pack-ciGroup3 40 times to test for flakiness
* use retry.waitFor instead of retry.try
* Revert "run x-pack-ciGroup3 40 times to test for flakiness"
This reverts commit 9136b7717c.
* show grab and edit buttons when hovering over layer name
* display layer details when layer name is clicked
* add range to dynamic style property state
* render dynamic ranges in TOC details
* render symbol size and border width header in legend
* simplify VectorStyle.getIcon
* removed unused component
* open TOC details on map load
* save open TOC details state in embeddable config
* show gradients for dynmaic fill color icon
* round corners of dynamic icon if points only
* add tooltip to legend label
* add edit panel action to action panel
* add functional test for details in legend
* fix broken gis_page function doesLayerExist
* add unit tests for VectorStyle.getDescriptorWithDynamicRanges
* open actions menu on layer title click, add arrow up/down for togging layer details
* Design cleanup of layers panel (#31)
* fix functional test
* update jest snapshots
* refactor StylePropertyLegendRow to use same function to render lineWidth and iconSize legends
* fix functional test
* fix another functional test
* make escapeLayerName function instead of instance method
* move _isLayerDetailsOpen into prop from redux connector
* remove index.js file
* do not show legend details toggle when layer has not legend details
* rename FillableVector to FillableRectangle
* use mixin pattern instead of encapulated function call
* Modify the relationships API and UI
* Remove type validation on export
* Update relationship test snapshots
* Change relationships table titles
* Change relationships UI to share one table
* Add server side logic to inject meta data into saved objects from plugins
* Manually enable each type of saved object to support
* Use injected vars to determine what types are import / exportable
* Fix some broken tests
* Remove unused translations
* Fix relationships mocha tests
* Remove tests that ensured types are restricted, functionality removed
* Move kfetch logic into separate file
* Add inAppUrl to missing types
* Add tooltip to management table titles that aren't links
* Make relationships screen support filtering by type
* Fix failing tests
* Add refresh support for inAppUrls
* Add error notifications when export API call fails
* Add relationship direction
* Fix broken tests
* Remove graph workspace from import / export
* Use parent / child terminology for relationships
* Use direct relationship terminology
* Flip view / edit logic in saved object management app
* Make config saved object redirect to advanced settings
* Fix broken tests
* Remove unused translations
* Code cleanup
* Add tests
* Add fallback overwrite confirmation object title
* Enforce supported types on import, export and resolve import errors
* Fix broken tests
* Fix broken tests pt2
* Fix broken tests pt3
* Test cleanup
* Use server.decorate to access savedobjectschemas
* Fix some broken tests
* Fix broken tests, add new title to relationships screen
* Fix some broken tests
* Handle dynamic versions
* Fix inAppUrl structure in tests
* Re-use generic canGoInApp
* Fix broken tests
* Apply maps PR feedback
* Apply PR feedback pt1
* Apply PR feedback pt2
* Add savedObjectsManagement to uiExports
* Fix broken tests
* Fix encodeURIComponent implementation
* Merge 403 and unsupported type errors into single error
* Apply suggestion
* Remove import / exportable by default, opt-in instead
* Fix type config to show up properly in the table
* Change config type title and fix tests
* Remove isImportableAndExportable where set to false (new default)
* Remove comments referencing to authorization
* Add unit tests for spaces
* Add unit tests for security plugin
* Change can* signature to be the same as their equivalent function, apply PR feedback
* Cleanup git diff
* Revert "Change can* signature to be the same as their equivalent function, apply PR feedback"
This reverts commit b657ac8fc1.
* Revert "Add unit tests for security plugin"
This reverts commit 6287a8cecf.
* Revert "Add unit tests for spaces"
This reverts commit 2674a9d78f.
* Revert "Remove comments referencing to authorization"
This reverts commit 9618c2cc3a.
* Revert "Merge 403 and unsupported type errors into single error"
This reverts commit 99aea10c0f.
* Add CUSTOM_ELEMENT_TYPE for import / export
* Fix broken tests
* Fix broken tests pt2
* Prevent crashing app when inAppUrl is undefined