Skip to content

Commit 8044b84

Browse files
authored
Remove audit fields from Description download (#1151)
## Description of Changes Removed audit fields from the `Description` download function. They leak user information and provide data that isn't particularly useful outside of internal auditing. ## Tests and Linting - [x] This branch is up-to-date with the `develop` branch. - [x] Ran `make create_db_diagram` command. - [x] `pytest` passes on my local development environment. - [x] `pre-commit` passes on my local development environment.
1 parent 368c673 commit 8044b84

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

OpenOversight/app/main/downloads.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,5 @@ def descriptions_record_maker(description: Description) -> _Record:
160160
return {
161161
"id": description.id,
162162
"text_contents": description.text_contents,
163-
"created_by": description.created_by,
164163
"officer_id": description.officer_id,
165-
"created_at": description.created_at,
166-
"last_updated_at": description.last_updated_at,
167164
}

OpenOversight/app/main/views.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,10 +1746,7 @@ def download_dept_descriptions_csv(department_id: int):
17461746
field_names = [
17471747
"id",
17481748
"text_contents",
1749-
"created_by",
17501749
"officer_id",
1751-
"created_at",
1752-
"last_updated_at",
17531750
]
17541751

17551752
return make_downloadable_csv(

0 commit comments

Comments
 (0)