From 8ff150777dafe0d5cda074bb7073eb1f65c8a00d Mon Sep 17 00:00:00 2001 From: Jean-Louis Lamezec Date: Fri, 30 Aug 2024 09:24:10 +0200 Subject: [PATCH 1/2] feat(cdc): create decidim_awesome_private_proposal_fields marts models --- .../decidim_awesome_private_proposal_fields.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql diff --git a/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql b/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql new file mode 100644 index 0000000..2974b0d --- /dev/null +++ b/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql @@ -0,0 +1,9 @@ +SELECT + decidim_awesome_private_proposal_fields.id, + decidim_awesome_private_proposal_fields.proposal_id, + decidim_awesome_private_proposal_fields.private_field_description, + decidim_awesome_private_proposal_fields.private_field_content, + decidim_proposals_proposals.decidim_component_id +FROM + {{ ref ("int_decidim_awesome_private_proposal_fields")}} AS decidim_awesome_private_proposal_fields +JOIN decidim_proposals_proposals ON decidim_awesome_private_proposal_fields.proposal_id = decidim_proposals_proposals.id \ No newline at end of file From 69066f1cbf7457c78f982d18a702c97e55caddd2 Mon Sep 17 00:00:00 2001 From: Jean-Louis Lamezec Date: Fri, 30 Aug 2024 10:07:31 +0200 Subject: [PATCH 2/2] feat(cdc): add ps_title --- .../decidim_awesome_private_proposal_fields.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql b/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql index 2974b0d..9b532ba 100644 --- a/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql +++ b/projects/cour_des_comptes/models/marts/decidim_awesome/decidim_awesome_private_proposal_fields.sql @@ -3,7 +3,9 @@ SELECT decidim_awesome_private_proposal_fields.proposal_id, decidim_awesome_private_proposal_fields.private_field_description, decidim_awesome_private_proposal_fields.private_field_content, - decidim_proposals_proposals.decidim_component_id + decidim_proposals_proposals.decidim_component_id, + components.ps_title FROM {{ ref ("int_decidim_awesome_private_proposal_fields")}} AS decidim_awesome_private_proposal_fields -JOIN decidim_proposals_proposals ON decidim_awesome_private_proposal_fields.proposal_id = decidim_proposals_proposals.id \ No newline at end of file +JOIN decidim_proposals_proposals ON decidim_awesome_private_proposal_fields.proposal_id = decidim_proposals_proposals.id +JOIN {{ ref ("components")}} AS components ON decidim_proposals_proposals.decidim_component_id = components.id \ No newline at end of file