A set of SQL queries that transform raw CouchDB data into a more useful format for analytics. It uses dbt
to define the models that are translated into PostgreSQL tables or views, which makes it easier to query the data in the analytics platform of choice.
Follow the instructions in the CHT Sync documentation to set up the data pipeline.
Docker
- Navigate to
tests
folder. - Run the test script:
# set environment variables, install dbt dependencies, seed data, run dbt, run test
./run_dbt_tests.sh
This repo has an automated release process where each feature/bug fix will be released immediately after it is merged to main
. The release type is determined by the commit message format. Have a look at the development workflow in the Contributor Handbook for more information.
The commit format should follow the convention outlined in the CHT docs. Examples are provided below.
Type | Example commit message | Release type |
---|---|---|
Bug fixes | fix(#123): rename column names | patch |
Performance | perf(#789): add new indexes | patch |
Features | feat(#456): add new model | minor |
Non-code | chore(#123): update README | none |
Breaking | perf(#2): remove data_record model BREAKING CHANGE: form models should now read from new_model |
major |