Skip to content

Commit d2114b8

Browse files
committed
feat: readded some filters
1 parent 1bbdff2 commit d2114b8

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

frontend/src/core/observations/ObservationList.tsx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { CustomPagination } from "../../commons/custom_fields/CustomPagination";
2121
import { SeverityField } from "../../commons/custom_fields/SeverityField";
2222
import { feature_exploit_information, has_attribute, humanReadableDate } from "../../commons/functions";
2323
import ListHeader from "../../commons/layout/ListHeader";
24-
import { AutocompleteInputMedium } from "../../commons/layout/themes";
24+
import { AutocompleteInputMedium, AutocompleteInputWide } from "../../commons/layout/themes";
2525
import { getSettingListSize } from "../../commons/user_settings/functions";
2626
import {
2727
AGE_CHOICES,
@@ -67,26 +67,26 @@ function listFilters() {
6767
<AutocompleteInputMedium optionText="name" />
6868
</ReferenceInput>,
6969
<TextInput source="branch_name" label="Branch / Version name" alwaysOn />,
70-
// <ReferenceInput
71-
// label="Service"
72-
// source="origin_service"
73-
// queryOptions={{ meta: { api_resource: "service_names" } }}
74-
// reference="services"
75-
// sort={{ field: "name", order: "ASC" }}
76-
// >
77-
// <AutocompleteInputWide label="Service" optionText="name_with_product" />
78-
// </ReferenceInput>,
70+
<ReferenceInput
71+
label="Service"
72+
source="origin_service"
73+
queryOptions={{ meta: { api_resource: "service_names" } }}
74+
reference="services"
75+
sort={{ field: "name", order: "ASC" }}
76+
>
77+
<AutocompleteInputWide label="Service" optionText="name_with_product" />
78+
</ReferenceInput>,
7979
<TextInput source="origin_component_name_version" label="Component" />
8080
);
8181
if (feature_exploit_information()) {
8282
filters.push(<NullableBooleanInput source="cve_known_exploited" label="CVE exploited" alwaysOn />);
8383
}
8484
filters.push(
8585
<TextInput source="origin_docker_image_name_tag_short" label="Container" />,
86-
// <TextInput source="origin_endpoint_hostname" label="Host" />,
87-
// <TextInput source="origin_source_file" label="Source" />,
88-
// <TextInput source="origin_cloud_qualified_resource" label="Cloud resource" />,
89-
// <TextInput source="origin_kubernetes_qualified_resource" label="Kubernetes resource" />,
86+
<TextInput source="origin_endpoint_hostname" label="Host" />,
87+
<TextInput source="origin_source_file" label="Source" />,
88+
<TextInput source="origin_cloud_qualified_resource" label="Cloud resource" />,
89+
<TextInput source="origin_kubernetes_qualified_resource" label="Kubernetes resource" />,
9090
<TextInput source="scanner" alwaysOn />,
9191
<AutocompleteInputMedium source="age" choices={AGE_CHOICES} alwaysOn />,
9292
<NullableBooleanInput source="has_potential_duplicates" label="Duplicates" alwaysOn />,

0 commit comments

Comments
 (0)