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

feat: add values to analytics allow lists for Pre Apps #3769

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

jessicamcinchak
Copy link
Member

Changes:

  • Adds 3x new values to analytics ALLOW_LISTS for Pre App services
  • Updates analytics_summary & submission_services_summary views
    • Notably remembering to also include GRANT SELECT ON "public"."{view_name}" TO metabase_read_only; so that Metabase should smoothly sync/pick up new columns 🤞

const ALLOW_LIST = [
"application.declaration.connection",
"application.information.harmful",
"application.information.sensitive",
Copy link
Member Author

@jessicamcinchak jessicamcinchak Oct 7, 2024

Choose a reason for hiding this comment

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

These are both yes/no questions - see here https://editor.planx.uk/doncaster/pre-application-advice

They additionally have extra "description" & "reason" free text inputs each, but those seem less chart-able & potentially sensitve info so I'm not including here - is that okay @zz-hh-aa (it's a bit different than original Trello request!)?

Intention of analytics "allow lists" is to track generic, non-personally-identifiable stuff only in aggregate over all time. Doncaster of course will still get all answers with their submission data !

Screenshot from 2024-10-07 16-33-54

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes I think that'll do just fine! Thanks Jess :)

@jessicamcinchak
Copy link
Member Author

@jessicamcinchak
Copy link
Member Author

@jessicamcinchak
Copy link
Member Author

Copy link

github-actions bot commented Oct 8, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak marked this pull request as ready for review October 8, 2024 14:17
@jessicamcinchak jessicamcinchak requested a review from a team October 8, 2024 14:17
Comment on lines +36 to +43
* ALLOW_LIST should stay in sync with
* api.planx.uk/modules/webhooks/service/analyzeSessions/operations.ts
*
* If appending values to ALLOW_LIST please also update the
* `analytics_summary` & `submission_services_summary` views to extract the value into its own column
*
* Please also ensure your migration ends with `GRANT SELECT ON public.{VIEW_NAME} TO metabase_read_only`
* so that Metabase picks up the new columns
Copy link
Contributor

Choose a reason for hiding this comment

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

nit(non-blocking): Maybe these comments point towards the fact we might need a simple doc file explaining how to add values to ALLOW_LIST?

@jessicamcinchak jessicamcinchak merged commit 4f1949b into main Oct 9, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/pre-app-allow-list-analytics branch October 9, 2024 09:46
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