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_map_v2: new map with dashboard.enable_epa_sep: EPA SEP page on emissions dashboard.enable_site_page_non_detects: display non-detects on site page plot and tables.enable_site_page: enables site page.enable_emission_overviews: enables emission clustering on map.new_picking_behavior: enables map menu that displays infrastructure information when clicking overlapping items on map.use_new_pipelines: enables new pipeline models.show_public_emissions: Displays/hides public emissions.enable_unified_dashboards: Enables emission management dashboards.enable_preset_new_filtering: Enables using the preset index for optimized map filtering when using presets.
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:
emission_linking: Enables linking emission events together.import-carbon-mapper-tanager: Enables importing tanager data from carbonmapper.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.single_sign_on: Enables SSO.fancy_emails: Enables HTML emails.plume_outline_matching: enables matching plumes using outlines.compute_cross_matches_in_memory: deprecated (old builder).