Skip to content

Conversation

aldavidson
Copy link
Contributor

As part of [MAV-1376|https://nhsd-jira.digital.nhs.uk/browse/MAV-1376], this spike is an experiment with a dedicated, denormalized, ReportableEvents model

  • denormalizes attributes from related models for easy aggregatation and queries (replaces many-table joins with many-columns on one table)
  • records relevant reference data attributes at the time of the event occurring (eg. the school a child was at when the vaccination occured, not what school they are at at the time you are querying)
  • separates the concerns - reporting data can be managed/optimised/regenerated separately without affecting operational tables

@aldavidson aldavidson changed the base branch from main to next June 25, 2025 15:15
bogsi17 and others added 5 commits June 30, 2025 10:04
* To build and push an image from a custom commit, the FULL commit sha can be passed as input. The short commit sha doesn't work as the Checkout GitHub workflow action behaves different in this case and will fail
Separate-out consent fields into separate ReportableConsentEvent model. Split out ReportableEventMethods into a shared concern. Add Rake tasks for populating the reporting table
@aldavidson aldavidson force-pushed the spike/add-reportable-events branch from 8c1eeb5 to 831ae53 Compare June 30, 2025 09:06
Copy link

sonarqubecloud bot commented Jul 2, 2025

@aldavidson
Copy link
Contributor Author

Closing this un-merged. It's been superceded by #4484

@aldavidson aldavidson closed this Sep 5, 2025
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.

2 participants