Skip to content

feat: use new breakability endpoint#44

Merged
ShawkyZ merged 2 commits into
mainfrom
feat/FAN-277/use-new-breakability-endpoint
Jun 23, 2026
Merged

feat: use new breakability endpoint#44
ShawkyZ merged 2 commits into
mainfrom
feat/FAN-277/use-new-breakability-endpoint

Conversation

@Jdunsby

@Jdunsby Jdunsby commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Description

Jira ticket: FAN-277

Updates the snyk_breakability_check MCP tool to use the Breakability API 2025-11-05 contract instead of 2024-10-15.

The generated OpenAPI client is moved to internal/apiclients/breakability/2025-11-05/, and the handler now calls CreateBreakabilityAssessments with allow_partial=true. The response shape changed from a single assessment object to an array of assessments (each keyed by package_upgrade), so a new SelectAssessment helper picks the entry matching the requested upgrade before building the tool response.

Graceful-degradation behavior is preserved: API/network failures and empty or non-matching responses still return "no additional breakability context available". Unit and handler tests are updated for the new request/response shape, including allow_partial query-param validation and upgrade-mismatch cases. Spec pull scripts and scripts/README.md are updated to reference the new API version.

Checklist

  • Tests added and all succeed
  • Regenerated mocks, etc. (make generate)
  • Linted (make lint-fix)
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced

@Jdunsby Jdunsby requested review from a team as code owners June 22, 2026 19:46
@CLAassistant

CLAassistant commented Jun 22, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@snyk-io

snyk-io Bot commented Jun 22, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Jira ticket: FAN-277
@Jdunsby Jdunsby force-pushed the feat/FAN-277/use-new-breakability-endpoint branch from 60dd0af to 4c592f8 Compare June 23, 2026 15:55

@ifeanyiecheruo ifeanyiecheruo 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.

Changes look good

@ShawkyZ ShawkyZ merged commit 25eb979 into main Jun 23, 2026
10 checks passed
@ShawkyZ ShawkyZ deleted the feat/FAN-277/use-new-breakability-endpoint branch June 23, 2026 18:42
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.

4 participants