-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Deleting a spam comment or answer might be deleting the question #2449
Comments
hi @Fastie , I have found the bug and have raised a PR for the same. Although, I have detected the problem with answers only i.e. while deleting answer corresponding question is also deleted. I am still working on verifying if comments are also deleting the node. I will advise you not to delete any comment or answer until this issue is resolved as I found this problem is deleting the node.Thanks. |
Thank you @Gauravano ! Really, really appreciate your insight and sleuthing on this!!!!!!!!! 🚀 |
oh wow this is quite serious. I wonder if we can work backwards to
determine if other questions have been deleted from the system, and recover
them from backups.
@gauravano are you filing a fix for this? Given that it involves potential
data loss, we should fast-track this. I'll notify other moderators to hold
off on answer deletions for now.
Any moderator or admin can do this:
https://github.com/publiclab/plots2/blob/master/app/controllers/answers_controller.rb#L40-L42
Probably we need to remove "dependent: destroy" from this line:
https://github.com/publiclab/plots2/blob/master/app/models/answer.rb#L6
…On Thu, Mar 8, 2018 at 3:01 PM, Liz Barry ***@***.***> wrote:
Thank you @Gauravano <https://github.com/gauravano> ! Really, really
appreciate your insight and sleuthing on this!!!!!!!!! 🚀
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2449 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABfJ1ej73oYx3T0nwrUFDHx1LRC0HYDks5tcY4bgaJpZM4Si_qG>
.
|
Super. Thanks. can be used to recover this record and re-instantiate it in the db (i'll do this) However, @Fastie are there others you could definitively find that have been deleted and we should fish into our backups for? If this has been happening for some time, we could run a search on our logs and try to find all instances of answers being deleted, using a regex pattern matcher. Would it have been more than once or twice? |
Thank you @Fastie for reporting and @Gauravano for submitting a fix!!! |
I think there is at least one other question that was deleted when I deleted a spam answer about one to two weeks ago. I am not sure how I became aware of the spam answer but I think it was a question that I had answered some time ago. I think it was about infrared stuff. I think there might be one other case in which I was suspicious that something weird had happened. Then I noticed the most recent one about the infrared filter. The two or three similar cases made me suspicious that something was broken. So there might be two or three cases of deleted questions, but I guess any answer that was deleted in the last (2 to ?) weeks would have deleted the question. If any moderators remember deleting a spam answer (or any answer), there could be more. If moderators have not deleted answers, there might not be more cases. |
Hah! I just found that one too. I don't know if that was one of the ones I had run into. |
OK -- we're probably going to have to recover the answers too, but I'm not sure about that. We'll see! |
I deleted a spam comment (or answer) on a question posted at publiclab.org and then I could not find the question.
I noticed that another question that had a spam answer had disappeared, maybe because another administrator had deleted the answer.
I don't have very good evidence that this is happening, but it is a serious enough issue that I thought I would bring it up just in case it is really happening.
Here is a question that I can't find:
https://publiclab.org/questions/qdominus/08-07-2017/could-this-720nm-ir-filter-from-ebay-be-used-for-ndvi-infragram
There was a spam answer posted to this question.
The text was updated successfully, but these errors were encountered: