Skip to content

build: upgrade to FOCA 0.15 #104

Closed
Closed

Description

@uniqueg

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:

How?

  1. Require foca>=0.15.0,<0.16 (and update the lock/requirements files).
  2. 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-info in 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.
  3. Error media type: set exceptions.media_type: application/json in config.yaml and remove the application/problem+json declarations from cloud_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) have Content-Type: application/json.
  4. Adapt to any other changes in the FOCA 0.15 changelog.
  5. Docs: README (errors, service info), changelog/release notes.

Acceptance criteria

  • cloud-registry runs on FOCA 0.15 with all tests passing.
  • GET /service-info is 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).

Activity

  1. uniqueg commented on Oct 21, 2026

    @uniqueg
    MemberAuthor

    Done in 792194a (#127). The PR was not linked to the merge after a timeout, so this issue was not closed automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions