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.

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: