Skip to content

Conversation

@iralgarc
Copy link

Description

change historical and engagement exclusions

Fix

How does someone fix the issue in code and/or in runtime?

Checklist:

  • The pull request is complete according to the guide of contributing of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes

Copy link
Collaborator

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:
Copy link
Collaborator

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':
Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Collaborator

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:
Copy link
Collaborator

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(
Copy link
Collaborator

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:
Copy link
Collaborator

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 %}
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants