Make workflow/trigger actionlog consistent with other resources
Change the default severity to notice to show creates, updates, deletes, and undeletes in the production ruleset.
This commit is contained in:
+4
-4
@@ -266,7 +266,7 @@ func TriggerActionCreate(props ...*triggerActionProps) *triggerAction {
|
||||
resource: "automation:trigger",
|
||||
action: "create",
|
||||
log: "created {{trigger}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
@@ -286,7 +286,7 @@ func TriggerActionUpdate(props ...*triggerActionProps) *triggerAction {
|
||||
resource: "automation:trigger",
|
||||
action: "update",
|
||||
log: "updated {{trigger}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
@@ -306,7 +306,7 @@ func TriggerActionDelete(props ...*triggerActionProps) *triggerAction {
|
||||
resource: "automation:trigger",
|
||||
action: "delete",
|
||||
log: "deleted {{trigger}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
@@ -326,7 +326,7 @@ func TriggerActionUndelete(props ...*triggerActionProps) *triggerAction {
|
||||
resource: "automation:trigger",
|
||||
action: "undelete",
|
||||
log: "undeleted {{trigger}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
|
||||
@@ -7,7 +7,7 @@ import:
|
||||
- github.com/cortezaproject/corteza/server/automation/types
|
||||
|
||||
# Default sensitivity for actions
|
||||
defaultActionSeverity: info
|
||||
defaultActionSeverity: notice
|
||||
|
||||
# default severity for errors
|
||||
defaultErrorSeverity: error
|
||||
|
||||
+5
-5
@@ -309,7 +309,7 @@ func WorkflowActionCreate(props ...*workflowActionProps) *workflowAction {
|
||||
resource: "automation:workflow",
|
||||
action: "create",
|
||||
log: "created {{workflow}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
@@ -329,7 +329,7 @@ func WorkflowActionUpdate(props ...*workflowActionProps) *workflowAction {
|
||||
resource: "automation:workflow",
|
||||
action: "update",
|
||||
log: "updated {{workflow}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
@@ -349,7 +349,7 @@ func WorkflowActionDelete(props ...*workflowActionProps) *workflowAction {
|
||||
resource: "automation:workflow",
|
||||
action: "delete",
|
||||
log: "deleted {{workflow}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
@@ -369,7 +369,7 @@ func WorkflowActionUndelete(props ...*workflowActionProps) *workflowAction {
|
||||
resource: "automation:workflow",
|
||||
action: "undelete",
|
||||
log: "undeleted {{workflow}}",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
@@ -389,7 +389,7 @@ func WorkflowActionExecute(props ...*workflowActionProps) *workflowAction {
|
||||
resource: "automation:workflow",
|
||||
action: "execute",
|
||||
log: "{{workflow}} executed",
|
||||
severity: actionlog.Info,
|
||||
severity: actionlog.Notice,
|
||||
}
|
||||
|
||||
if len(props) > 0 {
|
||||
|
||||
@@ -7,7 +7,7 @@ import:
|
||||
- github.com/cortezaproject/corteza/server/automation/types
|
||||
|
||||
# Default sensitivity for actions
|
||||
defaultActionSeverity: info
|
||||
defaultActionSeverity: notice
|
||||
|
||||
# default severity for errors
|
||||
defaultErrorSeverity: error
|
||||
|
||||
Reference in New Issue
Block a user