From 35951a87924ebeab7344643b47139ea50c901f09 Mon Sep 17 00:00:00 2001 From: Priya Kasireddy Date: Wed, 25 Mar 2026 11:58:41 -0400 Subject: [PATCH] Remove rulemakings feature flag --- webservices/api_setup.py | 4 +--- webservices/rest.py | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/webservices/api_setup.py b/webservices/api_setup.py index b9351fac8..5b20a0027 100644 --- a/webservices/api_setup.py +++ b/webservices/api_setup.py @@ -39,7 +39,6 @@ api = restful.Api(v1) api.representations['application/json'] = util.output_json SHOW_TEST_F1 = env.get_credential('FEC_SHOW_TEST_F1', False) -RULEMAKINGS_FEATURE = env.get_credential('FEC_FEATURE_RULEMAKINGS', False) api.add_resource(national_party.NationalParty_ScheduleAView, '/national_party/schedule_a/') @@ -194,8 +193,7 @@ api.add_resource(legal.UniversalSearch, '/legal/search/') api.add_resource(legal.GetLegalCitation, '/legal/citation//') api.add_resource(legal.GetLegalDocument, '/legal/docs//') -if RULEMAKINGS_FEATURE: - api.add_resource(rulemaking.RulemakingSearch, '/rulemaking/search/') +api.add_resource(rulemaking.RulemakingSearch, '/rulemaking/search/') api.add_resource(operations_log.OperationsLogView, '/operations-log/') api.add_resource(presidential.PresidentialByCandidateView, '/presidential/contributions/by_candidate/') api.add_resource(presidential.PresidentialSummaryView, '/presidential/financial_summary/') diff --git a/webservices/rest.py b/webservices/rest.py index 75a5b5ce5..210b953bb 100644 --- a/webservices/rest.py +++ b/webservices/rest.py @@ -84,7 +84,6 @@ RESTRICT_MESSAGE = "We apologize for the inconvenience, but we are temporarily " \ "blocking API traffic. Please contact apiinfo@fec.gov if this is an urgent issue." SHOW_TEST_F1 = env.get_credential('FEC_SHOW_TEST_F1', False) -RULEMAKINGS_FEATURE = env.get_credential('FEC_FEATURE_RULEMAKINGS', False) def sqla_conn_string(): @@ -272,8 +271,7 @@ def pop_context(task_id, task, *args, **kwargs): apidoc.register(operations_log.OperationsLogView, blueprint='v1') apidoc.register(legal.UniversalSearch, blueprint='v1') apidoc.register(legal.GetLegalDocument, blueprint='v1') - if RULEMAKINGS_FEATURE: - apidoc.register(rulemaking.RulemakingSearch, blueprint='v1') + apidoc.register(rulemaking.RulemakingSearch, blueprint='v1') apidoc.register(candidate_aggregates.CandidateTotalAggregateView, blueprint='v1') apidoc.register(spending_by_others.ECTotalsByCandidateView, blueprint='v1') apidoc.register(spending_by_others.IETotalsByCandidateView, blueprint='v1')