PolicyEngine / policyengine-api

PolicyEngine's REST API for computing policy impacts.
GNU Affero General Public License v3.0
7 stars 20 forks source link

Change get_user_policy controller to filter by country_id #1463

Closed anth-volk closed 2 months ago

anth-volk commented 2 months ago

Fixes #1462. This functionally reverts #1438 in order to restrict the user policies returned by the user_policy GET endpoint to those of the country_id passed via the URL, preventing a challenging front-end bug whereby displaying all of a user's policies across countries fails because the front-end app has no access to the relevant metadata for other countries.