Skip to content

Commit 5c1734d

Browse files
authored
update PR template (#1468)
* update PR template * added a few more performance related conditions * remove text to tag data experience team access issues for users to tag the group * break out checks into groups separate general checks, join checks, incremental checks
1 parent 0a0236a commit 5c1734d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pull_request_template.md

+12-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@ Brief comments on the purpose of your changes:
33

44
*For Dune Engine V2*
55
I've checked that:
6-
6+
General checks:
77
* [ ] I tested the query on dune.com after compiling the model with dbt compile (compiled queries are written to the target directory)
88
* [ ] I used "refs" to reference other models in this repo and "sources" to reference raw or decoded tables
99
* [ ] if adding a new model, I added a test
1010
* [ ] the filename is unique and ends with .sql
1111
* [ ] each sql file is a select statement and has only one view, table or function defined
1212
* [ ] column names are `lowercase_snake_cased`
13+
* [ ] if adding a new model, I edited the dbt project YAML file with new directory path for both models and seeds (if applicable)
14+
* [ ] if adding a new model, I edited the alter table macro to display new database object (table or view) in UI explorer
15+
* [ ] if adding a new materialized table, I edited the optimize table macro
16+
17+
Join logic:
18+
* [ ] if joining to base table (i.e. ethereum transactions or traces), I looked to make it an inner join if possible
1319

14-
When you are ready for a review, tag duneanalytics/data-experience. We will re-open your forked pull request as an internal pull request. Then your spells will run in dbt and the logs will be avaiable in Github Actions DBT Slim CI. This job will only run the models and tests changed by your PR compared to the production project.
20+
Incremental logic:
21+
* [ ] I used is_incremental & not is_incremental jinja block filters on both base tables and decoded tables
22+
* [ ] where block_time >= date_trunc("day", now() - interval '1 week')
23+
* [ ] if joining to base table (i.e. ethereum transactions or traces), I applied join condition where block_time >= date_trunc("day", now() - interval '1 week')
24+
* [ ] if joining to prices view, I applied join condition where minute >= date_trunc("day", now() - interval '1 week')

0 commit comments

Comments
 (0)