Skip to content

[article] 문서의 현재 편집자 조회 API 추가 - #42

Merged
ZaMan0806 merged 3 commits into
feat/article-view-countfrom
feat/article-current-editors
Oct 13, 2026
Merged

ZaMan0806 merged 3 commits into
feat/article-view-countfrom
feat/article-current-editors

Conversation

@ZaMan0806

@ZaMan0806 ZaMan0806 commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 읽기 화면의 "○○ 편집 중" 표시에 쓸 현재 편집자 조회 API를 추가합니다.

Closes #31

Changes

  • GET /api/v1/articles/{id}/editors — 활성 공동편집 room의 현재 참여자 이름과 인원 수 (editing, editorCount, editorNames)
  • room이 없거나 마지막 편집자가 나가 비어 있으면 오류 없이 빈 결과. 비로그인 조회 허용
  • 같은 사용자의 여러 탭은 한 명으로 계산
  • 갱신은 폴링(10~30초 권장)으로 충분하다고 보고 읽기 전용 구독은 만들지 않음

Test

  • ./mill test, ./mill spotless --check 통과
  • room의 참여자 추적·중복 제거, 서비스(편집 중/나감/room 없음), 핸들러 접속·종료 테스트

Checklist

  • I checked that this PR matches the project conventions.
  • I ran the relevant tests or explained why they were not run.
  • I updated documentation or configuration when needed.

Stack created with GitHub Stacks CLI • Give Feedback 💬

@ZaMan0806
ZaMan0806 added this pull request to stack #43 October 12, 2026 02:15
@ZaMan0806
ZaMan0806 force-pushed the feat/article-current-editors branch from b4f5a12 to 08e25f6 Compare October 12, 2026 02:18
@ZaMan0806
ZaMan0806 force-pushed the feat/article-current-editors branch from 08e25f6 to 3fb5e3f Compare October 12, 2026 02:23
@ZaMan0806
ZaMan0806 force-pushed the feat/article-current-editors branch from 3fb5e3f to 9060135 Compare October 12, 2026 02:57
@ZaMan0806
ZaMan0806 force-pushed the feat/article-current-editors branch from 9060135 to 7e7ecbb Compare October 12, 2026 03:10
@ZaMan0806
ZaMan0806 force-pushed the feat/article-current-editors branch from 7e7ecbb to 71cfe72 Compare October 12, 2026 03:13
- GET /api/v1/articles/{articleId}/editors: 활성 공동편집 room의 현재 참여자 이름과 인원 수 반환
- 마지막 편집자가 나가거나 room이 없으면 오류 없이 빈 결과, 비로그인 조회 허용
- 갱신은 폴링 방식(읽기 전용 구독은 제공하지 않음)

Closes #31
@ZaMan0806
ZaMan0806 force-pushed the feat/article-current-editors branch from 71cfe72 to 44f22d1 Compare October 12, 2026 03:26
@ZaMan0806 ZaMan0806 changed the title feat(article): 문서의 현재 편집자 조회 API 추가 [article] 문서의 현재 편집자 조회 API 추가 Oct 12, 2026
snowykte0426
snowykte0426 previously approved these changes Oct 13, 2026
@ZaMan0806
ZaMan0806 merged commit e3bbf6f into develop Oct 13, 2026
2 checks passed
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.

2 participants