Repository navigation
[Feat/#319] 챗봇 추천 질문(FAQ) 관리 API 추가 - #320
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
github-actions
Bot
requested review from
jjunh33,
leegain1,
tnals0924 and
xeoxxn
November 26, 2026 06:31
leegain1
reviewed
Nov 26, 2026
sangrae2325
force-pushed
the
feat/#319-chatbot-faq
branch
from
November 26, 2026 07:51
9ab9225 to
ef69cf4
Compare
sangrae2325
force-pushed
the
feat/#319-chatbot-faq
branch
from
November 26, 2026 07:54
ef69cf4 to
70cc61f
Compare
tnals0924
reviewed
Nov 26, 2026
leegain1
approved these changes
Nov 26, 2026
4 tasks
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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
관리자 "챗봇 FAQ 관리" 화면은 화면 안에 적어 둔 예시만 보여 주고(새로고침하면 원래대로), 앱 챗봇 진입 화면의 추천 질문도 목업 문구를 상수로 두고 있다. 서버에는 추천 질문을 저장하거나 내려줄 API가 없다.
❓ 왜 해결해야 하나요?
운영진이 학생들이 자주 묻는 질문을 직접 바꿀 수 있어야 한다. 지금은 문구를 바꾸려면 두 클라이언트를 각각 배포해야 한다.
⭐ 어떻게 해결했나요?
GET /v1/admin/chat/faqsPOST /v1/admin/chat/faqsCHAT_FAQ_LIMIT_EXCEEDED(400)PUT /v1/admin/chat/faqs/{faqId}DELETE /v1/admin/chat/faqs/{faqId}GET /v1/app/chat/faqs{ faqId, question }. 관리자 화면의 번호(NO)는 화면이 목록 순서로 매긴다welfare.domain.chat아래에 뒀다. 운영진 목록 조회도 공용ChatFaqService를 쓴다5개 제한을 동시에도 지키는 방식
slot) 를 준다. 새 질문은 비어 있는 가장 작은 자리를 받고, 빈자리가 없으면 거부한다(ChatFaq.create)uk_chat_faqs_active_slot)를 걸었다. 자리가 0~4 안에서 서로 달라야 하므로 활성 행은 구조상 5개를 넘을 수 없다CHAT_FAQ_ADD_CONFLICT(409)로 다시 시도를 안내한다🧩 이 PR의 한계 & 트레이드오프
⛓️ 기존 기능에 미치는 영향
V68__create_chat_faqs.sql)과 새 API만 더한다. 기존 챗봇 질문 API(POST /v1/app/chat/messages)는 바뀌지 않는다🔀 Edge Case & 실패 시나리오
saveAndFlush로 그 자리에서 잡아 409로 바꾼다@DynamicUpdate라 질문 칸만 UPDATE해서 삭제를 되돌리지 않는다CHAT_FAQ_NOT_FOUND(404)📋 검토한 대안과 선택 이유
display_order)로 상한까지 지키는 안: 처음 설계였다. 최댓값+1로 순서를 매기고 삭제마다 뒤 항목을 당기는데, 두 운영진이 동시에 지우면 당기기가 꼬여 빈칸이 남는다. 그 뒤로는 4개뿐인데 다섯 번째가 번호 5를 받아 계속 거부된다. 자리와 순서를 나눠 당기기 자체를 없앴다💬 리뷰 포인트
[r]ChatFaq.create와V68의 활성 자리 유니크: 동시 등록에서도 5개를 넘지 않는지 봐 주세요[c]자리를 노출 순서와 나눈 설계가 괜찮은지 의견 부탁드립니다. 순서 변경 API가 생기면 순서 칸을 따로 더하는 방향입니다