Skip to content
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

Closed
Fastie opened this issue Mar 8, 2018 · 13 comments · Fixed by #2450
Closed

Deleting a spam comment or answer might be deleting the question #2449

Fastie opened this issue Mar 8, 2018 · 13 comments · Fixed by #2450
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed high-priority

Comments

@Fastie
Copy link

Fastie commented Mar 8, 2018

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.

@grvsachdeva
Copy link
Member

grvsachdeva commented Mar 8, 2018

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.

@grvsachdeva grvsachdeva added bug the issue is regarding one of our programs which faces problems when a certain task is executed high-priority labels Mar 8, 2018
@ebarry
Copy link
Member

ebarry commented Mar 8, 2018

Thank you @Gauravano ! Really, really appreciate your insight and sleuthing on this!!!!!!!!! 🚀

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018 via email

@grvsachdeva
Copy link
Member

hi @jywarren , I have raised a PR at #2450 solving this issue and have also added some tests so that no such issue arises in future. Please have a look.

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

Super. Thanks.

https://stable.publiclab.org/questions/qdominus/08-07-2017/could-this-720nm-ir-filter-from-ebay-be-used-for-ndvi-infragram

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?

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

Thank you @Fastie for reporting and @Gauravano for submitting a fix!!!

@Fastie
Copy link
Author

Fastie commented Mar 9, 2018

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.

@Fastie
Copy link
Author

Fastie commented Mar 9, 2018

Hah! I just found that one too. I don't know if that was one of the ones I had run into.

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

@jywarren
Copy link
Member

jywarren commented Mar 9, 2018

OK -- we're probably going to have to recover the answers too, but I'm not sure about that. We'll see!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the issue is regarding one of our programs which faces problems when a certain task is executed high-priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants