A user created a poll draft with a million options, causing the site to crash whenever the draft is accessed. The user, Rojoss, tried to delete the draft via the web interface but encountered the same crash. Johani suggested accessing the draft through /my/activity/drafts, but this also failed due to the draft loading for preview. Chaboi_3000 attempted to reproduce the issue and found that abandoning a draft via a new topic or PM could work, but not for topics. Finally, pmusaraj provided a solution using the Rails console: find the draft by user ID with Draft.where(user_id: USER_ID) and delete it using Draft.find(DRAFT_ID).destroy. Rojoss thanked the community for the help Rojoss, Johani, Chaboi_3000, pmusaraj.
Hi there, one our users was so stupid to create a poll with like a million options.
This caused the page to crash and now every time the user goes on the site and opens the draft it crashes again.
So my question is if there is any way to delete the draft, or are there any other solutions?
I tried impersonating the user but I get the same issue and I don’t really see an obvious way to delete it.
I’ve tried to repro this on my developmental server and followed the steps, it worked smoothly without any errors. I think there’s a way to do this on the console.