fix: rename dialog_id to chat_id in chat_channel (backend + frontend) by KevinHuSh · Pull Request #16096 · infiniflow/ragflow (original) (raw)
The ChatChannel model column was renamed from dialog_id to chat_id via migration. Align the API layer and frontend to use the new field name.
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Bot added the size:M
This PR changes 30-99 lines, ignoring generated files.
label
KevinHuSh marked this pull request as ready for review
[](/apps/coderabbitai)
Hz-186 pushed a commit to Hz-186/ragflow that referenced this pull request
Summary
- The
ChatChannelDB column was renamed fromdialog_idtochat_idvia a migration (added in a prior commit). - Aligns the REST API layer (
chat_channel_api.py,chat_channel_service.py) to usechat_idconsistently. - Updates the frontend (
interface.ts,hooks.ts,connect-dialog-modal.tsx,added-channel-card.tsx) to read/writechat_idinstead ofdialog_id. - The joined
dialog_namealias in the list query is unchanged (backend still returns it under that name).
Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com
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
[ Show hidden characters]({{ revealButtonHref }})