From 39932bee7bef836eb58b8bad081069f14257d991 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:14:10 +0530 Subject: [PATCH] chore(CE): Add chatbot component_type to vc (#539) Co-authored-by: afthab vp --- server/app/models/visual_component.rb | 2 +- server/spec/models/visual_component_spec.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/app/models/visual_component.rb b/server/app/models/visual_component.rb index 0c675e36..7e93c556 100644 --- a/server/app/models/visual_component.rb +++ b/server/app/models/visual_component.rb @@ -6,7 +6,7 @@ class VisualComponent < ApplicationRecord validates :model_id, presence: true validates :data_app_id, presence: true - enum component_type: { doughnut: 0, bar: 1, data_table: 2, visual_text: 3, custom: 4 } + enum component_type: { doughnut: 0, bar: 1, data_table: 2, visual_text: 3, custom: 4, chat_bot: 5 } belongs_to :workspace belongs_to :data_app diff --git a/server/spec/models/visual_component_spec.rb b/server/spec/models/visual_component_spec.rb index 57892eba..97d16e3e 100644 --- a/server/spec/models/visual_component_spec.rb +++ b/server/spec/models/visual_component_spec.rb @@ -9,7 +9,8 @@ it { should validate_presence_of(:data_app_id) } it { - should define_enum_for(:component_type).with_values(doughnut: 0, bar: 1, data_table: 2, visual_text: 3, custom: 4) + should define_enum_for(:component_type) + .with_values(doughnut: 0, bar: 1, data_table: 2, visual_text: 3, custom: 4, chat_bot: 5) } it { should belong_to(:workspace) }