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

Add reference to hidden_pii to cutom events #153

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

ericaporter
Copy link
Contributor

This PR includes an update to the Readme and a event test to cover hidden_data being included in in a custom event

@ericaporter ericaporter changed the base branch from main to hidden-pii-updates June 27, 2024 10:09
@ericaporter ericaporter self-assigned this Jun 27, 2024
@ericaporter ericaporter requested a review from asatwal June 27, 2024 10:09
README.md Outdated
@@ -256,7 +256,7 @@ it might be necessary to add a primary key to the table and to update the releva

## Custom events

If you wish to send custom analytics event, create a file `config/analytics_custom_events.yml` containing an array of your custom events types under a `shared` key like:
If you wish to send custom analytics event, for example if you have data about emails sent, server side validation errors, api query data or data relating to searches performed, create a file `config/analytics_custom_events.yml` containing an array of your custom events types under a `shared` key like:
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps capitalise API?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now updated

README.md Outdated
@@ -275,6 +275,20 @@ event = DfE::Analytics::Event.new
.with_data(some: 'custom details about event')
```

If you need to include hidden_pii, you can use the `hidden_data` key which will allow all fields lsited to be sent separately to BigQuery where they will be hidden.
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: listed not lsited

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now updated

README.md Outdated
.with_request_details(request)
.with_namespace('some_namespace')
.with_data(
data: { some: 'custom details about event' },
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be worth including more than one field in data and hidden_data in the example so it's super clear how to achieve this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now updated

Copy link
Contributor

@stevenleggdfe stevenleggdfe left a comment

Choose a reason for hiding this comment

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

See comments

Copy link
Collaborator

@asatwal asatwal left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@ericaporter ericaporter merged commit 16d02f9 into hidden-pii-updates Jul 1, 2024
@ericaporter ericaporter deleted the custom-events-hidden-pii branch July 1, 2024 14:47
ericaporter added a commit that referenced this pull request Jul 8, 2024
* Add DATA_hidden to events table creation SQL script
* Add hidden PII required permissions to GCP custom IAM role setup instructions
* Add policy tag setup instructions to GCP setup instructions
* Update role configuration to match latest BAT configuration
* Add hidden_pii.yml (#121)
* Allow hidden data to be sent separately (#128)
* Mask hidden_pii from logs
* Add validation for hidden pii fields appearing on both lists
* Change DATA_hidden to hidden_DATA in google_cloud_bigquery_setup.md
* Change DATA_hidden to hidden_DATA in create-events-table.sql
* Cover edge cases for validations (#146)
* Update log masking method (#150)
* Add reference to hidden_pii to cutom events (#153)
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.

3 participants