-
Notifications
You must be signed in to change notification settings - Fork 3
feat: change historical and engagement exclusions #746
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
base: trunk
Are you sure you want to change the base?
Conversation
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.
please, unify this migration in dojo/db_migrations/0269_findingexclusion_engagement_findingexclusion_product_and_more.py, updating field engagement to engagements
| label="Engagements" | ||
| ) | ||
|
|
||
| class Meta: |
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.
delete duplicated class Meta
| cleaned_data = super().clean() | ||
| scope = cleaned_data.get("scope") | ||
|
|
||
| if scope == 'specific': |
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.
enable scope only when the user is_in_reviewer_group
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.
add FindingExclusionLog when expire_finding_exclusion_request
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.
add FindingExclusionLog when expire_finding_exclusion and accept_finding_exclusion_inmediately
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.
add permission Reopen Finding Exclusion when user is_in_approver_group
| return redirect('finding_exclusions') | ||
|
|
||
|
|
||
| def reopen_finding_exclusion_request(request: HttpRequest, fxid: str) -> HttpResponse: |
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.
please in function reopen_finding_exclusion_request update status to Accepted
| current_status="Rejected" | ||
| ) | ||
|
|
||
| create_notification( |
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.
please add maintainer as recipients
| if self.initial.get("practice"): | ||
| self.fields.pop("practice") | ||
|
|
||
| if 'product_type' in self.data: |
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.
please review if data is limited 25 rows
| </div> | ||
| <div id="vuln_desc" class="panel-body finding-description collapse in"> | ||
| <pre>{{ finding_exclusion.reason }}</pre> | ||
| {% if finding_exclusion.engagements %} |
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.
validete engagements is not empty
Description
change historical and engagement exclusions
Fix
How does someone fix the issue in code and/or in runtime?
Checklist: