From d4a8015486a329443448b770f54d6ac3b83a955c Mon Sep 17 00:00:00 2001 From: Sam Pearson Date: Fri, 17 May 2024 11:18:30 +0100 Subject: [PATCH] [ExcelAnalyzer] Provide a custom prominence reason when hiding This is intended to provide a bit more information on the request thread and hopefully head off some questions to support. --- lib/excel_analyzer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/excel_analyzer.rb b/lib/excel_analyzer.rb index 56e0b763..48d173c1 100644 --- a/lib/excel_analyzer.rb +++ b/lib/excel_analyzer.rb @@ -7,6 +7,7 @@ foi_attachment.update_and_log_event( prominence: 'hidden', + prominence_reason: "We've found a problem with this file, so it's been hidden while we review it. We might not be able to give more details until then.", event: { editor: User.internal_admin_user, reason: 'ExcelAnalyzer: hidden data detected'