Skip to content

Commit

Permalink
Exclude Report from ooi list (#3768)
Browse files Browse the repository at this point in the history
Co-authored-by: originalsouth <[email protected]>
Co-authored-by: Jeroen Dekkers <[email protected]>
Co-authored-by: Jan Klopper <[email protected]>
  • Loading branch information
4 people authored Nov 1, 2024
1 parent 0bfdc8c commit c0c525e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rocky/rocky/views/ooi_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
from octopoes.config.settings import DEFAULT_SCAN_LEVEL_FILTER, DEFAULT_SCAN_PROFILE_TYPE_FILTER
from octopoes.models import OOI, ScanLevel, ScanProfileType
from octopoes.models.ooi.findings import Finding, FindingType
from octopoes.models.ooi.reports import Report
from octopoes.models.types import get_collapsed_types, type_by_name
from rocky.paginator import RockyPaginator
from rocky.views.mixins import ConnectorFormMixin, OctopoesView, OOIList, SingleOOIMixin, SingleOOITreeMixin
Expand All @@ -29,7 +30,7 @@ class OOIFilterView(ConnectorFormMixin, OctopoesView):
"""

connector_form_class = ObservedAtForm
ooi_types = get_collapsed_types().difference({Finding, FindingType})
ooi_types = get_collapsed_types().difference({Finding, FindingType, Report})
scan_levels = DEFAULT_SCAN_LEVEL_FILTER
scan_profile_types = DEFAULT_SCAN_PROFILE_TYPE_FILTER

Expand Down
2 changes: 1 addition & 1 deletion rocky/tools/forms/ooi_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class ClearanceFilterForm(BaseRockyForm):
)


_EXCLUDED_OOI_TYPES = ("Finding", "FindingType")
_EXCLUDED_OOI_TYPES = ("Finding", "FindingType", "Report")

SORTED_OOI_TYPES = sorted(
[
Expand Down

0 comments on commit c0c525e

Please sign in to comment.