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 template category columns to notifications dataset #1478

Merged
merged 4 commits into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 37 additions & 6 deletions aws/quicksight/dataset_notifications.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,19 @@ resource "aws_quicksight_data_set" "notifications" {
),
template_data as (
select
id as template_id,
created_at as template_created_at,
name as template_name,
updated_at as template_updated_at,
version as template_version
from templates
t.id as template_id,
t.created_at as template_created_at,
t.name as template_name,
t.updated_at as template_updated_at,
t.version as template_version,
tc.id as tc_id,
tc.name_en as tc_name_en,
tc.name_fr as tc_name_fr,
tc.email_process_type as tc_email_process_type,
tc.sms_process_type as tc_sms_process_type,
tc.sms_sending_vehicle as tc_sms_sending_vehicle
from templates t
join template_categories tc on tc.id = t.template_category_id
)
select
notification_id, notification_created_at, notification_sent_at, notification_status,
Expand Down Expand Up @@ -181,6 +188,30 @@ resource "aws_quicksight_data_set" "notifications" {
name = "template_version"
type = "INTEGER"
}
columns {
name = "tc_id"
type = "STRING"
}
columns {
name = "tc_name_en"
type = "STRING"
}
columns {
name = "tc_name_fr"
type = "STRING"
}
columns {
name = "tc_email_process_type"
type = "STRING"
}
columns {
name = "tc_sms_process_type"
type = "STRING"
}
columns {
name = "tc_sms_sending_vehicle"
type = "STRING"
}
}
}
permissions {
Expand Down
Loading