Repository navigation
Closed
Description
Why?
FOCA v0.15.0 (milestone: https://github.com/elixir-cloud-aai/foca/milestone/3) adds features that replace app code in cloud-registry and remove a deviation from the GA4GH spec:
- feat: serve service info from config foca#314: service info served from the config by FOCA (cloud-registry implements this itself first, feat!: serve service info from config only #100).
- feat: make error media type configurable foca#315: configurable media type of error responses. cloud-registry's errors are sent as
application/problem+json(FOCA's default), while the GA4GH specs declareapplication/json; fix!: service info id, precedence and headers #96 therefore declaredapplication/problem+jsonin addition.
How?
- Require
foca>=0.15.0,<0.16(and update the lock/requirements files). - Service info: replace cloud-registry's service-info controller and models (from feat!: serve service info from config only #100) with FOCA's; point
GET /service-infoin the specs to FOCA's controller; keep the config section, the version from the package metadata and the startup validation (now FOCA's). Remove code and tests that FOCA now covers. - Error media type: set
exceptions.media_type: application/jsoninconfig.yamland remove theapplication/problem+jsondeclarations fromcloud_registry/api/additions.openapi.yaml, so that error responses match the GA4GH specs exactly. Test that all error responses (app exceptions, request validation, security errors, unknown routes) haveContent-Type: application/json. - Adapt to any other changes in the FOCA 0.15 changelog.
- Docs: README (errors, service info), changelog/release notes.
Acceptance criteria
- cloud-registry runs on FOCA 0.15 with all tests passing.
-
GET /service-infois served by FOCA, unchanged for clients. - Every error response has
Content-Type: application/json, and the specs declare only that.
Dependencies: FOCA v0.15.0 release (elixir-cloud-aai/foca#314, elixir-cloud-aai/foca#315); #100. Group roles (elixir-cloud-aai/foca#316) are a separate feature (#105).
Metadata
Metadata
Assignees
Labels
No labels
Activity
fix: address low-severity review findings (#121)
uniqueg commentedon Oct 21, 2026
Done in 792194a (#127). The PR was not linked to the merge after a timeout, so this issue was not closed automatically.