codeforboston / codeforboston/police-data-trust
[TYPES] Refine SearchResponse[] type to reflect properties of Officer, Agency, Unit, Complaint, Litigation
Open
- Dominant language
- Python
- Stars
- 64
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
SearchResponse currently looks like this:
```
export type SearchResponse = {
uid: string | number
title: string
subtitle: string
content_type: SearchContentType
source: string
last_updated: string
description?: string
tags?: string[]
first_name?: string
middle_name?: string
last_name?: string
suffix?: string | null
ethnicity?: string
gender?: string
state_ids?: any[] // TODO: replace with subtype
details?: string[]
}
```
It should properly be an Array of SearchContentType (Officer, Agency, Unit, Complaint, Litigation)
Contributor guide
Assessment
This issue has not been assessed yet.