Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EMS_ENABLED env variable #516

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Add EMS_ENABLED env variable #516

wants to merge 1 commit into from

Conversation

josellausas
Copy link
Contributor

About

This PR adds a environment variable boolean for enabling/disabling EMS Heatmaps.

Relevant Issues

Features

Provides environment variable EMS_ENABLED or change variable default inside settings/base.py
When True, should try to load EMS Heatmap from URL

Screen Shot 2019-04-08 at 10 08 09 AM

Screen Shot 2019-04-08 at 10 07 46 AM

When False, it should skip all EMS Heatmap

Screen Shot 2019-04-08 at 10 08 18 AM

Screen Shot 2019-04-08 at 10 08 53 AM

Testing Instructions

  1. Go to settings/base.py and change EMS_ENABLED to True.
  2. Check that EMS Heatmaps are being shown : http://192.168.33.15:8000/departments/88369/mehlville-fire-protection-district
    (Not all departments have EMS data)
  3. Go to settings/base.py and change EMS_ENABLED to False
  4. Go to http://192.168.33.15:8000/departments/88369/mehlville-fire-protection-district and check that EMS Heatmap option is not shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant