You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(plugins): add WES to typed backend lists #789
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.
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.
Activity