Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove audit fields from Description download #1151

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

michplunkett
Copy link
Collaborator

@michplunkett michplunkett commented Feb 4, 2025

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

  • This branch is up-to-date with the develop branch.
  • Ran make create_db_diagram command.
  • pytest passes on my local development environment.
  • pre-commit passes on my local development environment.

Comment on lines -163 to -166
"created_by": description.created_by,
"officer_id": description.officer_id,
"created_at": description.created_at,
"last_updated_at": description.last_updated_at,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless there's something I'm missing, these fields shouldn't be needed. They aren't included in any other _record_maker functions, so my guess is that we do not need to include them here.

Copy link
Collaborator

@abandoned-prototype abandoned-prototype left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I agree with not adding these fields to the csv download. Thanks for making this change!

@michplunkett michplunkett merged commit 8044b84 into develop Feb 10, 2025
4 checks passed
@michplunkett michplunkett deleted the remove-audit-fields branch February 10, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants