Commit Graph
128 Commits
Author SHA1 Message Date
Power BI DevandClaude Opus 5.5 ddf7ed0a17 dwh_spota: nama kelompok keahlian, bukan ID
getListDataTAMahasiswa mengirim kelompokKeahlian berupa idKK (1..4), sehingga dashboard
menampilkan "1 2 3 4". Load kini ikut menarik getListKK ke raw.spota_kk dan staging
memetakan ID -> nama; daftar cadangan dari tb_kelompok_keahlian SPOTA dipakai bila
getListKK gagal atau bentuk responsnya lain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:24:30 +07:00
Power BI DevandClaude Opus 5.5 02a9e6f848 add dwh_spota_daily dag (spota api -> postgres dwh), ganti spota_antrean_daily
raw     : topik/draft TA, KK, jadwal ujian, angkatan, nama dosen dari API SPOTA
          (tanpa nama/email/HP/foto mahasiswa) + raw.spota_riwayat_pembimbing (kumulatif:
          hari pertama pembimbing 1/2 terlihat terisi)
staging : NIM/NIP dinormalisasi, kode semester -> periode, KK per topik, jadwal
mart    : spota_topik (keputusan, KK, pembimbing, masa tunggu, tahap ujian eDOXID/SPOTA),
          spota_mhs_judul (mahasiswa aktif belum lulus + status judul)

Jadwal 20:00 UTC (03:00 WIB), setelah dwh_tugas_akhir_daily karena memakai
mart.dim_mahasiswa, mart.dim_dosen, mart.fact_ujian_ta. spota_antrean_daily (MySQL dashboard)
dihapus. Env: SPOTA_API_SECRET (sudah ada di docker-compose).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:17:31 +07:00
Power BI DevandClaude Opus 5.5 d01fd5e94d re-add spota_antrean_daily dag (spota api -> antrean penetapan pembimbing di db dashboard)
Mengembalikan f7bc1e3 (di-revert di 786a63a saat Airflow down). Penyebab down ternyata
bentrok host "postgres", sudah diperbaiki di ccf9679, bukan DAG ini.
Env baru: SPOTA_API_SECRET (wajib, set di Coolify), SPOTA_API_URL (opsional).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:04:44 +07:00
Power BI DevandClaude Opus 5.5 ccf967984f rename airflow metadata db service postgres -> airflow-metadb
Setelah redeploy 2026-10-20, host "postgres" ter-resolve ke container Postgres lain
di jaringan Coolify (fd6c:e709:9132::17) sehingga scheduler & webserver gagal login
("password authentication failed for user airflow"), juga pada versi 78c5008.
Nama service unik mencegah bentrok; volume postgres_data tetap dipakai.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:59:38 +07:00
Power BI Dev 786a63a138 Revert "add spota_antrean_daily dag (spota api -> antrean penetapan pembimbing di db dashboard)"
This reverts commit f7bc1e31f4.
2026-10-20 14:51:39 +07:00
Power BI DevandClaude Opus 5.5 f7bc1e31f4 add spota_antrean_daily dag (spota api -> antrean penetapan pembimbing di db dashboard)
Catat harian topik yang disetujui Ketua KK tapi pembimbing 1/2 belum lengkap,
plus hari pertama pembimbing terisi, ke tabel spota_antrean_pembimbing.
Env baru: SPOTA_API_SECRET (wajib), SPOTA_API_URL (opsional).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:44:46 +07:00
Power BI DevandClaude Opus 5.5 78c5008d64 dwh_tracer: database name is tracer_buffer on prod too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:45:39 +07:00
Power BI DevandClaude Opus 5.5 d41d1afd16 dwh_tracer: portable json extraction (mysql 5.7/8 and mariadb)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:45:17 +07:00
Power BI DevandClaude Opus 5.5 fc44aaeee1 dwh_tracer: default database db_tracer_buffer (prod name)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 13:42:19 +07:00
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
Debby d21fac69aa add condition at framework and edit narrative indicator 2026-07-16 09:57:16 +07:00
Debby 989d3445a0 add condition in framework 2026-07-01 19:50:44 +07:00
Debby f738eacbfb add condition desk 2026-06-29 18:16:08 +07:00
Debby d379b2c729 add a condition for pillar 2026-06-29 10:29:44 +07:00
Debby ebc189f2a0 rename pillar 2026-06-27 13:23:02 +07:00
Debby 17cc7833ad lowercase key 2026-06-07 12:11:13 +07:00
Debby 1007e30764 agg list 2026-06-07 11:39:09 +07:00
Debby f512b73d32 rename indicators 2026-06-07 10:53:44 +07:00
Debby 43f0e36233 delete translator 2026-06-07 09:36:49 +07:00
Debby 355f31b096 add library translated 2026-06-07 09:19:15 +07:00
Debby 777865ffe1 translate indo 2026-06-07 09:10:14 +07:00
Debby ca1e0d3949 country name indo version 2026-06-07 08:09:14 +07:00
Debby 512c08bff3 add sustainability ind version 2026-06-05 17:49:42 +07:00
Debby cfb0df3a15 indonesian version column 2026-05-19 10:09:48 +07:00
Debby 4bab746779 create colomn indonesian text 2026-05-12 09:55:15 +07:00
Debby f9d013f8e6 new narrative teks 2026-04-22 16:02:05 +07:00
Debby 40528766bd add metadata aggregate 2026-04-16 08:14:10 +07:00
Debby 74be63226a dag etl 2026-04-15 13:56:55 +07:00
Debby 76b451b2c1 schdule /3 bulan dan tambah metadata 2026-04-15 13:37:40 +07:00
Debby fa2cf75634 ganti narasi 2026-04-07 23:10:34 +07:00
Debby f13a76756f capek eror 2026-04-07 20:58:34 +07:00
Debby e00e9c569d sum indicator problem solve 2026-04-07 20:04:52 +07:00
Debby 00cdf961a9 ulang 2026-04-07 19:14:10 +07:00
Debby 8aed670267 narrative indicator 2026-04-07 18:15:58 +07:00
Debby 327768cc01 delete mark 2026-04-07 11:48:41 +07:00
Debby 7ccc3ea35d rename pillar 2026-04-07 11:07:58 +07:00
Debby 933c370606 try again 2026-04-07 10:19:35 +07:00
Debby 0384e62b01 bismillah done 2026-04-07 10:00:45 +07:00
Debby cebb6b88eb finish etl code 2026-04-06 16:37:05 +07:00
Debby 5313039b50 bismillah capekk 2026-04-03 08:40:30 +07:00
Debby f652f2f730 agregate fact selected 2026-04-03 08:09:57 +07:00
Debby d4bee86331 finish fact dan dim 2026-04-02 20:31:19 +07:00
Debby 47ea9c0492 code last done 2026-04-02 19:58:05 +07:00
Debby 6030268924 salah file 2026-04-02 17:43:31 +07:00