Skip to content

Commit

Permalink
Merge pull request #45 from alphagov/show-question-strategy-admin
Browse files Browse the repository at this point in the history
Show question's answer strategy on admin show page
  • Loading branch information
jackbot authored Feb 7, 2025
2 parents fb7b861 + b2ca4c4 commit 63e2427
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/admin/questions_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def question_show_summary_list_rows(question, answer, question_number, total_que
end
),
},
{
field: "Answer strategy",
value: question.answer_strategy.humanize,
},
{
field: "Jailbreak guardrails status",
value: answer.jailbreak_guardrails_status,
Expand Down
1 change: 1 addition & 0 deletions spec/helpers/admin/questions_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"Status",
"Answer created at",
"Answer",
"Answer strategy",
"Jailbreak guardrails status",
"Question routing label",
"Question routing confidence score",
Expand Down

0 comments on commit 63e2427

Please sign in to comment.