Skip to content

fix/import-missing-chat-data #4401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged

Conversation

chungyau97
Copy link
Contributor

@chungyau97 chungyau97 commented May 8, 2025

Description

Fix missing imports for messages and feedbacks in AgentFlow and AssistantFlow.

Note: As of 20250508 AssistantOpenAI and AssistantAzure do not have chat message and feedback functionality implemented.

Test Data

yes chatmessage and chatfeedback.json
no chatmessage and chatfeedback.json
all.json

Before

  1. Import all.json, AgentFlow and AssistantFlow messages and feedbacks not appear
    chat_flow
    image
    assistant
    image
    chat_message
    image
    chat_message_feedback
    image

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

After

  1. Import all.json, ChatFlow, AgenFlow, and AssistantFlow messages and feedbacks appear
    chat_flow
    image
    assistant
    image
    chat_message
    image
    chat_message_feedback
    image

  2. Import all.json again, messages and feedbacks will follow 2nd new ChatFlow, AgentFlow, and AssistantFlow Id
    chat_flow
    image
    assistant
    image
    chat_message
    image
    chat_message_feedback
    image

  3. Import no chatmessage and chatfeedback.json again, 3rd new ChatFlow, AgentFlow, and AssistantFlow will not have chat messages and feedbacks
    Refer screenshots in point 4

  4. Import yes chatmessage and chatfeedback.json, only orginal ChatFlow, AgentFlow, and AssistantFlow will have duplicate chat messages and feedbacks
    ChatFlow
    image
    image
    image
    AgentFlow
    image
    image
    image
    AssistantFlow
    image
    image
    image

@chungyau97 chungyau97 merged commit 82e6f43 into main May 8, 2025
2 checks passed
@chungyau97 chungyau97 deleted the fix/import-missing-chat-data branch May 8, 2025 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants