* Define minimum license required for each action type (#58668)
* Add minimum required license
* Require at least gold license as a minimum license required on third party action types
* Use strings for license references
* Ensure license type is valid
* Fix some tests
* Add servicenow to gold
* Add tests
* Set license requirements on other built in action types
* Use jest.Mocked<ActionType> instead
* Change servicenow to platinum
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Make actions config mock and license state mock use factory pattern and jest mocks (#59370)
* Add license checks to action HTTP APIs (#59153)
* Initial work
* Handle errors in update action API
* Add unit tests for APIs
* Make action executor throw when action type isn't enabled
* Add test suite for basic license
* Fix ESLint errors
* Fix failing tests
* Attempt 1 to fix CI
* ESLint fixes
* Create sendResponse function on ActionTypeDisabledError
* Make disabled action types by config return 403
* Remove switch case
* Fix ESLint
* Add license checks within alerting / actions framework (#59699)
* Initial work
* Handle errors in update action API
* Add unit tests for APIs
* Verify action type before scheduling action task
* Make actions plugin.execute throw error if action type is disabled
* Bug fixes
* Make action executor throw when action type isn't enabled
* Add test suite for basic license
* Fix ESLint errors
* Stop action task from re-running when license check fails
* Fix failing tests
* Attempt 1 to fix CI
* ESLint fixes
* Create sendResponse function on ActionTypeDisabledError
* Make disabled action types by config return 403
* Remove switch case
* Fix ESLint
* Fix confusing assertion
* Add comment explaining double mock
* Log warning when alert action isn't scheduled
* Disable action types in UI when license doesn't support it (#59819)
* Initial work
* Handle errors in update action API
* Add unit tests for APIs
* Verify action type before scheduling action task
* Make actions plugin.execute throw error if action type is disabled
* Bug fixes
* Make action executor throw when action type isn't enabled
* Add test suite for basic license
* Fix ESLint errors
* Stop action task from re-running when license check fails
* Fix failing tests
* Attempt 1 to fix CI
* ESLint fixes
* Return enabledInConfig and enabledInLicense from actions get types API
* Disable cards that have invalid license in create connector flyout
* Create sendResponse function on ActionTypeDisabledError
* Make disabled action types by config return 403
* Remove switch case
* Fix ESLint
* Disable when creating alert action
* Return minimumLicenseRequired in /types API
* Disable row in connectors when action type is disabled
* Fix failing jest test
* Some refactoring
* Card in edit alert flyout
* Sort action types by name
* Add tooltips to create connector action type selector
* Add tooltips to alert flyout action type selector
* Add get more actions link in alert flyout
* Add callout when creating a connector
* Typos
* remove float right and use flexgroup
* replace pixels with eui variables
* turn on sass lint for triggers_actions_ui dir
* trying to add padding around cards
* Add callout in edit alert screen when some actions are disabled
* improve card selection for Add Connector flyout
* Fix cards for create connector
* Add tests
* ESLint issue
* Cleanup
* Cleanup pt2
* Fix type check errors
* moving to 3-columns cards for connector selection
* Change re-enable to enable terminology
* Revert "Change re-enable to enable terminology"
This reverts commit b497dfd6b6
.
* Add re-enable comment
* Remove unecessary fragment
* Add type to actionTypeNodes
* Fix EuiLink to not have opacity of 0.7 when not hovered
* design cleanup in progress
* updating classNames
* using EuiIconTip
* Remove label on icon tip
* Fix failing jest test
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
* Add index to .index action type test
* PR feedback
* Add isErrorThatHandlesItsOwnResponse
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
90 lines
2.5 KiB
YAML
90 lines
2.5 KiB
YAML
files:
|
|
include:
|
|
- 'src/legacy/core_plugins/metrics/**/*.s+(a|c)ss'
|
|
- 'src/legacy/core_plugins/timelion/**/*.s+(a|c)ss'
|
|
- 'src/legacy/core_plugins/vis_type_vislib/**/*.s+(a|c)ss'
|
|
- 'src/legacy/core_plugins/vis_type_xy/**/*.s+(a|c)ss'
|
|
- 'x-pack/legacy/plugins/rollup/**/*.s+(a|c)ss'
|
|
- 'x-pack/legacy/plugins/security/**/*.s+(a|c)ss'
|
|
- 'x-pack/legacy/plugins/canvas/**/*.s+(a|c)ss'
|
|
- 'x-pack/plugins/triggers_actions_ui/**/*.s+(a|c)ss'
|
|
ignore:
|
|
- 'x-pack/legacy/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss'
|
|
- 'x-pack/legacy/plugins/lens/**/*.s+(a|c)ss'
|
|
- 'x-pack/legacy/plugins/maps/**/*.s+(a|c)ss'
|
|
rules:
|
|
quotes:
|
|
- 2
|
|
-
|
|
style: 'single'
|
|
# } else { style on one line, like our JS
|
|
brace-style:
|
|
- 2
|
|
-
|
|
style: '1tbs'
|
|
variable-name-format:
|
|
- 2
|
|
-
|
|
convention: 'camelcase'
|
|
# Needs regex, right now we ignore
|
|
class-name-format: 0
|
|
# Order how you please
|
|
property-sort-order: 0
|
|
hex-notation:
|
|
- 2
|
|
-
|
|
style: 'uppercase'
|
|
mixin-name-format:
|
|
- 2
|
|
-
|
|
allow-leading-underscore: false
|
|
convention: 'camelcase'
|
|
# Use none instead of 0 for no border
|
|
border-zero:
|
|
- 2
|
|
- convention: 'none'
|
|
force-element-nesting: 0
|
|
# something { not something{
|
|
space-before-brace:
|
|
- 2
|
|
force-pseudo-nesting: 0
|
|
# 2 spaces for indentation
|
|
indentation: 2
|
|
function-name-format:
|
|
- 2
|
|
-
|
|
allow-leading-underscore: false
|
|
convention: 'camelcase'
|
|
# This removes the need for ::hover
|
|
pseudo-element: 0
|
|
# ($var / 2) rather than ($var/2)
|
|
space-around-operator: 2
|
|
# We minify css, so this doesn't apply
|
|
no-css-comments: 0
|
|
# We use _ (underscores) for import path that don't directly compile
|
|
clean-import-paths: 0
|
|
# Allows input[type=search]
|
|
force-attribute-nesting: 0
|
|
no-qualifying-elements:
|
|
- 2
|
|
-
|
|
# Allows input[type=search]
|
|
allow-element-with-attribute: 1
|
|
# Files can end without a newline
|
|
final-newline: 0
|
|
# We use some rare duplicate property values for browser variance
|
|
no-duplicate-properties:
|
|
- 2
|
|
-
|
|
exclude:
|
|
- 'font-size'
|
|
- 'word-break'
|
|
# Put a line-break between sections of CSS, but allow quicky one-liners for legibility
|
|
empty-line-between-blocks:
|
|
- 2
|
|
-
|
|
allow-single-line-rulesets: 1
|
|
# Warns are nice for deprecations and development
|
|
no-warn: 0
|
|
# Transition all is useful in certain situations and there's no recent info to suggest slowdown
|
|
no-transition-all: 0
|