We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 797de82 commit f954176Copy full SHA for f954176
1 file changed
dojo/utils.py
@@ -1965,6 +1965,14 @@ def _create_notifications():
1965
for finding in findings:
1966
total_count += 1
1967
sla_age = finding.sla_days_remaining()
1968
+
1969
+ # get the sla enforcement for the severity and, if the severity setting is not enforced, do not notify
1970
+ # resolves an issue where notifications are always sent for the severity of SLA that is not enforced
1971
+ severity, enforce = finding.get_sla_period()
1972
+ if not enforce:
1973
+ logger.debug(f"SLA is not enforced for Finding {finding.id} of {severity} severity, skipping notification.")
1974
+ continue
1975
1976
# if SLA is set to 0 in settings, it's a null. And setting at 0 means no SLA apparently.
1977
if sla_age is None:
1978
sla_age = 0
0 commit comments