Skip to content

Commit

Permalink
Add activity logs for batch inventory file uploads (#1904)
Browse files Browse the repository at this point in the history
* Add activity logs for batch inventory file uploads

* Update audit admin activity log mapping
  • Loading branch information
arsalansufi authored Mar 18, 2024
1 parent f4abffb commit 36c7597
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 147 deletions.
2 changes: 2 additions & 0 deletions client/src/components/AuditAdmin/ActivityLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ const prettyAction = (activity: IActivity) => {
case 'UploadFile': {
const fileType = ({
ballot_manifest: 'ballot manifest',
batch_inventory_cvrs: 'batch inventory CVRs',
batch_inventory_tabulator_status: 'batch inventory tabulator status',
batch_tallies: 'candidate totals by batch',
cvrs: 'CVRs',
} as { [k: string]: string })[activity.info.file_type]
Expand Down
2 changes: 2 additions & 0 deletions server/activity_log/slack_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def slack_message(activity: activity_log.Activity):
if isinstance(activity, activity_log.UploadFile):
file_type = dict(
ballot_manifest="Ballot manifest",
batch_inventory_cvrs="Batch inventory CVR",
batch_inventory_tabulator_status="Batch inventory tabulator status",
batch_tallies="Batch tallies",
cvrs="CVR",
)[activity.file_type]
Expand Down
Loading

0 comments on commit 36c7597

Please sign in to comment.