Skip to content

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. Requires enable_sensor_data for 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.
  • enable_area_surveys: Enables area survey data layer on the map.
  • unmatched_emissions: Enables the unmatched emissions menu on the frontend.
  • enable_overviews: Enables the site overviews on main 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_company_specific_backups: Enables backups (the weekly task, the admin "Start backup job" button and run_backups). Off unless created.
  • 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).
  • limit_site_moves: Refuses UPDATE_SITES imports that move a site more than DATA_IMPORT_MAX_SITE_MOVE_M (500 m by default). Off unless created; turn it on in production.
  • limit_emission_import_updates: Refuses emission imports that update more than DATA_IMPORT_MAX_UPDATED_RATIO (10% by default) of a provider's existing data points. Off unless created; turn it on in production.
  • limit_emission_import_new_points: Refuses automated emission imports that create more than DATA_IMPORT_MAX_CREATED_RATIO (10% by default) of a provider's existing data points. Off unless created; turn it on in production.
  • protect_detection_timestamps: Refuses emission imports that change an existing data point's detection timestamp. Off unless created; turn it on in production.