From ff104955b8c7083840070c4e94b40608abde3faf Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Tue, 24 Oct 2023 09:47:04 +0100 Subject: [PATCH 1/2] Show holding pen guess scores Now that we have these guess scores might as well display them in the UI. --- .../admin_raw_email/_holding_pen.html.erb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/views/admin_raw_email/_holding_pen.html.erb b/app/views/admin_raw_email/_holding_pen.html.erb index fd5ec87113..95f5234b40 100644 --- a/app/views/admin_raw_email/_holding_pen.html.erb +++ b/app/views/admin_raw_email/_holding_pen.html.erb @@ -22,6 +22,16 @@
<%= both_links(guess.info_request) %> + + + ID: + <%= number_to_percentage(guess.id_score * 100, precision: 0) %> + + + + Idhash: + <%= number_to_percentage(guess.idhash_score * 100, precision: 0) %> +
@@ -47,6 +57,16 @@ url_title: <%= guess.info_request.url_title %> + + + ID Guess Score: + <%= number_to_percentage(guess.id_score * 100, precision: 0) %> + + + + Idhash Guess Score: + <%= number_to_percentage(guess.idhash_score * 100, precision: 0) %> +

From 5e4c2f4c631574691aff3c5fed35b77f99f1f962 Mon Sep 17 00:00:00 2001 From: Gareth Rees Date: Tue, 24 Oct 2023 09:54:48 +0100 Subject: [PATCH 2/2] Add note about how auto redelivery works Note that single guesses must meet a confidence threshold for auto redelivery so that admins aren't wondering why a single guess response hasn't been auto redelivered. --- app/views/admin_raw_email/_holding_pen.html.erb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app/views/admin_raw_email/_holding_pen.html.erb b/app/views/admin_raw_email/_holding_pen.html.erb index 95f5234b40..7269ca888f 100644 --- a/app/views/admin_raw_email/_holding_pen.html.erb +++ b/app/views/admin_raw_email/_holding_pen.html.erb @@ -16,7 +16,18 @@ <% if @guessed_info_requests.any? %>

-

Guessed request:

+

Guessed request:

+ + <% if @guessed_info_requests.one? %> +

+ + Responses with a single guess are only automatically redelivered if + the guess meets a confidence threshold. This guess did not meet that + threshold. + +

+ <% end %> + <% @guessed_info_requests.each do |guess| %>