Backend pass through problems

Đang mở
#45 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@arlange đang làm issue này rồi.

Từ ngày 29/10/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Problem

The setup service will return a structured problems list with its build errors (vitruv-tools/Methodologist-SetupService, structured-errors issue).

The backend currently keeps only a text summary: SetupServiceApiHandler.describeError turns the response into [errorCode] message, and the asynchronous build stores only a string as the error message. The structure is lost before it reaches the frontend.

Proposal

  1. Parse problems in SetupServiceApiHandler and carry it in SetupServiceException.
  2. Return it in the backend's error response for the synchronous download endpoints:
    • /v1/vsums/{id}/build/artifact
    • /v1/vsums/{id}/build/bundle
    • /v1/vsums/{id}/project
  3. Store the problems as JSON on the asynchronous VsumBuild and return them from GET /v1/vsums/{id}/builds/{buildId}.
  4. Map the upload names back to the platform's own files (e.g. reaction file ID and name), so the frontend can open the right editor.
  5. Keep the infrastructure/input distinction: setup-service 503 → backend 502/503, setup-service 422 → backend 400 with problems.

Acceptance criteria

  • A rejected build returns the setup service's problems unchanged, with platform file IDs added, on both the synchronous and asynchronous paths.
  • Older setup-service responses without problems still produce the current text message.
Ngôn ngữ chính
Java
Star
0
Fork
0
Merge trung bình
7 giờ 28 phút
Pull request đã merge (30 ngày)
11

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của vitruv-tools/Methodologist-SetupService

Tất cả issue của vitruv-tools/Methodologist-SetupService

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.