Create data service layer connecting dbt marts to dashboard #69
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Create a service layer that queries the dbt mart tables and provides data to the dashboard callbacks. This abstracts database queries from the UI layer.
Files to Create
portfolio_app/toronto/services/__init__.pyportfolio_app/toronto/services/neighbourhood_service.pyportfolio_app/toronto/services/geometry_service.pyService Functions
NeighbourhoodService
GeometryService
Data Flow
Acceptance Criteria
Technical Notes
geopandasfor geometry handlingfunctools.lru_cacheorcachetoolsfor cachingLabels: type:feature, component:backend, priority:high, tech:python, tech:postgresql