Platform toggles
We have two mechanisms to configure the platform and change its behavior without needing to deploy code changes. Our main goal is to allow us to safely deploy code and disable features when they are not fully tested.
Flags
Flags can be found in Django admin, under the Accounts section. They can be toggled on and off to enable and disable per-user or per-company features.
Current list of flags:
enable_epa_sep: EPA SEP page on emissions dashboard.enable_sensor_data: Enables sensor data integration on the site detail page (Sensirion device measurements and alerting plots).enable_longpath_data: Enables LongPath data on the site detail page and timeline. Requiresenable_sensor_datafor the detail page. Controls visibility of LongPath alerting plots and rolling averages charts.show_aersage_link: Shows the AERSAGE AI link in the sidebar.enable_download_emission_pdf: Enables downloading emissions as PDF files.enable_experimental_heatmaps: Enables experimental heatmap layers and their data controls on the map.
Switches
Switches can be found under the Django-Waffle section of the admin. They are used to turn platform features on and off globally.
Current list of switches:
enable_periodic_tasks: Enables Celery periodic tasks.enable_mobile_auth: Enables mobile authentication.import-carbon-mapper-tanager: Enables importing tanager data from carbonmapper.carbonmapper_s3_import: Enables importing Carbon Mapper data from S3.unep_api_import: Enables importing data from the UNEP API.new-infrastructure-emission-matching: Enables new matchers.epa_sep_scraped: Enables EPA SEP scraper that fetches data daily.ip_whitelist: Enables IP whitelisting for companies.plume_outline_matching: enables matching plumes using outlines.compute_cross_matches_in_memory: deprecated (old builder).workflow-automation-enabled: Enables the workflow automation engine (event creation and auto-transitions).geofence_optimization: Enables the geofence optimization path used across emissions, analytics, infrastructure, events, non-detects, and EPA SEP queries.