hotfix(api): add UUID support to access list endpoints

This commit is contained in:
GitHub Actions
2026-01-29 03:15:06 +00:00
parent 069f3ba027
commit 05a33c466b
15 changed files with 1383 additions and 409 deletions

View File

@@ -344,14 +344,22 @@ export class TestDataManager {
}
const result = await response.json();
// DNS provider IDs must be numeric (backend uses strconv.ParseUint)
const id = result.id;
if (id !== undefined && typeof id !== 'number') {
console.warn(`DNS provider returned non-numeric ID: ${id} (type: ${typeof id}), using as-is`);
}
const resourceId = String(id ?? result.uuid);
this.resources.push({
id: result.id?.toString() ?? result.uuid,
id: resourceId,
type: 'dns-provider',
namespace: this.namespace,
createdAt: new Date(),
});
return { id: result.id?.toString() ?? result.uuid, name: namespacedName };
return { id: resourceId, name: namespacedName };
}
/**