Skip to content

[#76] [Feat] 문서 버전 목록 조회에 PDF 변환 실패 정보 추가 - #77

Open
snowballourown wants to merge 2 commits into
feature/73-failed-sourcefrom
feature/76-failed-document-version-information
Open

snowballourown wants to merge 2 commits into
feature/73-failed-sourcefrom
feature/76-failed-document-version-information

Conversation

@snowballourown

Copy link
Copy Markdown
Collaborator

변경 내용

버전 히스토리 화면에서 변환 실패 원인을 사용할 수 있도록
기존 DocumentVersion 목록 조회 응답을 확장했습니다.

GET /api/v1/workspaces/{workspaceId}/documents/{documentId}/versions

  • DocumentVersionListResponse에 failureStage·failureCode·failedAt 추가
  • DocumentVersionRepository 조회 쿼리에 실패 정보 연결
  • FAILED 상태에서 저장된 실패 정보 반환
  • FAILED 이외 상태에서는 실패 정보 세 필드를 null로 반환
  • 실패 정보가 없는 기존 FAILED 작업과 변환 작업이 없는 버전 조회 유지
  • 기존 버전 정렬·메타데이터·워크스페이스 권한 검사 유지
  • API 설명 문서에 응답 예시와 필드 의미 추가

조회 과정에서 DB를 변경하거나 S3·Gotenberg를 호출하지 않습니다.
화면의 실패 원인 표시와 재시도 버튼은 후속 작업입니다.

검증

관련 자동화 테스트 78개가 통과했습니다.

  • 실패 단계·코드·ISO 시각의 JSON 응답 확인
  • 값이 없는 실패 필드가 명시적 null로 반환되는지 확인
  • 기존 데이터·작업 없는 버전·정렬 순서 유지
  • 비로그인·비멤버·문서 소속 불일치 요청 거부
  • 업로더 외 워크스페이스 멤버의 실패 정보 조회 허용
  • 조회 → 재시도 → 재조회 시 같은 버전의 PENDING 및 실패 정보 초기화 확인
  • 다른 버전의 실패 정보 유지
  • 응답에 예외 원문·스택 추적·S3 저장 키 등이 포함되지 않는지 확인

임시 MySQL DB에서 검증했으며 외부 서비스는 모의 객체를 사용했습니다.

DB 변경

없음. #73에서 추가한 컬럼을 조회합니다.

관련 이슈

Closes #76

@snowballourown
snowballourown added this pull request to stack #75 November 21, 2026 23:26
@snowballourown snowballourown self-assigned this Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f09fe264-fe12-4fc9-901e-a99d25981cb5
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@snowballourown
snowballourown force-pushed the feature/76-failed-document-version-information branch from fd753df to 29fd440 Compare November 22, 2026 00:11
@sonarqubecloud

Copy link
Copy Markdown

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.

[Feat] DocumentVersion 버전 목록 조회에 PDF 변환 실패 정보 추가

1 participant