Skip to content

feat(plugins): add WES to typed backend lists #789

Closed

Description

@uniqueg

Problem

foca.plugins.backends knows the backends of TES gateways only: API_TYPES has tes alone, and ServiceEntry.type is Literal["ga4gh-tes"], so BackendListConfig and BackendList refuse WES instances. WES gateways (proWES) must register the WES API type in API_TYPES themselves, subclass ServiceEntry with another type (overriding a Literal field, with type: ignore), validate the list with a model of their own and bypass BackendList.__init__'s validation. The comment in BackendList.__init__ already anticipates a second API type.

What to do

  • API_TYPES["wes"] = ApiType("org.ga4gh", "wes", "/ga4gh/wes/v1", "ga4gh-wes").
  • ServiceEntry.type: Literal["ga4gh-tes", "ga4gh-wes"]; BackendList checks that each service entry's type is API_TYPES[api].entry_type (the check named in the comment).
  • Optionally an api_path field on ServiceEntry (proTES's TesServiceEntry and proWES's WesServiceEntry both add one, with the same validator).
  • Docs ("Backend lists" in docs/plugins.md), changelog, tests for both APIs.

Done when

  • BackendList(entries, api="wes") accepts type: ga4gh-wes entries and refuses ga4gh-tes ones (and vice versa).
  • proWES can drop its API_TYPES registration and WesBackendList (follow-up in proWES once released).

Activity

  1. added
    priority: medium
    status: triage
    type: feature
    workload: hours
    status: in progress
    and removed
    status: triage
    on Nov 18, 2026
  2. self-assigned this
    on Nov 18, 2026
  3. moved this from Backlog to In progress in ELIXIR On-Cloud: Low Priorityon Nov 18, 2026
  4. moved this from In progress to In review in ELIXIR On-Cloud: Low Priorityon Nov 18, 2026
  5. removed
    status: in progress
    on Nov 18, 2026
  6. added this to the v0.23.0 milestone on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: mediumtype: featureworkload: hours

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions