Skip to content

fix: finish #121 (docs, WES type check, limits) #138

Backlog

Description

@uniqueg

Left over from #121, done in part by #137 (merged to move fast; review findings below).

Problems

  1. Docs are wrong: docs/operator-guide/deployment.md (around lines 231-232) still says the service-info page accepts only URLs without a port whose path ends with /ga4gh/wes/v1. Since fix: shared one registry client and URL check #137 the same rule applies everywhere: https, no userinfo; query, fragment and trailing slashes are dropped.
  2. TES ids on the WES info page: getWesServiceInfo no longer checks the entry type, so a TES id loads that service's /service-info and shows it as WES info.
  3. Null registry entries: servers.find((item) => item.id === id) throws on a null entry (ends in a 502); this predates fix: shared one registry client and URL check #137.
  4. No size limit on the WES probe and the service-info request (fix: share one registry client and URL check #121 asks for maxContentLength on axiosBase; fix: shared one registry client and URL check #137 sets it only for the registry read).
  5. Error shapes: /api/tasks/get-tes-servers and /api/workflows/get-wes-servers answer {error: string} with a 502; the auth routes under src/app/auth/api/* still use other shapes ({error: true, user: null}, {message}).
  6. Dead login hint: the TES selector (src/app/dashboard/tasks/_components/tes-server-list.tsx) still shows "Login to fetch TES servers from registry." on a 401, which the route no longer returns.

Expected

  • The deployment guide describes the shared URL rule.
  • The WES info page returns 404 unless type.artifact is wes or wes-gateway.
  • Lookups guard against null entries (item?.id).
  • maxContentLength for all outgoing requests (axiosBase).
  • One error body shape, {error: string}, for all of Krini's own API routes, documented.
  • The TES selector shows the login hint only for Krini's own 401, or the branch is removed.
  • Unit tests for every change; coverage stays at 100%.

Refs #121, #137.

Activity

  1. added
    priority: medium
    type: bug
    workload: hours
    status: triage
    on Nov 24, 2026
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

    priority: mediumstatus: triagetype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions