feat(pipeline): add Meltano + dbt + Airflow ELT pipeline scaffold
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 35s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m9s
Build and Push Docker Images / Build Integrator (push) Successful in 56s
Build and Push Docker Images / Build Kestra Init (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s

Replaces the hand-rolled integrator with a production-grade ELT pipeline
using Meltano (Singer taps), dbt Core (medallion architecture), and
Apache Airflow (orchestration). Adds Typesense for search and PostGIS
for geospatial queries.

- 6 custom Singer taps (GIAS, EES, Ofsted, Parent View, FBIT, IDACI)
- dbt project: 12 staging, 5 intermediate, 12 mart models
- 3 Airflow DAGs (daily/monthly/annual schedules)
- Typesense sync + batch geocoding scripts
- docker-compose: add Airflow, Typesense; upgrade to PostGIS
- Portainer stack definition matching live deployment topology

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-26 08:37:53 +00:00
parent 8aca0a7a53
commit 8f02b5125e
65 changed files with 2822 additions and 72 deletions

View File

@@ -0,0 +1,17 @@
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "tap-uk-idaci"
version = "0.1.0"
description = "Singer tap for UK IDACI deprivation index"
requires-python = ">=3.10"
dependencies = [
"singer-sdk~=0.39",
"requests>=2.31",
"pandas>=2.0",
]
[project.scripts]
tap-uk-idaci = "tap_uk_idaci.tap:TapUKIDACI.cli"

View File

@@ -0,0 +1 @@
"""tap-uk-idaci: Singer tap for IDACI (Income Deprivation Affecting Children Index)."""

View File

@@ -0,0 +1,41 @@
"""IDACI Singer tap — extracts deprivation index lookup data."""
from __future__ import annotations
from singer_sdk import Stream, Tap
from singer_sdk import typing as th
class IDACIStream(Stream):
"""Stream: IDACI scores by LSOA."""
name = "idaci"
primary_keys = ["lsoa_code"]
replication_key = None
schema = th.PropertiesList(
th.Property("lsoa_code", th.StringType, required=True),
th.Property("idaci_score", th.NumberType),
th.Property("idaci_decile", th.IntegerType),
).to_dict()
def get_records(self, context):
# TODO: Implement IDACI extraction
# Source: MHCLG IoD 2019 LSOA-level data
# Available as a static CSV download
self.logger.warning("IDACI extraction not yet implemented")
return iter([])
class TapUKIDACI(Tap):
"""Singer tap for UK IDACI data."""
name = "tap-uk-idaci"
config_jsonschema = th.PropertiesList().to_dict()
def discover_streams(self):
return [IDACIStream(self)]
if __name__ == "__main__":
TapUKIDACI.cli()