Skip to content

feat: blast radious api #4355

Closed
ulemons wants to merge 1 commit into
mainfrom
feat/blast-radious-api
Closed

feat: blast radious api #4355
ulemons wants to merge 1 commit into
mainfrom
feat/blast-radious-api

Conversation

@ulemons

@ulemons ulemons commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Changes

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Performance improvement
  • Chore / dependency update
  • Documentation

JIRA ticket

Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
Copilot AI review requested due to automatic review settings July 16, 2026 10:36

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PR titles must follow Conventional Commits. Love from, Your reviewers ❤️.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds authenticated Blast Radius API stubs that validate requests before returning 501 NOT_IMPLEMENTED.

Changes:

  • Adds submit/poll routes and Zod validation.
  • Adds a shared NotImplementedError.
  • Documents endpoints in OpenAPI.

Review findings: poll documentation omits its possible 400 response and contradicts validation behavior. The PR title also misspells “radius” and lacks the required JIRA key.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
services/libs/common/src/index.ts Exports the new error.
services/libs/common/src/errors/http.ts Defines the 501 error.
backend/src/api/public/v1/packages/getAkritesExternalBlastRadiusSubmit.ts Implements the submit stub.
backend/src/api/public/v1/packages/getAkritesExternalBlastRadiusPoll.ts Implements the poll stub.
backend/src/api/public/v1/packages/blastRadius.ts Defines request schemas.
backend/src/api/public/v1/akrites-external/openapi.yaml Documents the API contract.
backend/src/api/public/v1/akrites-external/index.ts Registers scoped routes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +43 to +45
// Same read:advisories scope as Advisories above (see the contract's Blast Radius
// tag). The reachability pipeline isn't built yet, so every request 501s — see
// getAkritesExternalBlastRadiusSubmit/Poll — but the route/scope wiring is real.
Comment on lines +965 to +966
Not implemented — always responds 501, regardless of analysisId. See
the Blast Radius tag.
Comment on lines +977 to +983
responses:
'501':
description: Not implemented yet.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Comment on lines +9 to +10
// No jobs are ever created (see submitAkritesExternalBlastRadiusJob), so there is
// nothing to poll yet — always 501, regardless of analysisId.
@ulemons ulemons closed this Jul 16, 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.

2 participants