feat(custom-domain): add the bulk DNS check of organization custom domains
🎯 Why
The console organization domains page checks DNS with GET /{application|container|helm}/{id}/checkCustomDomain, one request per service shown. A page of 20 domains can fire dozens of requests.
🛠️ What
Adds GET /organization/{organizationId}/customDomain/check (checkOrganizationCustomDomains): the DNS checks of every domain of a page of listOrganizationCustomDomain, with the same filters and paging. One result per (environment, domain), one check per service the domain routes to. A check that could not run has status: null instead of GENERIC_FAILURE, so the console can show "unknown".
🟢 Risk: low (additions only) · 💥 Breaking: no · ↩️ Rollback: plain revert
🗺️ Review guide · query params match the list; nullable status
openapi.yamlpath:/organization/{organizationId}/customDomain/checkcopies the list'sprojectId,environmentId,search,page,pageSize(same limits and defaults), same tag and error responses.openapi.yamlschemas:OrganizationCustomDomainCheckListResponse,OrganizationCustomDomainCheckResponse,OrganizationCustomDomainServiceCheck.statusis a nullableCheckedCustomDomainStatusref (allOf+nullable, as elsewhere in the file).
🧠 Approach · reuse existing enums, no new values
service_typereusesServiceTypeEnumwith a description limiting it toAPPLICATION,CONTAINER,HELM, likeCustomDomainServiceResponse. No enum has exactly those three values.CheckedCustomDomainStatusis unchanged: a new "unknown" value would break older Go/TS clients that decode enums strictly. "Could not run" isnull.- No pagination envelope: the console already has
total_countfrom the list call. - Not in this PR: the q-core implementation (in parallel) and the console switch to this endpoint.
✅ Verified: Spectral with the standard OAS ruleset reports no new finding. The Stoplight ruleset used by npm test returns 404, so the repo's own rules did not run.
🧪 How to test
Not applicable until q-core ships the endpoint. Then, as an organization admin: curl -H "Authorization: Token $QOVERY_TOKEN" "https://api.qovery.com/organization/<org-id>/customDomain/check?pageSize=5" returns the same domains, in the same order, as /organization/<org-id>/customDomain?pageSize=5, each with one check per routed service.
Consumers to follow up once the clients are published: console (OrganizationCustomDomainApi.checkOrganizationCustomDomains). qovery-cli, terraform-provider-qovery and rust-backend need nothing.
Summary by cubic
Adds GET /organization/{organizationId}/customDomain/check so the console can check the DNS of every custom domain on a page of the organization domains list in a single call, instead of firing one request per service. The endpoint reuses the list's filters and paging and returns one check per service each domain routes to.
Checks that cannot run (unreachable cluster, timeout, never-deployed service) now have status: null instead of GENERIC_FAILURE, so the console can display "unknown".