{{ message }}
Repository navigation
Conversation
…ies.com.br saiu do ar) O provider original que servia o shape com endereço/IBGE/telefone (api.universities.com.br) saiu do ar de forma permanente — o domínio não resolve mais (NXDOMAIN), sem snapshot em arquivo web. O endpoint /universities/v1 passou a retornar 500 (getaddrinfo EBUSY). Fonte nova: Censo da Educação Superior (INEP/MEC), pública e gratuita, versionada em services/universities/snapshots/latest.json (2574 IES, ~657KB) já no formato de resposta da rota. O telefone não consta no cadastro do INEP → phone: null (campo opcional na doc, compatível retroativo). City normalizada em caixa alta com acento correto (CUIABÁ). - service lê do snapshot local (padrão PIX), sem chamada externa - script scripts/generate-universities-snapshot.js regenera a partir do CSV do INEP (npm run snapshot:universities) - teste E2E atualizado para o comportamento real (id 1 = UFMT, id inexistente → 404, lista > 2400) - teste unitário do service novo (padrão tests/services/) Co-authored-by: Hermes Agent <noreply@nousresearch.com> Ai-tool: hermes Ai-model: deepseek-v4-flash Ai-os: wsl
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




O endpoint
/universities/v1passou a retornar 500 porque a fonte original (api.universities.com.br) saiu do ar permanentemente — o domínio não resolve mais (NXDOMAIN), sem snapshot em arquivo web.\n\n## Solução: snapshot versionado (padrão da casa, como PIX/banks/hospitais)\n\n| Item | Detalhe |\n|---|---|\n| Fonte | Censo da Educação Superior (INEP/MEC), pública e gratuita • 100% alinhado à régua free do projeto |\n| Snapshot |services/universities/snapshots/latest.json— 2.574 IES, ~657KB, já no formato de resposta da rota |\n| Origem validada | id =CO_IESdo INEP;CO_MUNICIPIO_IES= IBGE; endereço/CEP/bairro conferem com a UFMT do teste (id 1) |\n| Script |scripts/generate-universities-snapshot.js(npm run snapshot:universities) regenera a partir do CSV do INEP |\n| Service | lê do snapshot local (sem chamada externa) + erro tipado se lista vazia |\n\n## Compatibilidade\n-phone→null: o cadastro do INEP não tem telefone (provider enriquecia de fonte morta). Campo opcional na doc, compatível retroativo.\n-citynormalizada em caixa alta com acento correto (CUIABÁ).\n- Contrato da rota mantido (id/full_name/name/ibge/city/uf/zipcode/street/number/neighborhood/phone), 404 inalterado.\n\n## Validação\n-vitestE2Etests/universities-v1.test.js→ 4/4 ✓ (id 1 = UFMT, id inexistente → 404, lista > 2400, shape)\n- Teste unitário do service novo (tests/services/universities.test.js) → 5/5 ✓\n- ESLint 0 erros • paridade docs↔rotas 100% (87/87) • docs-spec-refs ✓\n\n## Ações manuais após merge\n1. Validar/universities/v1em produção (deploy ~3min)\n2. Considerar workflow de snapshot agendado (como banks/pix) para manter o censo atualizado anualmente