Skip to content

Hide state action behind feature flag#943

Merged
esoterik merged 3 commits into2024-upgrades-mainfrom
hide-state-actions
May 7, 2025
Merged

Hide state action behind feature flag#943
esoterik merged 3 commits into2024-upgrades-mainfrom
hide-state-actions

Conversation

@hartsick
Copy link
Member

@hartsick hartsick commented Apr 25, 2025

According to the docs, the Google Civic API is going to be shut down on April 30. We need to remove the corresponding code and decide on if/how to move forward with a new service that provides representative info.

In meantime this turns off the state level actions from the user interface (public and admin) and returns a 404 from the corresponding endpoint in the tools controller when STATE_ACTIONS_ENABLED is unset.

In the future, we can swap out the backend logic and reenable by setting the env var to true. Felt this would be easier to refactor and pick back up than removing the code entirely.

I think I hid all of the places where a user might trigger the state action code, but I could definitely use a once over to confirm. Here is the recent MR that refactors the state-level actions for reference.

@hartsick hartsick requested a review from esoterik April 25, 2025 23:18
@hartsick hartsick marked this pull request as ready for review April 25, 2025 23:18
The Civic API is going to be shut down in a week or two. We need to remove
the corresponding code and decide on if/how to move forward with a new service
that provides representative info.

In meantime this turns off the state level actions from the user interface
(public and admin) and returns a 404 from the corresponding endpoint in the
tools controller when STATE_ACTIONS_ENABLED is unset.

In the future, we can swap out the backend logic and reenable by setting
the env var to true.
@hartsick hartsick force-pushed the hide-state-actions branch from e897c22 to aac8850 Compare April 25, 2025 23:25
@esoterik esoterik force-pushed the hide-state-actions branch from c73a707 to 247731f Compare May 2, 2025 22:03
@esoterik esoterik merged commit 7b039a4 into 2024-upgrades-main May 7, 2025
2 checks passed
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.

2 participants