Skip to content

[#57] [Feat] 기존 문서의 새 버전 업로드 기능 구현 - #58

Merged
snowballourown merged 3 commits into
feature/55-feedback-controller-delete-updatefrom
feature/57
Nov 19, 2026
Merged

snowballourown merged 3 commits into
feature/55-feedback-controller-delete-updatefrom
feature/57

Conversation

@snowballourown

Copy link
Copy Markdown
Collaborator

변경 내용

기존 Document에 수정한 Word 파일을 업로드하여 새 DocumentVersion을 등록할 수 있도록 구현했습니다.

  • 문서 목록에 ‘새 버전 업로드’ 버튼 추가
  • 업로드 폼에 대상 Document 표시 및 새 문서 등록으로 전환하는 기능 추가
  • 대상 Document의 존재 여부와 워크스페이스 소속 확인
  • DocumentUpload.document에 기존 Document 연결
  • 업로드 완료 시 Document.revision을 증가시키고 DocumentVersion 등록
  • 같은 Document의 동시 업로드에서 버전 번호 중복 방지
  • 완료 재요청 시 해당 DocumentUpload에 연결된 기존 처리 결과 반환
  • 기존 DocumentVersion의 파일·PDF·피드백 유지
  • 새 버전 등록과 PDF 변환 대기 작업을 함께 저장
  • 업로드 성공 후 문서 목록의 버전 번호와 변환 상태 갱신
  • 완료 실패 후 새로고침해도 같은 uploadId로 완료 처리만 재시도

파일명으로 기존 문서를 판단하지 않습니다.
‘새 버전 업로드’에서 선택한 Document.id를 사용합니다.

API

  • 추가: POST /api/v1/workspaces/{workspaceId}/documents/{documentId}/uploads
  • 확장: POST /api/v1/uploads/{uploadId}/complete

검증

  • 업로드 URL 발급 및 기존 업로드 관련 테스트 44개 통과
  • 새 버전 완료 및 기존 완료 처리 관련 테스트 43개 통과
  • 업로드 모듈·문서 목록·화면 연결 테스트 88개 통과
  • 같은 문서의 동시 업로드 시 V2·V3 등록 확인
  • 같은 업로드의 동시 완료 시 한 번만 등록되는지 확인
  • 저장 실패 시 Document.revision과 DocumentVersion 등록 롤백 확인
  • 테스트 응답을 사용하는 Chrome에서 대상 선택·목록 갱신·완료 재시도 확인

자동화 테스트에서는 실제 S3 조회와 업로드를 테스트 객체·응답으로 대체했습니다.

후속 작업

실제 문서 확인 중 발견한 일부 DOCX의 PDF 글자 깨짐과 글꼴 변경,
PDF 표시 공간 확대를 위한 화면 개선은 별도로 진행합니다.

관련 이슈

Closes #57

@snowballourown
snowballourown added this pull request to stack #48 November 14, 2026 17:46
@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

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: 40a97b54-80c3-4228-9f4e-80da2b635200

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@sonarqubecloud

Copy link
Copy Markdown

@snowballourown
snowballourown merged commit bd77a55 into feature/42 Nov 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant