Skip to content

fix(dashboard): load all Run services in custom domain settings - #5418

Merged
robertkasza merged 1 commit into
mainfrom
fix/dashboard-run-custom-domains-all-services
Nov 20, 2026
Merged

robertkasza merged 1 commit into
mainfrom
fix/dashboard-run-custom-domains-all-services

Conversation

@robertkasza

@robertkasza robertkasza commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Checklist

  • No breaking changes
  • Tests pass
  • New features have new tests
  • Documentation is updated (if applicable)
  • Title of the PR is in the correct format (see below)

Goal

The Run custom domain settings and project-wide checks read Run services through useRunServices, which serves the paginated Services list and fetches only 25 services per page (the page comes from the ?page= URL query). Projects with more than 25 Run services therefore could not configure a custom domain for later services in Run settings, and the custom-domain and General-settings checks ignored those services. This branch makes every consumer that needs the whole service set load all Run services, and leaves the paginated list unchanged.

Type: Bug fix

Changes

  • Unpaginated platform query: a new getAllRunServices($appID, $resolve) operation in getRunServices.graphql selects app.runServices without limit/offset. It uses the same fields and RunServiceConfig fragment as the paginated query, so results still match the existing RunService type. The generated useGetAllRunServicesQuery hook is committed in utils/__generated__/graphql.ts.
  • useAllRunServices hook: the new hook in common/hooks/useAllRunServices mirrors useRunServices. On the platform, it runs useGetAllRunServicesQuery. Locally, it runs useGetLocalRunServiceConfigsQuery against the local Mimir client, which was already unpaginated. Both queries are skipped until project.id is known. The hook returns { services, loading, error, refetch } for the active environment. It does not read the router, so the page query no longer affects which services settings see.
  • Consumers switched: RunCustomDomainSettings (Run settings page), useHasCustomDomain, and GeneralSettings now call useAllRunServices. The paginated Services list still uses useRunServices.
  • Tests: settings page tests now mock useAllRunServices. RunSettingsPage.test.tsx adds a regression case with 25 port-less services followed by a 26th service with an HTTP port, and asserts that its domain form renders.

Key files

  • dashboard/src/features/orgs/projects/common/hooks/useAllRunServices/ (+59/-0): new unpaginated Run services hook.
  • dashboard/src/gql/services/getRunServices.graphql (+14/-0): getAllRunServices query.
  • dashboard/src/utils/__generated__/graphql.ts (+55/-0): regenerated useGetAllRunServicesQuery hook and types.
  • run/settings.tsx, useHasCustomDomain.ts, GeneralSettings.tsx (+6/-6): consumers moved to the new hook.
  • dashboard/src/tests/pages/*SettingsPage.test.tsx (6 files, +31/-12): mock retargeting and the beyond-25 regression test.

@robertkasza robertkasza self-assigned this Nov 19, 2026
@robertkasza
robertkasza force-pushed the fix/dashboard-run-custom-domains-all-services branch 2 times, most recently from 7dda403 to ccf2a1d Compare November 19, 2026 15:21
@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Vercel Deployment Info - dashboard

@robertkasza
robertkasza force-pushed the fix/dashboard-run-custom-domains-all-services branch from ccf2a1d to 184e8d8 Compare November 20, 2026 08:54
@robertkasza
robertkasza force-pushed the fix/dashboard-run-custom-domains-all-services branch from 184e8d8 to f33658a Compare November 20, 2026 10:04
@robertkasza
robertkasza enabled auto-merge (squash) November 20, 2026 10:05
@robertkasza
robertkasza merged commit a09fdcb into main Nov 20, 2026
10 checks passed
@robertkasza
robertkasza deleted the fix/dashboard-run-custom-domains-all-services branch November 20, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dashboard: Custom domains can't be set for Run services beyond the first 25

2 participants