-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New authority censor rules are not applied to existing responses #3959
Comments
Related to #1156 |
Needs expire requests before redirecting https://github.com/mysociety/alaveteli/blob/develop/app/controllers/admin_censor_rule_controller.rb#L102-L106 Note that |
|
Reopening as the existing requests with body censor rules need to get recached. CensorRule.where('public_body_id IS NOT NULL').each do |rule|
rule.public_body.info_requests.find_in_batches(batch_size: 100) do |group|
group.each do |info_request|
info_request.expire
puts "Cleared InfoRequest: #{ info_request.id }"
end
end
end |
Requests with public body censor rules have been expired. |
If you add a censor rule to an authority after a response has been published, the intended redaction only applies to the correspondence header until the message cache (e.g.
cached_main_body_text_unfolded
) is cleared.The censor rule intention was to replace the last name of the sender.
(May be looking in the wrong place but I can't see how an admin can fix this)
The text was updated successfully, but these errors were encountered: