Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
6de2608
feat: 도커파일 추가
2Jin1031 Nov 9, 2025
8a35243
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
586b092
Merge pull request #101 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
d767c3e
tmp: dev cd 트리거
2Jin1031 Nov 9, 2025
804497f
Merge pull request #102 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
243dccc
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
f847f66
tmp: dev cd 트리거
2Jin1031 Nov 9, 2025
fe5bdc0
Merge pull request #103 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
1a09bfc
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
4c26dd0
tmp: dev cd 트리거
2Jin1031 Nov 9, 2025
3dd40bf
Merge pull request #104 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
bf2e482
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
5534cbf
tmp: dev cd 트리거
2Jin1031 Nov 9, 2025
9f7018b
Merge pull request #106 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
22d24c4
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
30beb53
tmp: dev cd 트리거
2Jin1031 Nov 9, 2025
2d9ca12
Merge pull request #107 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
94d39e6
chore: .gitignore 업데이트
2Jin1031 Nov 9, 2025
b819115
chore: .gitignore 업데이트
2Jin1031 Nov 9, 2025
8a0cce0
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
1db186e
Merge pull request #108 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
8a3b35b
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
cb69ae2
tmp: dev cd 트리거
2Jin1031 Nov 9, 2025
4da8e40
Merge pull request #109 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
8b5cbc6
merge: main과 merge
2Jin1031 Nov 9, 2025
5160c0f
Merge pull request #110 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
bbcbf07
`Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
f362c70
Merge pull request #111 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
020a049
Merge branch 'main' into feat/100
2Jin1031 Nov 9, 2025
97c2646
Merge pull request #112 from Crew-Wiki/feat/100
2Jin1031 Nov 9, 2025
a9791ea
Merge branch 'main' into feat/100
2Jin1031 Nov 11, 2025
e019ef0
Merge pull request #113 from Crew-Wiki/feat/100
2Jin1031 Nov 11, 2025
5b10c31
Merge branch 'main' into develop
2Jin1031 Nov 11, 2025
2aa974e
feat: 문서 삭제 요청 데이터 수정 (id -> uuid)
2Jin1031 Nov 17, 2025
21e21dc
Merge pull request #116 from Crew-Wiki/feat/115
2Jin1031 Nov 19, 2025
c9882a7
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
9ece709
feat: local yml 추가
2Jin1031 Dec 14, 2025
c34984a
Merge pull request #118 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
827347c
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
5e1e391
tmp: cd 트리거
2Jin1031 Dec 14, 2025
4aaf39c
Merge pull request #120 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
84652bb
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
5d457e0
Merge pull request #121 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
8cb2a53
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
671c800
Merge pull request #122 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
bf2ab25
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
fa3e183
Merge pull request #123 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
1fec7aa
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
b0e5a39
Merge pull request #124 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
f3dba2b
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
fa81e46
Merge pull request #125 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
387c8ce
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
84f56dc
Merge pull request #126 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
179fa59
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
68964b7
Merge pull request #128 from Crew-Wiki/feat/117
2Jin1031 Dec 14, 2025
4ba1f46
Merge branch 'main' into develop
2Jin1031 Dec 14, 2025
084513a
feat: Dockerfile 환경 변수 일반화
2Jin1031 Dec 14, 2025
3be3d90
Merge pull request #130 from Crew-Wiki/feat/129
2Jin1031 Dec 14, 2025
47ee6ee
refactor: 자바 마이그레이션 (#132)
CheChe903 Dec 28, 2025
ab6b65b
test: 문서 조회 테스트 추가
Starlight258 Jan 11, 2026
b76d2d2
test: 사용하지 않은 변수에 대한 선언 제거
Starlight258 Jan 11, 2026
027304c
feat: 조직문서 수정시 히스토리 저장 (#134)
CheChe903 Jan 12, 2026
fabdf02
Merge pull request #136 from Starlight258/test/135
Starlight258 Jan 13, 2026
f1910ca
feat: 특정 문서에 대한 조직 문서 삭제 API 구현
2Jin1031 Feb 1, 2026
1105cc3
Merge pull request #138 from Crew-Wiki/feat/137
2Jin1031 Feb 1, 2026
e1d1253
feat: 조직 문서 생성 시 첫 로그 저장 (#140)
CheChe903 Feb 7, 2026
7731cbf
feat: 문서 조회시 문서 타입을 응답에 추가 (#142)
CheChe903 Feb 7, 2026
1ae401e
feat: 크루문서 삭제 시, 조직 문서 연결 해제 기능 구현
2Jin1031 Feb 23, 2026
937a189
feat: DocumentService에서 CrewDocumentService 분리
2Jin1031 Feb 23, 2026
6021df7
test: 변경된 메서드명으로 테스트파일 수정
2Jin1031 Feb 23, 2026
55a8667
[REFACTOR]: 코드 컨벤션 적용 (#144)
CheChe903 Feb 26, 2026
d9ebaa8
fix: develop 브랜치 충돌 해결
2Jin1031 Mar 2, 2026
e69b3e8
Merge pull request #148 from Crew-Wiki/feat/147
2Jin1031 Mar 2, 2026
3155886
test: DocumentService 분리로 Crew/Organization 테스트 분리
2Jin1031 Mar 3, 2026
f1a8798
Merge pull request #149 from Crew-Wiki/feat/147
2Jin1031 Mar 3, 2026
cc11cfa
feat: 기존 조직 문서를 크루 문서에 연결 기능 구현
2Jin1031 Mar 4, 2026
a497dc4
Merge pull request #151 from Crew-Wiki/feat/150
2Jin1031 Mar 4, 2026
e6280c0
feat: 조직 문서를 조회할 때 연결된 크루 문서 목록도 함께 반환하도록 기능을 구현
2Jin1031 Mar 10, 2026
8daa3f6
feat: 조직 문서와 연결된 크루 문서 조회 방식을 fetch join으로 수정
2Jin1031 Mar 11, 2026
288fc73
Merge pull request #157 from Crew-Wiki/feat/156
2Jin1031 Mar 11, 2026
24d758d
Merge branch 'main' into develop
CheChe903 Mar 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.wooteco.wiki.organizationdocument.dto.response;

import com.wooteco.wiki.document.domain.CrewDocument;
import java.util.UUID;

public record LinkedCrewDocumentResponse(
UUID documentUuid,
String title
) {

public LinkedCrewDocumentResponse(CrewDocument crewDocument) {
this(
crewDocument.getUuid(),
crewDocument.getTitle()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ public record OrganizationDocumentAndEventResponse(
String contents,
String writer,
LocalDateTime generateTime,
List<OrganizationEventResponse> organizationEventResponses
List<OrganizationEventResponse> organizationEventResponses,
List<LinkedCrewDocumentResponse> linkedCrewDocuments
) {

public OrganizationDocumentAndEventResponse(
OrganizationDocument organizationDocument,
List<OrganizationEventResponse> organizationEventResponses
List<OrganizationEventResponse> organizationEventResponses,
List<LinkedCrewDocumentResponse> linkedCrewDocuments
) {
this(organizationDocument.getId(), organizationDocument.getUuid(), organizationDocument.getTitle(), organizationDocument.getContents(), organizationDocument.getWriter(), organizationDocument.getGenerateTime(), organizationEventResponses);
this(organizationDocument.getId(), organizationDocument.getUuid(), organizationDocument.getTitle(), organizationDocument.getContents(), organizationDocument.getWriter(), organizationDocument.getGenerateTime(), organizationEventResponses, linkedCrewDocuments);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface DocumentOrganizationLinkRepository extends JpaRepository<DocumentOrganizationLink, Long> {

Expand All @@ -19,5 +21,11 @@ void deleteByCrewDocumentAndOrganizationDocument(CrewDocument crewDocument,

List<DocumentOrganizationLink> findAllByCrewDocument(CrewDocument crewDocument);

@Query("SELECT documentOrganizationLink FROM DocumentOrganizationLink documentOrganizationLink " +
"JOIN FETCH documentOrganizationLink.crewDocument " +
"WHERE documentOrganizationLink.organizationDocument = :organizationDocument")
List<DocumentOrganizationLink> findAllByOrganizationDocumentWithCrewDocument(
@Param("organizationDocument") OrganizationDocument organizationDocument);

void deleteAllByCrewDocument(CrewDocument crewDocument);
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
import com.wooteco.wiki.organizationdocument.dto.request.OrganizationDocumentCreateRequest;
import com.wooteco.wiki.organizationdocument.dto.request.OrganizationDocumentLinkRequest;
import com.wooteco.wiki.organizationdocument.dto.request.OrganizationDocumentUpdateRequest;
import com.wooteco.wiki.organizationdocument.dto.response.LinkedCrewDocumentResponse;
import com.wooteco.wiki.organizationdocument.dto.response.OrganizationDocumentAndEventResponse;
import com.wooteco.wiki.organizationdocument.dto.response.OrganizationDocumentResponse;
import com.wooteco.wiki.organizationdocument.repository.DocumentOrganizationLinkRepository;
import com.wooteco.wiki.organizationdocument.repository.OrganizationDocumentRepository;
import com.wooteco.wiki.organizationevent.dto.response.OrganizationEventResponse;
import com.wooteco.wiki.organizationevent.repository.OrganizationEventRepository;
Expand All @@ -33,6 +35,7 @@ public class OrganizationDocumentService {
private final OrganizationEventRepository organizationEventRepository;
private final DocumentRepository documentRepository;
private final DocumentOrganizationLinkService documentOrganizationLinkService;
private final DocumentOrganizationLinkRepository documentOrganizationLinkRepository;
private final CrewDocumentRepository crewDocumentRepository;
private final HistoryService historyService;

Expand Down Expand Up @@ -80,7 +83,12 @@ public OrganizationDocumentAndEventResponse findByUuid(UUID uuidText) {
.stream()
.map(OrganizationEventResponse::new)
.toList();
return new OrganizationDocumentAndEventResponse(organizationDocument, organizationEventResponses);
List<LinkedCrewDocumentResponse> linkedCrewDocuments = documentOrganizationLinkRepository
.findAllByOrganizationDocumentWithCrewDocument(organizationDocument)
.stream()
.map(link -> new LinkedCrewDocumentResponse(link.getCrewDocument()))
.toList();
return new OrganizationDocumentAndEventResponse(organizationDocument, organizationEventResponses, linkedCrewDocuments);
}

private CrewDocument getCrewDocument(UUID uuid) {
Expand Down
Loading