Skip to content

Commit 1258aca

Browse files
committed
Add feature flag around tallying to make it unreachable in production
1 parent 88d6403 commit 1258aca

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@ def opengraph_image_tag(service_url, name)
6161
def cached_counts = TeamCachedCounts.new(current_team)
6262

6363
def tallying_enabled?
64-
params[:tallies] == "true"
64+
Flipper.enabled?(:tallying) && params[:tallying] == "true"
6565
end
6666
end

config/feature_flags.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ import_low_pds_match_rate: Prevent processing uploads with a low pds match rate.
1919
pds_lookup_during_import: Perform PDS lookups as part of the patient import
2020
processing.
2121

22+
tallying: Enables the session tally-based overview page
23+
2224
testing_api: Basic API useful for automated testing.
2325

2426
reporting_api: Enables the Commissioner reporting component to authenticate to Mavis via OAUTH 2.0
2527
Authorization Code Flow (https://datatracker.ietf.org/doc/html/rfc6749#section-4.1), and retrieve
26-
statistics from /api/reporting/
28+
statistics from /api/reporting/

0 commit comments

Comments
 (0)