-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add planned_remediation_version and effort_for_fixing fields #7850
Add planned_remediation_version and effort_for_fixing fields #7850
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.
There are accessibility issues in these changes.
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.
👏 You fixed the issue(s)! Great work.
dojo/filters.py
Outdated
@@ -1221,6 +1221,7 @@ class FindingFilter(FindingFilterWithTags): | |||
mitigated = DateRangeFilter(label="Mitigated Date") | |||
|
|||
planned_remediation_date = DateRangeOmniFilter() | |||
planned_remediation_version = CharFilter(lookup_expr='icontains', label="Planned remediation version") |
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 localization
dojo/forms.py
Outdated
required=False, | ||
choices=EFFORT_FOR_FIXING_CHOICES, | ||
error_messages={ | ||
'invalid_choice': 'Select valid choice: Low,Medium,High'}) |
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 localization
dojo/forms.py
Outdated
required=False, | ||
choices=EFFORT_FOR_FIXING_CHOICES, | ||
error_messages={ | ||
'invalid_choice': 'Select valid choice: Low,Medium,High'}) |
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 localization
dojo/forms.py
Outdated
required=False, | ||
choices=EFFORT_FOR_FIXING_CHOICES, | ||
error_messages={ | ||
'invalid_choice': 'Select valid choice: Low,Medium,High'}) |
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 localization
@@ -94,6 +94,10 @@ <h3 class="has-filters"> | |||
<input id="id_bulk_date" name="date" type="date" alt="Select the date the Findings were discovered"/><br/> | |||
<label style="display: block" for="id_bulk_planned_remediation_date">Planned Remediation Date</label> | |||
<input id="id_bulk_planned_remediation_date" name="planned_remediation_date" type="date" alt="Select the date the Finding will be remediated"/><br/> | |||
|
|||
<label style="display: block" for="id_bulk_planned_remediation_version">Planned remediation version</label> |
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 localization
@@ -252,6 +252,9 @@ <h3 class="pull-left finding-title"> | |||
{% if finding.planned_remediation_date %} | |||
<th>Planned Remediation</th> | |||
{% endif%} | |||
{% if finding.planned_remediation_version %} | |||
<th>Planned Remediation version</th> |
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 localization
@@ -526,6 +532,9 @@ <h3 class="pull-left finding-title"> | |||
{% if 'is_finding_groups_enabled'|system_setting_enabled and finding.finding_group %} | |||
<th>Group</th> | |||
{% endif %} | |||
{% if finding.effort_for_fixing %} | |||
<th>Effort for fixing</th> |
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 localization
dojo/templates/dojo/view_test.html
Outdated
@@ -553,6 +553,8 @@ <h4 class="has-filters"> Findings ({{findings.total_count}}) <small>{{ test.id|g | |||
<label><b>Planned Remediation Date</b></label><br/> | |||
<input id="id_bulk_planned_remediation_date" class="datepicker form-control hasDatepicker" name="planned_remediation_date" type="date" | |||
alt="Select the date the Finding will be remediated"/><br/> | |||
<label style="display: block">Planned remediation version</label> |
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 localization
e78d051
to
d1be538
Compare
@shipko tests finally went through after many reruns :) . All good to go? thanks |
@ptrovatelli Good job! |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@ptrovatelli I am a little nervous to attempt to fix these conflicts. They are pretty large chunks 😬 |
b635417
to
a2834b2
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
a2834b2
to
c6e9ed5
Compare
@Maffooch all good now :) |
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
Add 2 fields:
Test results
tests.pdf