-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jira push error reasons should not be propagated to all channels #11738
base: bugfix
Are you sure you want to change the base?
jira push error reasons should not be propagated to all channels #11738
Conversation
DryRun Security SummaryThe code changes in DefectDojo encompass improvements to the notification system, user interface, and Jira integration, focusing on enhanced security features, better usability, and more reliable integration capabilities through selective notification handling, improved UI functionality, and enhanced Jira synchronization. Expand for full summarySummary: The provided code changes cover several improvements and enhancements to the DefectDojo application, with a focus on the notification system, user interface, and Jira integration. From an application security perspective, these changes introduce several positive improvements:
Overall, these code changes appear to be focused on improving the security, usability, and reliability of the DefectDojo application, which is an important tool for managing application security processes. Files Changed:
Code AnalysisWe ran |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved
Description
Historically the current notification system always propagates all messages to all channels configured for the notification type / source.
Some messages however are not relevant for all channels, for example reasons why findings cannot be pushed to JIRA.
But we do need to display these alerts in the UI because that's the only place where users can see feedback of these errors/warnings.
This PR introduces an
alert_only
flag to indicate that notifications should only be an alert.It does reuse all the existing
NotificationManager
logic around System vs Personal notifications, templating and recipients.This PR also fixes a bug where the "See All Alerts / Clear All Alerts" buttons where not shown due to a Javascript error.
Fixes #11575
Test results
Creating a unit test for this is currently not possible, unless I create a whole bunch of code to Mock more things.
I'm not sure if that's worth it for this small corner case situation.
I did test the different scenario's, and can still create JIRA issues: https://defectdojo.atlassian.net/browse/DOJOTEST-24