feat(api): signal-batch v2 API 마이그레이션 #33

병합
htlee develop 에서 main 로 3 commits 를 머지했습니다 2026-02-20 00:34:41 +09:00
소유자

Summary

  • 위치 API: snp-api → signal-batch 이중 케이던스 폴링
    • ChnPrmShip: 1분 주기, 2시간 보존
    • RecentVessel: 10분 주기, 72분 보존
    • source 기반 머지/프루닝 (아이콘 깜박임 방지)
  • 항적 API: signal-batch v2 POST 전환, 레거시 폴백 제거
  • Fastify AIS 프록시 라우트 제거
  • 레거시 코드 정리 (searchAisTargets, searchChnprmship, fetchTrack)
  • nginx wing.conf에 /signal-batch 프록시 추가

변경 파일

파일 내용
vite.config.ts /signal-batch 프록시 추가, /snp-api 제거
entities/aisTarget/api/dto.ts API 응답 DTO 타입 (신규)
entities/aisTarget/api/fetchPositions.ts fetch + adapt → AisTarget[] (신규)
entities/aisTarget/model/types.ts 선택적 필드 3개 추가
features/aisPolling/useAisTargetPolling.ts 이중 케이던스, source 기반 머지/프루닝
features/trackReplay/services/trackQueryService.ts v2 POST, 레거시 폴백 제거
pages/dashboard/DashboardPage.tsx 폴링 옵션 구조화, isPermitted
apps/api/src/index.ts AIS 라우트 제거

Test plan

  • ChnPrmShip 1분 폴링 확인
  • RecentVessel 10분 폴링 확인
  • 허가선박 항적 조회 (includeChnPrmShip: true)
  • 일반선박 항적 조회
  • 경고/오버레이/Globe/Mercator 정상 동작

🤖 Generated with Claude Code

## Summary - 위치 API: snp-api → signal-batch 이중 케이던스 폴링 - ChnPrmShip: 1분 주기, 2시간 보존 - RecentVessel: 10분 주기, 72분 보존 - source 기반 머지/프루닝 (아이콘 깜박임 방지) - 항적 API: signal-batch v2 POST 전환, 레거시 폴백 제거 - Fastify AIS 프록시 라우트 제거 - 레거시 코드 정리 (searchAisTargets, searchChnprmship, fetchTrack) - nginx wing.conf에 /signal-batch 프록시 추가 ## 변경 파일 | 파일 | 내용 | |------|------| | vite.config.ts | /signal-batch 프록시 추가, /snp-api 제거 | | entities/aisTarget/api/dto.ts | API 응답 DTO 타입 (신규) | | entities/aisTarget/api/fetchPositions.ts | fetch + adapt → AisTarget[] (신규) | | entities/aisTarget/model/types.ts | 선택적 필드 3개 추가 | | features/aisPolling/useAisTargetPolling.ts | 이중 케이던스, source 기반 머지/프루닝 | | features/trackReplay/services/trackQueryService.ts | v2 POST, 레거시 폴백 제거 | | pages/dashboard/DashboardPage.tsx | 폴링 옵션 구조화, isPermitted | | apps/api/src/index.ts | AIS 라우트 제거 | ## Test plan - [ ] ChnPrmShip 1분 폴링 확인 - [ ] RecentVessel 10분 폴링 확인 - [ ] 허가선박 항적 조회 (includeChnPrmShip: true) - [ ] 일반선박 항적 조회 - [ ] 경고/오버레이/Globe/Mercator 정상 동작 🤖 Generated with [Claude Code](https://claude.com/claude-code)
htlee added 3 commits 2026-02-20 00:33:55 +09:00
htlee merged commit 16cbb770ec into main 2026-02-20 00:34:41 +09:00
"로그인하여 이 대화에 참여"
No reviewers
레이블 없음
마일스톤 없음
담당자 없음
참여자 1명
알림
마감일
기한이 올바르지 않거나 범위를 벗어났습니다. 'yyyy-mm-dd'형식을 사용해주십시오.

마감일이 설정되지 않았습니다.

의존성

No dependencies set.

Reference: gc/gc-wing#33
No description provided.