-
Notifications
You must be signed in to change notification settings - Fork 26
operation logs: anonymization respects jsonschema #3416
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
Conversation
14cbbdd
to
cc2748c
Compare
cc2748c
to
4a1a191
Compare
record = OperationLog.get_record(uuid) | ||
LOGGER.info(f'[{idx}/{len(uuids)}] Processing Log#{record.pid} ' | ||
f'[{record.id}]...') | ||
record['patron']['name'] = 'anonymized' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be:
record['loan']['patron']['name'] = 'anonymized'
record['loan']['patron']['pid'] = 'anonymized'
Sorry, something went wrong.
All reactions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, thanks!
Sorry, something went wrong.
All reactions
4a1a191
to
17c0eaf
Compare
* Existing invalid data should be corrected manually. Co-authored-by: Pascal Repond <pascal.repond@rero.ch>
17c0eaf
to
b2e22c6
Compare
Successfully merging this pull request may close these issues.
Why are you opening this PR?
Dependencies
My PR depends on the following
rero-ils-ui
's PR(s):How to test?