diff --git a/integration_test_project/models/exposure.md b/integration_test_project/models/exposure.md new file mode 100644 index 00000000..dc6d0d72 --- /dev/null +++ b/integration_test_project/models/exposure.md @@ -0,0 +1,11 @@ +{% docs clickstream %} + +This dashboard contains clickstream events from the marketing website. + +The events in this table are recorded by Snowplow and piped into the warehouse on an hourly basis. The following pages of the marketing site are tracked: + - / + - /about + - /team + - /contact-us + +{% enddocs %} diff --git a/integration_test_project/models/tests_and_exposures.yml b/integration_test_project/models/tests_and_exposures.yml index bc1ef852..b397edc0 100644 --- a/integration_test_project/models/tests_and_exposures.yml +++ b/integration_test_project/models/tests_and_exposures.yml @@ -22,3 +22,16 @@ exposures: owner: name: Claire from Data email: data@jaffleshop.com + + - name: "CIO dashboard" + type: dashboard + maturity: high + description: '{{ doc("clickstream") }}' + url: https://bi.tool/dashboards/1 + + depends_on: + - ref('incremental') + + owner: + name: Henry from IT + email: henry@jaffleshop.com diff --git a/macros/upload_exposures.sql b/macros/upload_exposures.sql index b5da0d6d..93f10517 100644 --- a/macros/upload_exposures.sql +++ b/macros/upload_exposures.sql @@ -61,7 +61,7 @@ parse_json('{{ tojson(exposure.owner) | replace("'","\\'") }}'), {# owner #} '{{ exposure.maturity }}', {# maturity #} '{{ exposure.original_file_path | replace('\\', '\\\\') }}', {# path #} - '{{ exposure.description | replace("'","\\'") }}', {# description #} + """{{ exposure.description | replace("'","\\'") }}""", {# description #} '{{ exposure.url }}', {# url #} '{{ exposure.package_name }}', {# package_name #} {{ tojson(exposure.depends_on.nodes) }} {# depends_on_nodes #}