Skip to content

Commit

Permalink
Add feature flag for presidential map
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeaufort committed Feb 18, 2020
1 parent 9dd0e2d commit 87ed1c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fec/data/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from data import views
from data import views_datatables
from fec import settings

urlpatterns = [
url(r'^data/$', views.landing),
Expand All @@ -16,9 +17,6 @@
url(r'^data/raising-bythenumbers/$', views.raising),
url(r'^data/spending-bythenumbers/$', views.spending),

# Presidential Campaign Finance Map
url(r'^data/candidates/president/presidential-map/$', views.pres_finance_map),

# Feedback Tool
url(r'^data/issue/reaction/$', views.reactionFeedback),
url(r'^data/issue/$', views.feedback),
Expand Down Expand Up @@ -49,3 +47,9 @@

url(r'^widgets/aggregate-totals/$', views.aggregate_totals),
]

if settings.FEATURES.get('presidential_map'):
# Presidential Campaign Finance Map
urlpatterns.append(
url(r'^data/candidates/president/presidential-map/$', views.pres_finance_map)
)
1 change: 1 addition & 0 deletions fec/fec/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'use_tag_manager': bool(env.get_credential('FEC_FEATURE_USE_TAG_MANAGER', '')),
'contributionsbystate': bool(env.get_credential('FEC_FEATURE_CONTRIBUTIONS_BY_STATE', '')),
'ierawfilters': bool(env.get_credential('FEC_FEATURE_IE_RAW_FILTERS', '')),
'presidential_map': bool(env.get_credential('FEC_FEATURE_PRESIDENTIAL_MAP', '')),
}

ENVIRONMENTS = {
Expand Down

0 comments on commit 87ed1c1

Please sign in to comment.