feat: streaming-connection-api/#88 - #89
Merged
Merged
Conversation
chaeyn
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
GET /auth/streaming/accounts) — 플랫폼 중립 배열 응답이에요. 연결이 없으면 404가 아니라 빈 배열([])을 반환해요. 항목:provider,channel_id,channel_title,connected_at,reconnect_requiredDELETE /auth/streaming/accounts/{provider}→ 204) — ①플랫폼 재사용 스트림 삭제 → ②플랫폼 권한 취소(Google revoke) → ③DB 행 삭제 순서를 보장하고, ①·②가 실패해도 ③은 수행해요(이미 토큰이 무효화된 연결의 해제가 정상 시나리오예요)invalid_grant)reconnect_required_at으로 표식하고,stream/start는 502 대신 409streaming_reconnect_required를, 조회 API는reconnect_required: true를 반환해요. Testing 게시 시절 토큰의 만료 시각(refresh_token_expires_at) 경과도 같은 신호로 취급해요000005(reconnect_required_at컬럼) — GORM AutoMigrate·versioned SQL 양쪽 반영이에요확인 방법
go vet ./...,go test -race -count=1 ./...전 패키지 통과를 확인했어요TestDisconnectRunsStepsInOrder,TestDisconnectContinuesWhenPlatformStepsFail)TestPostgresStreamingAccountUpsert)에 ListByUser/Delete/Mark 검증을 추가했어요 —TEST_DATABASE_URL설정 시 실행돼요Closes #88