Skip to content

Commit 36c7597

Browse files
authored
Add activity logs for batch inventory file uploads (#1904)
* Add activity logs for batch inventory file uploads * Update audit admin activity log mapping
1 parent f4abffb commit 36c7597

File tree

3 files changed

+233
-147
lines changed

3 files changed

+233
-147
lines changed

client/src/components/AuditAdmin/ActivityLog.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const prettyAction = (activity: IActivity) => {
3939
case 'UploadFile': {
4040
const fileType = ({
4141
ballot_manifest: 'ballot manifest',
42+
batch_inventory_cvrs: 'batch inventory CVRs',
43+
batch_inventory_tabulator_status: 'batch inventory tabulator status',
4244
batch_tallies: 'candidate totals by batch',
4345
cvrs: 'CVRs',
4446
} as { [k: string]: string })[activity.info.file_type]

server/activity_log/slack_worker.py

+2
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def slack_message(activity: activity_log.Activity):
163163
if isinstance(activity, activity_log.UploadFile):
164164
file_type = dict(
165165
ballot_manifest="Ballot manifest",
166+
batch_inventory_cvrs="Batch inventory CVR",
167+
batch_inventory_tabulator_status="Batch inventory tabulator status",
166168
batch_tallies="Batch tallies",
167169
cvrs="CVR",
168170
)[activity.file_type]

0 commit comments

Comments
 (0)