summaryrefslogtreecommitdiff
path: root/app/models/abuse_report.rb
Commit message (Collapse)AuthorAgeFilesLines
* Refactor the DeleteUserWorkerNick Thomas2017-06-051-2/+1
|
* Hard delete users' associated records deleted from AbuseReportssh-add-option-to-hard-deleteStan Hu2017-04-161-1/+1
| | | | | | In the case of spammers, we really want a hard delete to avoid retaining spam. Closes #31021
* Add markdown cache columns to the database, but don't use them yetNick Thomas2016-10-071-0/+7
| | | | | | | | | | | | This commit adds a number of _html columns and, with the exception of Note, starts updating them whenever the content of their partner fields changes. Note has a collision with the note_html attr_accessor; that will be fixed later A background worker for clearing these cache columns is also introduced - use `rake cache:clear` to set it off. You can clear the database or Redis caches separately by running `rake cache:clear:db` or `rake cache:clear:redis`, respectively.
* Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-12/+0
| | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* Clearify who deletes the userZeger-Jan van de Weg2016-03-151-2/+2
|
* Add ability to delete a user with forceZeger-Jan van de Weg2016-03-151-2/+2
|
* Use a more sensible message for the AbuseReport uniqueness validationrs-abuse-report-validationRobert Speicher2016-01-161-1/+1
| | | | | Previously it was "user has already been taken", when really we were saying the user has already been reported.
* Block the reported user before destroying the recordrs-block-user-before-removalRobert Speicher2016-01-121-0/+5
| | | | | | | | This is intended to prevent the user from creating new objects while the transaction that removes them is being run, resulting in objects with nil authors which can then not be edited. See https://gitlab.com/gitlab-org/gitlab-ce/issues/7117
* Add `AbuseReport#notify`rs-abuse-reports-refactorRobert Speicher2016-01-041-0/+6
| | | | Tell, Don't Ask.
* Streamline the "Report button"rymai/gitlab-ce-disable-report-button-if-already-reportedRémy Coutable2015-09-291-2/+2
| | | | | | This simplifies the "Report button" to not use open a dropdown and adds a tooltip on this button. This also removes an extra spec and adds missing specs.
* Re-annotate modelsStan Hu2015-09-061-0/+12
|
* Allow users to send abuse reportsDmitriy Zaporozhets2015-08-061-0/+9
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>