Skip to content

Commit

Permalink
add config
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Dec 13, 2024
1 parent f0c9b4d commit af41656
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
15 changes: 9 additions & 6 deletions website/docs/docs/build/dimensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ semantic_models:
type_params:
time_granularity: day
label: "Date of transaction" # Recommend adding a label to provide more context to users consuming the data
meta:
data_owner: "Finance team"
config:
meta:
data_owner: "Finance team"
expr: ts
- name: is_bulk
type: categorical
Expand Down Expand Up @@ -147,8 +148,9 @@ dimensions:
- name: is_bulk_transaction
type: categorical
expr: case when quantity > 10 then true else false end
meta:
usage: "Filter to identify bulk transactions, like where quantity > 10."
config:
meta:
usage: "Filter to identify bulk transactions, like where quantity > 10."
```
</VersionBlock>

Expand Down Expand Up @@ -192,8 +194,9 @@ dimensions:
type: time
label: "Date of creation"
expr: ts_created # ts_created is the underlying column name from the table
meta:
notes: "Only valid for orders from 2022 onward"
config:
meta:
notes: "Only valid for orders from 2022 onward"
is_partition: True
type_params:
time_granularity: day
Expand Down
29 changes: 17 additions & 12 deletions website/docs/reference/resource-configs/meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,21 +436,24 @@ semantic_models:
dimensions:
- name: order_date
type: time
meta:
data_owner: "Finance team"
used_in_reporting: true
config:
meta:
data_owner: "Finance team"
used_in_reporting: true
entities:
- name: customer_id
type: primary
meta:
description: "Unique identifier for customers"
data_owner: "Sales team"
used_in_reporting: false
config:
meta:
description: "Unique identifier for customers"
data_owner: "Sales team"
used_in_reporting: false
measures:
- name: count_of_users
expr: user_id
meta:
used_in_reporting: true
config:
meta:
used_in_reporting: true
```

</File>
Expand All @@ -468,11 +471,13 @@ semantic-models:
...
[dimensions](/docs/build/dimensions):
- name: order_date
+meta:
data_owner: "Finance team"
used_in_reporting: true
config:
meta:
data_owner: "Finance team"
used_in_reporting: true
```


</File>
</TabItem>
</Tabs>
Expand Down

0 comments on commit af41656

Please sign in to comment.