summaryrefslogtreecommitdiff
path: root/spec/models/abuse_report_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@13-2-stable-eeGitLab Bot2020-07-201-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-051-2/+2
|
* Replace rails_helper.rb with spec_helper.rb66741-remove-spec-rails_helper-rbAsh McKenzie2019-08-301-1/+1
| | | | | rails_helper.rb's only logic was to require spec_helper.rb.
* Add # frozen_string_literal to spec/modelsThong Kuah2019-04-011-0/+2
| | | | Adds `# frozen_string_literal: true` to spec/models ruby files
* Optimize a few simple spec files by using `set`Grzegorz Bizon2017-09-131-3/+4
|
* Remove superfluous type defs in specsKeifer Furzland2017-07-271-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
|
* Refactor the DeleteUserWorkerNick Thomas2017-06-051-3/+1
|
* Hard delete users' associated records deleted from AbuseReportssh-add-option-to-hard-deleteStan Hu2017-04-161-1/+2
| | | | | | In the case of spammers, we really want a hard delete to avoid retaining spam. Closes #31021
* Fix specs for the ghost user feature.12726-preserve-issues-after-deleting-usersTimothy Andrew2017-02-241-1/+1
|
* Add markdown cache columns to the database, but don't use them yetNick Thomas2016-10-071-0/+4
| | | | | | | | | | | | 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-3/+4
|
* Fix broken specsZeger-Jan van de Weg2016-03-151-9/+6
|
* 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/+16
| | | | | | | | 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/+17
| | | | Tell, Don't Ask.
* Streamline the "Report button"rymai/gitlab-ce-disable-report-button-if-already-reportedRémy Coutable2015-09-291-0/+12
| | | | | | 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/+7
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>