Skip to content

Commit

Permalink
chore(CE): add multiple_choice feedback type (#512)
Browse files Browse the repository at this point in the history
Co-authored-by: afthab vp <[email protected]>
  • Loading branch information
github-actions[bot] and afthabvp authored Dec 5, 2024
1 parent d903698 commit aeba32e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/app/models/feedback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Feedback < ApplicationRecord
belongs_to :model
belongs_to :workspace

enum feedback_type: { thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3 }
enum feedback_type: { thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3, multiple_choice: 4 }

enum reaction: { negative: -99, positive: 99, scale_one: 1, scale_two: 2, scale_three: 3, scale_four: 4,
scale_five: 5, scale_six: 6, scale_seven: 7, scale_eight: 8, scale_nine: 9, scale_ten: 10 }
Expand Down
5 changes: 4 additions & 1 deletion server/spec/models/feedback_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
end

describe "enum" do
it { should define_enum_for(:feedback_type).with_values(thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3) }
it {
should define_enum_for(:feedback_type)
.with_values(thumbs: 0, scale_input: 1, text_input: 2, dropdown: 3, multiple_choice: 4)
}

it do
should define_enum_for(:reaction).with_values(
Expand Down

0 comments on commit aeba32e

Please sign in to comment.