fix/import-missing-chat-data #4401
Merged
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.
Description
Fix missing imports for messages and feedbacks in AgentFlow and AssistantFlow.
Note: As of 20250508
AssistantOpenAI
andAssistantAzure
do not have chat message and feedback functionality implemented.Test Data
yes chatmessage and chatfeedback.json
no chatmessage and chatfeedback.json
all.json
Before
Import




all.json
, AgentFlow and AssistantFlow messages and feedbacks not appearchat_flow
assistant
chat_message
chat_message_feedback
Either








a
orb
a. Import
yes chatmessage and chatfeedback.json
, Agentflow and AssistantFlow messages and feedbacks only appear, but this will duplicateConversation Chain
messages and feedbacks.chat_flow
assistant
chat_message red are duplicate data, blue are previously missing data
chat_message_feedback red are duplicate data, blue are previously missing data
b. Import
all.json
, ChatFlow, AgentFlow, and AssistantFlow will duplicate, but this will duplicateConversation Chain
messages and feedbacks. Agentflow and AssistantFlow messages and feedbacks are still missing.chat_flow
assistant
chat_message
chat_message_feedback
After
Import




all.json
, ChatFlow, AgenFlow, and AssistantFlow messages and feedbacks appearchat_flow
assistant
chat_message
chat_message_feedback
Import




all.json
again, messages and feedbacks will follow 2nd new ChatFlow, AgentFlow, and AssistantFlow Idchat_flow
assistant
chat_message
chat_message_feedback
Import
no chatmessage and chatfeedback.json
again, 3rd new ChatFlow, AgentFlow, and AssistantFlow will not have chat messages and feedbacksRefer screenshots in point 4
Import









yes chatmessage and chatfeedback.json
, only orginal ChatFlow, AgentFlow, and AssistantFlow will have duplicate chat messages and feedbacksChatFlow
AgentFlow
AssistantFlow