Dev -> Main#52
Merged
Merged
Conversation
- CSV 원천 데이터 기반 manufacturing_event_json 생성 로직 추가 - /api/manufacturing/events/generate API 구현 및 기간별 이벤트 생성 지원 - /api/manufacturing/events/generate/tomorrow API 구현 및 템플릿 기반 다음날 이벤트 적재 지원 - manufacturing_event_json batch insert 처리 및 insert_chunk_size 옵션 적용 - manufacturing_event_template 생성, 조회, replay API 구현 - 제조 이벤트 JSON 저장 테이블 및 템플릿 테이블 schema 정의 - event_id 중복 시 기존 제조 이벤트 JSON upsert 처리 - updated_at 컬럼 추가 및 신규 insert, upsert 시 수정 시간 저장 - Swagger operation, description에 저장 컬럼과 batch insert 동작 설명 추가
- /api/manufacturing/events/generate API를 비동기 job 생성 방식으로 변경
- /api/manufacturing/events/generate/tomorrow API를 비동기 job 생성 방식으로 변경
- /api/manufacturing/events/templates/generate API를 비동기 job 생성 방식으로 변경
- manufacturing_event_generation_job 테이블 추가 및 job 상태, 요청, 결과 저장
- 앱 내부 worker thread 기반 제조 이벤트 생성 job 실행 로직 추가
- generated_count, affected_rows, total_expected_events 기반 job 진행률 갱신
- /api/manufacturing/events/generate/jobs/{job_id} 상태 조회 API 추가
- 서버 재시작 시 PENDING, RUNNING 상태의 미완료 job 자동 복구 처리
- manufacturing_event_json updated_at 컬럼 추가 및 insert, upsert 시 수정 시간 저장
- Swagger description에 비동기 job 응답과 batch insert 동작 설명 반영
- 제조 이벤트 JSON 서비스와 스케줄러를 app/service/manufacturing 패키지로 이동 - app.service.manufacturing 패키지에서 제조 이벤트 서비스, 스케줄러, 기본 상수 export - API 라우터, 배치 로더, 앱 초기화 코드의 제조 이벤트 서비스 import 경로 수정 - 제조 이벤트 스케줄러 내부 참조를 manufacturing 패키지 기준 상대 import로 정리 - 기존 app/service 루트의 제조 이벤트 서비스 모듈 의존 제거
- 제조 이벤트 스케줄러를 service/manufacturing에서 scheduler/manufacturing 패키지로 이동 - app.scheduler 및 app.scheduler.manufacturing 패키지 추가 - app.scheduler.manufacturing에서 제조 이벤트 스케줄러 start, stop 함수 export - service/manufacturing 패키지에서는 제조 이벤트 비즈니스 서비스만 export하도록 정리 - FastAPI startup, shutdown에서 scheduler 패키지 기준 import를 사용하도록 수정
Feat/quality
- manufacturing_event_json 스키마 및 JSON 구조 반영 - product.carMasterId를 기존 car_master.id와 매핑 - 차량당 PRESS, BODY, PAINT, ASSEMBLY 이벤트 4건 생성 - 정상·이상 데이터 비율을 7:3으로 구성하고 공정별 균등 분배 - 공정별 설비와 operationStatus를 결정적 랜덤 방식으로 생성 - eventTime, lastNormalTime, statusChangedTime 초기값을 NULL로 설정 - PRESS는 READY, 후속 공정은 PENDING으로 초기화 - MySQL 데드락 재시도 및 생성 작업 전역 잠금 처리 추가 - SampleDB Repository를 테이블과 책임별 클래스로 분리 - 제조 이벤트 API, 테이블, Repository 및 환경변수 README 문서화
…facturing-event-create
…nt-create fix: 제조 이벤트 생성 및 저장 구조 개선
fix: manufacturing_event_json 프레스, 차체, 도장 공정 레퍼런스에 맞게 생성되도록 정리
- 프레스/차체/도장 레퍼런스에 맞춰 manufacturing_event_json 생성 로직 보강 - 분석 sync consumer가 ES 장애 시 종료되지 않고 재시도하도록 수정 - raw Kafka 처리 단계에서 병목/불량 전이 결과를 ES에 직접 색인하도록 보강
fix: 제조 이벤트 생성 및 분석 ES 색인 안정화
…ement fix: 병목&불량 전이 조회 dateOptions 반환 수정
fix : 404 error update
manual.py return value update
…ement docs: README 문서 정리
…ement chore: Swagger 설명 보강
…ement docs: README 사진 깨짐 수정
…ement fix: 병목&불량전이 ES KST로 변경
kimgeon0802
approved these changes
Jul 23, 2026
hyein0514
approved these changes
Jul 23, 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.
✨ 작업 개요
dev브랜치 ->main브랜치로 이동📄 작업 내용
dev브랜치 ->main브랜치로 이동✅ 체크리스트
💬 기타 사항