codeforboston / codeforboston/police-data-trust

[TYPES] Refine SearchResponse[] type to reflect properties of Officer, Agency, Unit, Complaint, Litigation

Open
#547 0 comments 0 reactions 1 assignee Claimed by @mikeyavorsky View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.