Rename identifier field (#17128)

* backend rename

* frontend

* docs

* fix api path
This commit is contained in:
Josh Hawkins
2025-03-12 17:45:16 -06:00
committed by GitHub
parent b7333557a1
commit 124cc4c9cc
16 changed files with 238 additions and 158 deletions
+12 -3
View File
@@ -121,7 +121,9 @@ export default function SearchView({
}, [config, searchFilter]);
const { data: allSubLabels } = useSWR("sub_labels");
const { data: allIdentifiers } = useSWR("identifiers");
const { data: allRecognizedLicensePlates } = useSWR(
"recognized_license_plates",
);
const allZones = useMemo<string[]>(() => {
if (!config) {
@@ -161,13 +163,20 @@ export default function SearchView({
max_score: ["100"],
min_speed: ["1"],
max_speed: ["150"],
identifier: allIdentifiers,
recognized_license_plate: allRecognizedLicensePlates,
has_clip: ["yes", "no"],
has_snapshot: ["yes", "no"],
...(config?.plus?.enabled &&
searchFilter?.has_snapshot && { is_submitted: ["yes", "no"] }),
}),
[config, allLabels, allZones, allSubLabels, allIdentifiers, searchFilter],
[
config,
allLabels,
allZones,
allSubLabels,
allRecognizedLicensePlates,
searchFilter,
],
);
// remove duplicate event ids