add dwh_tugas_akhir_daily dag (edoxid + informatika -> postgres dwh)

Daily ETL into the PostgreSQL DWH (Coolify "Data Warehouse IF"):
- raw: full-refresh copy of eDOXID submissions/verificators/users and
  informatika mahasiswa/lulusan/dosen, without sensitive columns
- staging: normalize NIM/NIP, cast score/ipk/sks, fix known bad values
  ('2020/2010' academic year, Excel-corrupted lulusan.ipk)
- mart: dim_mahasiswa, dim_dosen, dim_tahap_ta, fact_ujian_ta,
  fact_penugasan_dosen, mhs_progres_ta (risk flags), etl_log
  for angkatan >= DWH_MIN_ANGKATAN (default 2019)

New env on airflow-scheduler: DWH_HOST, DWH_PASSWORD (+ optional
DWH_PORT, DWH_DATABASE, DWH_USERNAME, DWH_MIN_ANGKATAN).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Power BI Dev
2026-10-17 11:32:16 +07:00
co-authored by Claude Opus 5.5
parent a357e0622e
commit 8ebedecdc3
5 changed files with 651 additions and 0 deletions
+7
View File
@@ -56,6 +56,13 @@ services:
- EDOXID_BUSINESS_HOURS_START=${EDOXID_BUSINESS_HOURS_START:-7}
- EDOXID_BUSINESS_HOURS_END=${EDOXID_BUSINESS_HOURS_END:-17}
- EDOXID_OFF_HOURS_INTERVAL_MINUTES=${EDOXID_OFF_HOURS_INTERVAL_MINUTES:-120}
# DWH PostgreSQL (project "Data Warehouse IF" di Coolify) — nilai di-set di Coolify UI
- DWH_HOST=${DWH_HOST}
- DWH_PORT=${DWH_PORT:-5432}
- DWH_DATABASE=${DWH_DATABASE:-dwh_informatika}
- DWH_USERNAME=${DWH_USERNAME:-etl_writer}
- DWH_PASSWORD=${DWH_PASSWORD}
- DWH_MIN_ANGKATAN=${DWH_MIN_ANGKATAN:-2019}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes: