feat: Health Facility API with V2 endpoints for connectivity and feature flags#342
Open
Victor1Ja wants to merge 3 commits into
Open
feat: Health Facility API with V2 endpoints for connectivity and feature flags#342Victor1Ja wants to merge 3 commits into
Victor1Ja wants to merge 3 commits into
Conversation
…nd feature flags - Updated @nestjs/cli to version 10.4.9 in package.json and package-lock.json. - Added new V2 endpoints for connectivity and feature flags, including: - `POST /api/v2/connectivity` for facility-aware connectivity checks. - `GET /api/v2/feature-flags` for retrieving feature flags. - Enhanced health API to support government ID filtering. - Introduced new DTOs and services for handling V2 data structures. - Updated existing services and controllers to accommodate new V2 functionality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for measuring connectivity at health facilities (in addition to schools) and introduces V2 API endpoints consumed by the frontend.
This branch is a clean rebuild of
feature/health-entity-api-implon top ofdevelop, keeping only the final health-facility work (originally by Rashan Smith) and the V2 endpoint implementation.Changes
Health Facility API
facility-type,health,registration, andnearest-facility(controllers, services, DTOs, and tests).facility_type_id,registration_id,giga_id_health).entity_typewas renamed tofacility_typeacross schema and implementation, with a compatibility helper (facility-type-compat.ts).V2 endpoints
measurement-v2.mapperto build V2 measurement rows, plus query validation.Database (Prisma)
facility_typeandregistrationmodels, new measurement columns and indexes.20260624120000_rename_entity_type_to_facility_type,20260720120000_normalize_facility_type_codes.seed-health-entity-v1.sql.Other
package.json/package-lock.json).docs/health-entity-v1-*.md(API changes, backend refactor, migration status, testing guide).Testing
npm run buildpasses.develop(no new suite failures introduced by this branch).Notes
feature/health-entity-api-implbranch, which accumulated intermediate merge commits; the old branch is preserved asbackup/health-entity-api-impllocally.