Skip to content

Release 2628

Choose a tag to compare

@github-actions github-actions released this 19 Aug 07:07
ca5e862

Trello card

Trello-3507

Context

Add the dfe-analytics gem and enable it when running in non-production environments. Capture all web requests and model updates as events (initially all model fields are blacklisted; a separate PR will whitelist the ones we want).

The JSON secret for BigQuery has been added to the Azure keyvault; I had to base64 encode it otherwise the private key was mangled.

Changes proposed in this pull request

  • Add dfe-analytics gem

  • Ensure current_user responds to id

The dfe-analytics gem assumes the current_user has an id attribute. As our current_user is an instance of OpenIDConnect::ResponseObject::UserInfo it doesn't have this attribute.

Add decorator that creates an alias of id to the sub attribute, which will contain the user's DfE sign in user identifier.

Guidance to review