Skip to content

Commit

Permalink
fix mitigated filter on UI and enhanced naming for on & after at API
Browse files Browse the repository at this point in the history
  • Loading branch information
quirinziessler committed Jun 19, 2024
1 parent 4463582 commit 1b421fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dojo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1416,9 +1416,9 @@ class ApiFindingFilter(DojoFilter):
# DateRangeFilter
created = DateRangeFilter()
date = DateRangeFilter()
on = DateFilter(field_name='date', lookup_expr='exact')
before = DateFilter(field_name='date', lookup_expr='lt')
after = DateFilter(field_name='date', lookup_expr='gt')
discovered_on = DateFilter(field_name='date', lookup_expr='exact')
discovered_before = DateFilter(field_name='date', lookup_expr='lt')
discovered_after = DateFilter(field_name='date', lookup_expr='gt')
jira_creation = DateRangeFilter(field_name='jira_issue__jira_creation')
jira_change = DateRangeFilter(field_name='jira_issue__jira_change')
last_reviewed = DateRangeFilter()
Expand Down Expand Up @@ -1553,8 +1553,8 @@ class FindingFilterHelper(FilterSet):
severity = MultipleChoiceFilter(choices=SEVERITY_CHOICES)
duplicate = ReportBooleanFilter()
is_mitigated = ReportBooleanFilter()
mitigated_date = DateFromToRangeFilter(field_name='mitigated_date', label="Mitigated Date")
mitigated_on = DateFilter(field_name="mitigated_date", lookup_expr="exact", label="Mitigated On")
mitigated_date = DateFromToRangeFilter(field_name='mitigated', label="Mitigated Date")
mitigated_on = DateFilter(field_name="mitigated", lookup_expr="exact", label="Mitigated On")
planned_remediation_date = DateRangeOmniFilter()
planned_remediation_version = CharFilter(lookup_expr="icontains", label=_("Planned remediation version"))
file_path = CharFilter(lookup_expr="icontains")
Expand Down

0 comments on commit 1b421fe

Please sign in to comment.