add in prop title & description

This commit is contained in:
jhuhnke 2023-04-05 13:24:35 -05:00
parent e776a5f7ba
commit caf210d0fd
7 changed files with 51 additions and 22 deletions

View File

@ -16,5 +16,7 @@ SELECT
tx_succeeded,
proposer,
proposal_id,
proposal_type
proposal_type,
proposal_title,
proposal_description
FROM {{ ref('silver__governance_submit_proposal') }}

View File

@ -29,5 +29,13 @@ models:
- dbt_expectations.expect_column_to_exist
- name: PROPOSAL_TYPE
description: "{{ doc('proposal_type') }}"
tests:
- dbt_expectations.expect_column_to_exist
- name: PROPOSAL_TITLE
description: "{{ doc('proposal_title') }}"
tests:
- dbt_expectations.expect_column_to_exist
- name: PROPOSAL_DESCRIPTION
description: "{{ doc('proposal_description') }}"
tests:
- dbt_expectations.expect_column_to_exist

View File

@ -0,0 +1,5 @@
{% docs proposal_description %}
The description or body of the governance proposal.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs proposal_title %}
The title of the governance proposal that was submitted on-chain.
{% enddocs %}

View File

@ -97,6 +97,8 @@ SELECT
proposer,
p.proposal_id :: NUMBER AS proposal_id,
y.proposal_type,
tx_body :messages[0] :content :title :: STRING AS proposal_title,
tx_body :messages[0] :content :description :: STRING AS proposal_description,
_inserted_timestamp
FROM
proposal_ids p

View File

@ -62,6 +62,24 @@ models:
column_type_list:
- STRING
- VARCHAR
- name: PROPOSAL_TITLE
description: "{{ doc('proposal_title') }}"
tests:
- not_null:
where: tx_id <> '515A92D6DE7561E1BCDB11C0D453BFDE87B25F981F8E94AFB848CA97EA65F34A' ## We are missing this transaction body
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: PROPOSAL_DESCRIPTION
description: "{{ doc('proposal_description') }}"
tests:
- not_null:
where: tx_id <> '515A92D6DE7561E1BCDB11C0D453BFDE87B25F981F8E94AFB848CA97EA65F34A' ## We are missing this transaction body
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- STRING
- VARCHAR
- name: _INSERTED_TIMESTAMP
description: "{{ doc('inserted_timestamp') }}"
tests:

View File

@ -3,27 +3,16 @@ osmosis:
outputs:
dev:
type: snowflake
account: "{{ env_var('ACCOUNT') }}"
user: "{{ env_var('USER') }}"
password: "{{ env_var('PASSWORD') }}"
role: "{{ env_var('ROLE') }}"
schema: "{{ env_var('SCHEMA') }}"
region: "{{ env_var('REGION') }}"
database: "{{ env_var('DATABASE') }}"
warehouse: "{{ env_var('WAREHOUSE') }}"
threads: 8
client_session_keep_alive: False
prod:
type: snowflake
account: "{{ env_var('ACCOUNT') }}"
user: "{{ env_var('USER') }}"
password: "{{ env_var('PASSWORD') }}"
role: "{{ env_var('ROLE') }}"
schema: "{{ env_var('SCHEMA') }}"
region: "{{ env_var('REGION') }}"
database: "{{ env_var('DATABASE') }}"
warehouse: "{{ env_var('WAREHOUSE') }}"
threads: 8
account: vna27887.us-east-1
role: INTERNAL_DEV
user: jessica@flipsidecrypto.com
authenticator: externalbrowser
region: us-east-1
database: OSMOSIS_DEV
warehouse: DBT_EMERGENCY
schema: silver
threads: 12
client_session_keep_alive: False
query_tag: dbt_JESSICA_dev
config:
send_anonymous_usage_stats: False