diff --git a/front/lib/api/assistant/feedback.ts b/front/lib/api/assistant/feedback.ts index ebfb89af97e4..ea841340c5a3 100644 --- a/front/lib/api/assistant/feedback.ts +++ b/front/lib/api/assistant/feedback.ts @@ -175,6 +175,7 @@ export async function createOrUpdateMessageFeedback( userId: user.id, thumbDirection, content, + isConversationShared: false, }); return newFeedback !== null; } diff --git a/front/lib/models/assistant/conversation.ts b/front/lib/models/assistant/conversation.ts index cae554ffc2ba..1d943ae114c7 100644 --- a/front/lib/models/assistant/conversation.ts +++ b/front/lib/models/assistant/conversation.ts @@ -300,6 +300,7 @@ export class AgentMessageFeedback extends BaseModel { declare agentConfigurationVersion: number; declare agentMessageId: ForeignKey; declare userId: ForeignKey; + declare isConversationShared: boolean; declare thumbDirection: AgentMessageFeedbackDirection; declare content: string | null; @@ -333,6 +334,11 @@ AgentMessageFeedback.init( type: DataTypes.TEXT, allowNull: true, }, + isConversationShared: { + type: DataTypes.BOOLEAN, + allowNull: false, + defaultValue: false, + }, }, { modelName: "agent_message_feedback", diff --git a/front/migrations/db/migration_132.sql b/front/migrations/db/migration_132.sql new file mode 100644 index 000000000000..c38fb414d7aa --- /dev/null +++ b/front/migrations/db/migration_132.sql @@ -0,0 +1,2 @@ +-- Migration created on Dec 16, 2024 +ALTER TABLE "public"."agent_message_feedbacks" ADD COLUMN "isConversationShared" BOOLEAN NOT NULL DEFAULT false;