cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

Put latest notification data in QuickSight #302

Open sastels opened 4 months ago

sastels commented 4 months ago

Description

As a member of CDS, I need to be able to use QuickSight to all notifications sent one day or more ago to perform analyses.

WHY are we building?

Need to run analyses on all data from previous day and older

WHAT are we building?

notifications are moved to the notification_history table after the retention period (ie when they are removed from the notification table. This is generally after 3 or 7 days. This means that the past week of data in the notification_history table (and hence also the QuickSight dataset) is spotty. We should investigate how we can improve this.

VALUE created by our solution

More accurate reports

Acceptance Criteria

QA Steps

sastels commented 4 months ago

verified that we can use a SQL query to create QuickSight datasets rather than the gui dataset builder. replicated the current QuickSight notification_history dataset with an SQL query.

jimleroyer commented 4 months ago

Steve opened a PR to try out the SQL version of the data import into QuickSight: https://github.com/cds-snc/notification-terraform/pull/1175/files

sastels commented 4 months ago

new PR that doesn't use cloudformation! https://github.com/cds-snc/notification-terraform/pull/1179

sastels commented 4 months ago

Will QA and show to folks when it's in production