Remove the routes only the legacy site used, check health at /health, and stop serving Canada, Nigeria and Israel
Les mainteneurs répondent en général sous 3 jours
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Refactorisation
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Domaine
- api, backend, infrastructure
Piste de recherche
Start by reading the route definitions, health check and startup probe configuration, deployment health checks, country list and model package dependencies. Check the tests and OpenAPI document that cover the listed routes and countries. The issue is complete when the legacy routes and health endpoints are removed, /health serves the probes, only US and UK remain, and the pre-merge traffic checks pass; linked pull request #4017 is already open.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
What
Remove what only legacy.policyengine.org or the API documentation used, move Cloud Run health checks to /health, and stop serving Canada, Nigeria and Israel.
- Routes removed:
/{country_id}/user-policy(POST, GET, PUT),/{country_id}/user-profile(POST, GET, PUT),GET /{country_id}/policies,GET /simulations,GET /andGET /specification.POST /{country_id}/calculatestays: it still serves about 140,000 requests a month, and its callers move first in a later change. - Health checks:
/healthreports ready only once the startup warmup has finished and the runtime configuration is valid (503 before), taking over from/readiness-check. The Cloud Run startup probe and the deployment's health checks poll it, and/liveness-checkand/readiness-checkare removed. - Countries: the v1 routes serve only the US and the UK, their country lists derive from the one country list in code, and the Canada, Nigeria and Israel model packages are no longer installed.
Why
The legacy site is being retired, and production request logs for the 30 days to 2026-10-19 show little else calling these routes: no requests for saved policies or user profiles, 13 for the policy search, 11 for the recent-simulations list, and about 24,300 for GET /, from an uptime monitor and link previews. Keeping them means keeping code, tests and a hand-written OpenAPI document that nothing uses. Two health-check routes beside /health make it unclear which one deployments rely on. About 1,160 requests named the three countries in those 30 days, 784 of them from the legacy site and 49 from app.policyengine.org (which stops offering them first); dropping their packages lowers the API's memory use.
Before merging
- legacy.policyengine.org is no longer served, and request logs show no remaining traffic to the removed routes or the three countries.
- The external uptime monitor polling
GET /is moved to/health.
- Langage dominant
- Python
- Étoiles
- 18
- Forks
- 33
- Merge moyen
- 2 j 18 h
- PR mergées (30 j)
- 36
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de PolicyEngine/policyengine-api
-
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
PolicyEngine/policyengine-api#3911 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
PolicyEngine/policyengine-api#3910 ·
Les mainteneurs répondent en général sous 3 jours
-
Remove the unauthenticated v2 household listPeut-être pris @MaxGhenis l’a pris il y a 1 jour. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 20/100
PolicyEngine/policyengine-api#4031 ·
Les mainteneurs répondent en général sous 3 jours
-
Remove the v1 user routes and keep complete simulation and report results finalPeut-être pris @MaxGhenis l’a pris il y a 2 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
PolicyEngine/policyengine-api#4028 ·
Les mainteneurs répondent en général sous 3 jours
-
Store the metadata v3 reads in the v2 catalog, from PolicyEngine.py's public recordsPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
PolicyEngine/policyengine-api#4022 ·
Les mainteneurs répondent en général sous 3 jours
Toutes les issues de PolicyEngine/policyengine-api
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
NVIDIA/flare-local-inference#90 ·
Les mainteneurs répondent en général sous 1 jour
-
area/streaming comp/gateway P2 platform/telegram type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
NousResearch/hermes-agent#144897 ·
Les mainteneurs répondent en général sous 1 jour
-
request-theme
Difficulté 1/5 Moins d'une heure Accessibilité débutants 66/100
LizardByte/ThemerrDB#9575 ·
Les mainteneurs répondent en général sous 1 jour
-
Author Page: noshin-nawalOuverteauthor-page correction
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
acl-org/acl-anthology#10599 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
zilliztech/memsearch#818 ·
Les mainteneurs répondent en général sous 1 jour