Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 2.98 KB

File metadata and controls

35 lines (25 loc) · 2.98 KB

Upstream CommCare Connect Reference

This labs repo was forked from dimagi/commcare-connect. Several production apps were removed during the March 2026 simplification. Here's where to find the original code if you need it for reference.

Removed Apps

App Purpose Upstream Location
data_export CSV/JSON export API for opportunity data. Provides /export/labs_record/ endpoint that labs consumes via HTTP. commcare_connect/data_export/
form_receiver Receives form submissions from CommCare HQ, creates UserVisit/CompletedWork records. commcare_connect/form_receiver/
reports Invoice and delivery reports with django-tables2 and django-filters. commcare_connect/reports/
microplanning Geographic work area mapping with PostGIS and vector tiles. commcare_connect/microplanning/
flags Waffle feature flags for production rollouts. commcare_connect/flags/
connect_id_client Client library for ConnectID push notifications. commcare_connect/connect_id_client/
commcarehq HQServer model and CommCare HQ API integration. commcare_connect/commcarehq/
commcarehq_provider django-allauth OAuth2 provider for CommCare HQ login. commcare_connect/commcarehq_provider/
deid De-identification utilities. commcare_connect/deid/

Gutted Apps

App What Was Removed What Remains
opportunity All views, URLs, admin, forms, tables, management commands, tests (~22K LOC) models.py (all model definitions), apps.py, __init__.py, migrations/

How Labs Accesses Production Data

Labs does not run data_export locally. Instead:

  1. LabsRecordAPIClient (in commcare_connect/labs/integrations/connect/api_client.py) makes HTTP calls to the production CommCare Connect server at https://commcare-connect.org/export/labs_record/.
  2. The production server runs the upstream data_export app which queries the LabsRecord model.
  3. Labs receives JSON responses and wraps them in LocalLabsRecord proxy objects.

Fork Point

This repo diverged from upstream around October 2025. The labs-main branch contains all labs-specific development.