Commit Graph
13 Commits
Author SHA1 Message Date
Power BI DevandClaude Opus 5.5 5ec90c6874 add dwh_tracer_daily dag (tracer study app -> postgres dwh)
Copies the tracer study app (MariaDB tracer_buffer) into raw/staging/mart,
porting App\Services\RekapHasil so the dashboard shows the same numbers as
the app's results page. Only whitelisted columns are extracted: no name,
phone, email, password or login token; from the questionnaire JSON only the
answer keys used by the recap (JSON_VALUE per key).

Needs TRACER_DB_HOST / TRACER_DB_PASSWORD (read-only user dwh_tracer_ro).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:36:26 +07:00
Power BI DevandClaude Opus 5.5 8ebedecdc3 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>
2026-10-17 11:32:16 +07:00
Power BI Dev a357e0622e throttle polling outside business hours
Single DAG, single 30-min schedule instead of 5-min or two separate
DAGs. run_sync() itself decides whether to do real work: always during
business hours (default 07:00-17:00 WIB), otherwise only once per
EDOXID_OFF_HOURS_INTERVAL_MINUTES (default 120) tracked via a
last_full_sync timestamp in the sqlite state. Off-hours skips return
immediately without touching DB/Calendar/Gmail at all.
2026-07-27 22:33:04 +07:00
Power BI Dev 7a6dc7d9ae fix invalid_scope error on token refresh
Requesting a narrower scope explicitly (scopes=[...]) during refresh
was rejected by Google as invalid_scope in the Airflow container's
google-auth version, even though it worked locally with a newer one.
Drop scopes= entirely — the refresh_token already carries the full
granted scope (calendar + gmail.send), no need to request a subset.
2026-07-27 22:16:31 +07:00
Power BI Dev e0a6efd204 fix python 3.8 compat for edoxid calendar sync
apache/airflow:2.7.1 base image ships Python 3.8, which doesn't have
zoneinfo (3.9+) and can't evaluate `X | Y` / list[X] type hints at
runtime (3.10+). Add `from __future__ import annotations` everywhere
and swap zoneinfo -> pytz (already a dependency in this repo).
2026-07-27 22:10:10 +07:00
Power BI Dev 33f4666bad add edoxid calendar sync dag
Sync jadwal sidang eDOXID ke Google Calendar "Jadwal Sidang" tiap 5 menit
(read-only ke doxid2022), plus reminder email H-1/1-jam via Gmail API
karena reminder Calendar bawaan tidak ikut ke kalender pribadi attendee.
2026-07-27 21:59:27 +07:00
Power BI Dev c6edee7aeb penelitian scheduler 2026-07-18 22:29:29 +07:00
Power BI Dev 1061738345 new etl listdosen from spota (fixes) 2026-03-30 22:06:47 +07:00
Power BI Dev d36c9b663f new etl listdosen from spota 2026-03-30 22:01:42 +07:00
Power BI Dev 4a1fb41cca init new dags_2 2026-03-03 16:28:04 +07:00
Power BI Dev 0bd5fdc297 init new dags 2026-03-03 16:23:51 +07:00
Power BI Dev 0c07d0ccd7 init commit 2 2026-03-03 15:18:50 +07:00
Power BI Dev 8a0febb57e init commit 2026-03-03 15:16:28 +07:00