Skip to content

feat: api-service checks #2173

Closed
anagarwa wants to merge 1 commit intomainfrom
feat/llmo-3476-validate-suggestion-ids
Closed

feat: api-service checks #2173
anagarwa wants to merge 1 commit intomainfrom
feat/llmo-3476-validate-suggestion-ids

Conversation

@anagarwa
Copy link
Copy Markdown
Contributor

Summary

  • Adds UUID format validation for all suggestionIds in the deployToEdge endpoint before any DB lookups
  • Rejects non-UUID IDs (e.g. URLs accidentally passed as suggestion IDs) with HTTP 400 and a descriptive error
  • Logs [edge-deploy-failed] with invalid IDs for observability

Test plan

  • All 379 existing unit tests pass
  • POST /sites/:siteId/suggestions/deploy-to-edge with valid UUID array proceeds normally
  • Request with { suggestionIds: ["not-a-uuid"] } returns 400 with error message listing the invalid IDs
  • Request with a mix of valid and invalid IDs returns 400

Fixes LLMO-3476

🤖 Generated with Claude Code

Before dispatching edge deployment, validate all suggestion IDs against
UUID v4 format. Non-UUID IDs (e.g. URLs passed as IDs) are rejected
with a 400 and logged as [edge-deploy-failed] for observability.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 10, 2026 07:43
@github-actions
Copy link
Copy Markdown

This PR will trigger a minor release when merged.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@anagarwa anagarwa marked this pull request as draft April 10, 2026 09:01
@dipratap dipratap closed this Apr 14, 2026
@dipratap dipratap changed the title feat(llmo-3476): validate suggestion IDs are valid UUIDs in deployToEdge feat: api-service checks Apr 14, 2026
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.

3 participants