Logo
Explore Help
Register Sign In
Antoine/ATOCore
1
0
Fork 0
You've already forked ATOCore
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
Files
f19b3a3d0f046ef41449301c0449de07504d17e3
ATOCore/.obsidian/appearance.json

1 line
2 B
JSON
Raw Normal View History

fix(api): R14 — promote route translates V1-0 ValueError to 400 POST /entities/{id}/promote now wraps the promote_entity call in try/except ValueError → HTTPException(400). Previously the new V1-0 provenance re-check raised ValueError that the route didn't catch, so legacy no-provenance candidates promoted via the API surfaced as 500 instead of 400. Matches the existing ValueError → 400 handling on POST /entities (api_create_entity at routes.py:1490). Test: test_api_promote_returns_400_on_legacy_no_provenance inserts a pre-V1-0 legacy candidate directly, POSTs to the promote route, asserts 400 with the expected detail, asserts the row stays candidate. Test count: 547 -> 548. Full suite green in 72.91s. Closes R14. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 15:29:45 -04:00
{}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 50ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API