Merged PR 2178: New model for guests satisfaction report

New model for guests satisfaction report, I included columns to check what is the guest paying for that might be helpful for analysis as well

Related work items: #16947
This commit is contained in:
Joaquin Ossa 2024-07-04 10:13:11 +00:00
commit 2efc1d8b65
5 changed files with 278 additions and 3 deletions

View file

@ -0,0 +1,22 @@
with
int_core__guest_satisfaction_responses as (
select * from {{ ref("int_core__guest_satisfaction_responses") }}
)
select
id_verification_request as id_verification_request,
id_user_guest as id_user_guest,
guest_email as guest_email,
experience_rating as experience_rating,
guest_comments as guest_comments,
is_contactable as is_contactable,
created_at_utc as created_at_utc,
updated_at_utc as updated_at_utc,
selected_payment_option as selected_payment_option,
date_of_birth as date_of_birth,
age_of_guest as age_of_guest,
has_check_in_cover_payment as has_check_in_cover_payment,
has_waiver_payment as has_waiver_payment,
has_deposit_payment as has_deposit_payment,
has_fee_payment as has_fee_payment
from int_core__guest_satisfaction_responses

View file

@ -935,4 +935,83 @@ models:
- name: company_name
data_type: character varying
description: ""
description: ""
- name: core__guest_satisfaction_responses
description:
This model contains information on guests satisfaction survey responses,
it contains some basic information on the guests, a rating of their experience
and some comments on it.
It also includes information on the services provided by Superhog that they payed for.
columns:
- name: id_verification_request
data_type: bigint
description: Unique id value for the verification request
tests:
- not_null
- unique
- name: id_user_guest
data_type: character varying
description: Unique id value for the guest
- name: guest_email
data_type: character varying
description: Guest email
- name: experience_rating
data_type: bigint
description:
Guest rating of their experience with Superhog from 1 to 5
- name: guest_comments
data_type: character varying
description:
Guest comments on their experience with Superhog
- name: is_contactable
data_type: boolean
description: |
True if the guest allows to be contacted for more feedback
- name: created_at_utc
data_type: timestamp without time zone
description:
Date and time of response creation
- name: updated_at_utc
data_type: timestamp without time zone
description:
Date and time of last update of response
- name: selected_payment_option
data_type: character varying
description: ""
- name: date_of_birth
data_type: numeric
description: ""
- name: age_of_guest
data_type: numeric
description: ""
- name: has_check_in_cover_payment
data_type: boolean
description: |
True if guest payed for check-in cover
- name: has_waiver_payment
data_type: boolean
description: |
True if guest payed the waiver
- name: has_deposit_payment
data_type: boolean
description: |
True if guest payed the deposit
- name: has_fee_payment
data_type: boolean
description: |
True if guest payed the fee

View file

@ -116,4 +116,40 @@ exposures:
owner:
name: Oriol Roqué
email: oriol.roque@superhog.com
email: oriol.roque@superhog.com
- name: currency_exchange_dashboard
label: Currency Exchange
type: dashboard
maturity: medium
url: https://app.powerbi.com/groups/me/apps/10c41ce2-3ca8-4499-a42c-8321a3dce94b/reports/fcfd0a77-6c2a-4379-89be-aa0b090265d7/64ddecd28ca50dc3f029?ctid=862842df-2998-4826-bea9-b726bc01d3a7&experience=power-bi
description: |
A PBI report to see information about rate exchange on currencies used
by the user of Superhog.
It contains daily rate between all currency pairs and allows the user
to export this data.
depends_on:
- ref('daily_currency_exchange_rates')
owner:
name: Joaquin Ossa
email: joaquin.ossa@superhog.com
- name: checkinhero_hosts_data
label: Hosts Details
type: dashboard
maturity: medium
url: https://app.powerbi.com/groups/me/apps/14859ed7-b135-431e-b0a6-229961c10c68/reports/8e88ea63-1874-47d9-abce-dfcfcea76bda/ReportSection?ctid=862842df-2998-4826-bea9-b726bc01d3a7&experience=power-bi
description: |
A PBI report that shows detailed information about hosts that
currently have check-in hero available.
It shows host data as well as metrics on the guest journeys and
check-in covers purchased by the guests.
depends_on:
- ref('core__check_in_cover_users')
owner:
name: Joaquin Ossa
email: joaquin.ossa@superhog.com