from auth.auth_view import AuthorizedView from data_health.data_health_service import DataHealthService from data_health.schemas import ReportingDataHeathQuery, ReportingDataHealthResponse from utils.handlers import get_request_query_model from utils.test_helpers import sync class ProjectReportingDataHealthView(AuthorizedView): data_health_service = DataHealthService() @sync async def get(self, project_id: int) -> ReportingDataHealthResponse: params = get_request_query_model(ReportingDataHeathQuery) return await self.data_health_service.get_project_data_heath_for_reporting_tab( project_id=project_id, params=params )