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

[WIP] Spike redaction code #128

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

[WIP] Spike redaction code #128

wants to merge 4 commits into from

Conversation

HettieS
Copy link

@HettieS HettieS commented Apr 19, 2024

Description of change

Copy Crime Apply's approach to redacting data.

This spike PR creates a new table 'redacted_submission_versions' which is linked to 'submission_versions'. When we create the submission version, we also create the redacted record with the same attributes. We then run the application data through a set of rules to replace the specified data with the string "redacted".

There is a basic test which validates this behaviour.

Crime Apply's code also has a MetadataWrapper which I have left in the code for now but have commented out as not sure we need it.

Link to relevant ticket

CRM457-

Notes for reviewer

Screenshots of changes (if applicable)

Before changes:

After changes:

How to manually test the feature

* no null constraints on new table for ease of implementation
* no faffing with factories yet
@jogilder jogilder added documentation Improvements or additions to documentation Spike - do not merge and removed documentation Improvements or additions to documentation labels May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants