Skip to content

Commit

Permalink
Merge pull request #1187 from DFE-Digital/Hide-pii-fields
Browse files Browse the repository at this point in the history
Move pii fields to hidden_pii.yml
  • Loading branch information
richardpattinson authored Sep 24, 2024
2 parents 47c4c45 + ab60a66 commit 83515e4
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 51 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ gem "bootsnap", require: false
gem "cssbundling-rails"
gem "devise"
gem "devise_invitable"
gem "dfe-analytics", github: "DFE-Digital/dfe-analytics"
gem "dfe-analytics", github: "DFE-Digital/dfe-analytics", tag: "v1.14.2"
gem "govuk-components"
gem "govuk_design_system_formbuilder"
gem "govuk_feature_flags",
Expand Down
12 changes: 8 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
GIT
remote: https://github.com/DFE-Digital/dfe-analytics.git
revision: 79378cc466a40c6a6cba317e232cbf48ec79ab7d
revision: 706595e52fed211cee53ad99ceaeaabb47a059cc
tag: v1.14.2
specs:
dfe-analytics (1.14.1)
dfe-analytics (1.14.2)
google-cloud-bigquery (~> 1.38)
httparty (~> 0.21)
multi_xml (~> 0.6.0)
Expand Down Expand Up @@ -200,7 +201,7 @@ GEM
raabro (~> 1.4)
globalid (1.2.1)
activesupport (>= 6.1)
google-apis-bigquery_v2 (0.76.0)
google-apis-bigquery_v2 (0.78.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-core (0.15.1)
addressable (~> 2.5, >= 2.5.1)
Expand All @@ -221,7 +222,7 @@ GEM
google-cloud-core (1.7.1)
google-cloud-env (>= 1.0, < 3.a)
google-cloud-errors (~> 1.0)
google-cloud-env (2.1.1)
google-cloud-env (2.2.0)
faraday (>= 1.0, < 3.a)
google-cloud-errors (1.4.0)
googleauth (1.11.0)
Expand Down Expand Up @@ -313,6 +314,8 @@ GEM
nio4r (2.7.0)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
notifications-ruby-client (5.4.0)
Expand Down Expand Up @@ -556,6 +559,7 @@ GEM

PLATFORMS
arm64-darwin-24
x86_64-darwin-23
x86_64-linux

DEPENDENCIES
Expand Down
47 changes: 47 additions & 0 deletions config/analytics_hidden_pii.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
:shared:
:active_storage_blobs:
- filename
:active_storage_attachments:
- name
:referrers:
- first_name
- phone
- last_name
:referrals:
- first_name
- last_name
- previous_name
- date_of_birth
- email_address
- trn
- address_line_1
- address_line_2
- town_or_city
- postcode
- country
- phone_number
- ni_number
- work_location_known
- work_organisation_name
- work_address_line_1
- work_address_line_2
- work_town_or_city
- work_postcode
- organisation_address_known
- organisation_name
- organisation_address_line_1
- organisation_address_line_2
- organisation_town_or_city
- organisation_postcode
- allegation_details
- allegation_consideration_details
- previous_misconduct_details
- duties_details
:users:
- email
:staff:
- email
:feedbacks:
- email
- improvement_suggestion
47 changes: 1 addition & 46 deletions config/analytics_pii.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,2 @@
---
:shared:
:active_storage_blobs:
- filename
:active_storage_attachments:
- name
:referrers:
- first_name
- phone
- last_name
:referrals:
- first_name
- last_name
- previous_name
- date_of_birth
- email_address
- trn
- address_line_1
- address_line_2
- town_or_city
- postcode
- country
- phone_number
- ni_number
- work_location_known
- work_organisation_name
- work_address_line_1
- work_address_line_2
- work_town_or_city
- work_postcode
- organisation_address_known
- organisation_name
- organisation_address_line_1
- organisation_address_line_2
- organisation_town_or_city
- organisation_postcode
- allegation_details
- allegation_consideration_details
- previous_misconduct_details
- duties_details
:users:
- email
:staff:
- email
:feedbacks:
- email
- improvement_suggestion
shared: {}

0 comments on commit 83515e4

Please sign in to comment.