diff --git a/tutoraspects/plugin.py b/tutoraspects/plugin.py index fd178a855..da9111b4f 100644 --- a/tutoraspects/plugin.py +++ b/tutoraspects/plugin.py @@ -123,6 +123,7 @@ ("ASPECTS_VECTOR_DATABASE", "openedx"), ("ASPECTS_VECTOR_RAW_TRACKING_LOGS_TABLE", "_tracking"), ("ASPECTS_VECTOR_RAW_XAPI_TABLE", "xapi_events_all"), + ("ASPECTS_DATA_TTL_EXPRESSION", "toDateTime(emission_time) + INTERVAL 1 YEAR"), # Make sure LMS / CMS have event-routing-backends installed ###################### # ClickHouse Settings @@ -333,7 +334,7 @@ # For now we are pulling this from github, which should allow maximum # flexibility for forking, running branches, specific versions, etc. ("DBT_REPOSITORY", "https://github.com/openedx/aspects-dbt"), - ("DBT_BRANCH", "cag/migrate-dictionaries"), + ("DBT_BRANCH", "cag/ttl"), ("DBT_SSH_KEY", ""), ("DBT_STATE_DIR", "/app/aspects/dbt_state/"), # This is the name of the database dbt will write to diff --git a/tutoraspects/templates/aspects/apps/aspects/scripts/dbt.sh b/tutoraspects/templates/aspects/apps/aspects/scripts/dbt.sh index 1d9ad9602..7661392ab 100644 --- a/tutoraspects/templates/aspects/apps/aspects/scripts/dbt.sh +++ b/tutoraspects/templates/aspects/apps/aspects/scripts/dbt.sh @@ -27,6 +27,7 @@ pip install -r ./requirements.txt export ASPECTS_EVENT_SINK_DATABASE={{ASPECTS_EVENT_SINK_DATABASE}} export ASPECTS_XAPI_DATABASE={{ASPECTS_XAPI_DATABASE}} export DBT_STATE={{ DBT_STATE_DIR }} +export ASPECTS_DATA_TTL_EXPRESSION="{{ ASPECTS_DATA_TTL_EXPRESSION }}" echo "Installing dbt dependencies" dbt deps --profiles-dir /app/aspects/dbt/