Skip to content

API integration and error reporting for code-mappings upload #1079

@romtsn

Description

@romtsn

Context

Wire the CLI command to the new bulk code mappings API endpoint and display results to the user.

What

  • POST to /api/0/organizations/{org}/code-mappings/bulk/ with the assembled payload
  • Handle HTTP responses:
    • 200: all mappings succeeded — display summary (X created, Y updated)
    • 207: partial failure — display per-mapping results, highlight errors
    • 400: validation error — display error details
    • 404: project/repo not found — display actionable error message
    • 403/401: permission denied — suggest checking auth token scopes
  • Display a summary table of results (created/updated/error counts)
  • Exit with non-zero code if any errors occurred

Repo

This is in the sentry-cli repository.

Depends on

  • Backend bulk endpoint (GRADLE-75) must be deployed first

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions