summaryrefslogtreecommitdiff
path: root/app/models/concerns/fast_destroy_all.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix-misspellings-app-comments' into 'master'Rémy Coutable2019-02-261-1/+1
| | | | | Fix misspellings in app/spec comments See merge request gitlab-org/gitlab-ce!25517
* Revert "Merge branch 'fix-misspellings-app-comments' into 'master'"Michael Kozono2019-02-251-1/+1
| | | | | This reverts commit 9202bbd129537a698b986e6295d0c783b5a84815, reversing changes made to 4b282e9ce1ae246c4538b3ede18d1380ea778029.
* Fix misspellings in app/spec commentsTakuya Noguchi2019-02-251-1/+1
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* Allow pass additional options to use_fast_destroyJan Provaznik2018-12-061-2/+2
| | | | These options are then used when setting before destroy callback.
* Use FastDestroy for deleting uploadsJan Provaznik2018-12-061-0/+1
| | | | | | | | | | It gathers list of file paths to delete before destroying the parent object. Then after the parent_object is destroyed these paths are scheduled for deletion asynchronously. Carrierwave needed associated model for deleting upload file. To avoid this requirement, simple Fog/File layer is used directly for file deletion, this allows us to use just a simple list of paths.
* Fix typos in comments and specsGeorge Tsiolis2018-11-011-1/+1
|
* Whitelist existing destroy_all offensesblacklist-destroy-allYorick Peterse2018-08-161-1/+1
| | | | This whitelists all existing places where we use "destroy_all".
* Enable more frozen string in app/models/**/*.rbgfyoung2018-08-071-0/+2
| | | | Partially addresses #47424.
* Use prepend: true to evaluate always perform_fast_destroy than dependent: ↵Shinya Maeda2018-05-041-1/+1
| | | | :destroy
* Fix typo in fast_destroy_allShinya Maeda2018-05-031-1/+1
|
* Simplify FastDestroyAll moduleShinya Maeda2018-05-031-46/+48
|
* Fix typo for comments in fast_destroy_allShinya Maeda2018-05-031-1/+1
|
* Clean up build_trace_chunkShinya Maeda2018-05-031-1/+1
|
* Fix static analysysShinya Maeda2018-05-021-2/+2
|
* Introduce `use_fast_destroy` helper for parent associations. Rename method ↵Shinya Maeda2018-05-021-8/+36
| | | | names in build_trace_chunks. Forbid `destroy` method when `FastDestroyAll` included.
* Introduces `FastDestroyAll` moduleShinya Maeda2018-05-011-0/+61