Open kingqueen3065 opened 2 years ago
Similar to https://github.com/mysociety/alaveteli/issues/4014 although instead of this being due to an InfoRequest
being removed it was a AlaveteliPro::DraftInfoRequestBatch
instance.
irb(main):001:0> u = User.find 11109
=>
#<User:0x00007ffbd9cc8be8
...
irb(main):002:0> u.request_summaries.select { _1.summarisable.nil? }
=>
[#<AlaveteliPro::RequestSummary:0x00007ffbda5156e8
id: 750672,
title: nil,
body: "Dear [Authority name],\n\n\n\nYours faithfully,\n\n...snip...",
public_body_names: "",
summarisable_id: 2800,
summarisable_type: "AlaveteliPro::DraftInfoRequestBatch",
created_at: Fri, 22 Apr 2022 17:16:18.674185000 BST +01:00,
updated_at: Fri, 22 Apr 2022 17:16:18.674185000 BST +01:00,
user_id: 11109,
request_created_at: Fri, 22 Apr 2022 17:16:18.642540000 BST +01:00,
request_updated_at: Fri, 22 Apr 2022 17:16:18.642540000 BST +01:00>]
irb(main):003:0> _.each(&:destroy)
I've got 2 draft requests in my account, so my dashboard says. When I click on the 2, I get this