-
Notifications
You must be signed in to change notification settings - Fork 16
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
Log session answers to rollbar #3478
base: master
Are you sure you want to change the base?
Conversation
98870de
to
c642bc0
Compare
Some of the errors in rollbar are tricky to debug as we don't know what answers the claimant provided. This commit adds a mechanism for flagging attributes as PII and updates the ClaimsController to include the non pii attributes in the Rollbar scope such that they are available in Rollbar.
c642bc0
to
4e32654
Compare
end | ||
end | ||
|
||
def attributes_with_pii_redacted |
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.
can we add some basic coverage for this method?
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.
There is already some config here https://github.com/DFE-Digital/claim-additional-payments-for-teaching/blob/master/app/models/claim.rb#L20 from when the Claim
object was built during the journey. It might be that this is now redundant or could be considered as part of this change. I think the list of filtered attributes should be managed in one place.
Some of the errors in rollbar are tricky to debug as we don't know what
answers the claimant provided. This commit adds a mechanism for flagging
attributes as PII and updates the ClaimsController to include the non
pii attributes in the Rollbar scope such that they are available in
Rollbar.
Here are two errors in rollbar showing the additional params sent over https://app.rollbar.com/a/dfe-digital/fix/item/dfe-claims/1530#occurrences
We couldn't reuse the config/analytics_blocklist.yml list for scrubbing pi as journey sessions store all answers in the
answers
db column and we just block the whole column. I think tacking onpii: true
to the attribute definition isn't too much overhead and may end up being useful in other contexts.