Jarka Košanová
19db315734
Add rake tasks for migrating leacy uploads
...
- move uploads created by AttachmentUploader
- handle also files created for legacy_diff_notes
2019-08-16 07:52:30 +02:00
Thong Kuah
94bb660460
Add frozen_string_literal to spec/factories
...
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:18:39 +12:00
Stan Hu
b7e3a1e040
Revert "Merge branch '50070-legacy-attachments' into 'master'"
...
This reverts commit fd19f887df
, reversing
changes made to abb2d4c601
.
2019-06-09 05:56:11 -07:00
Jarka Košanová
3335918bff
Migrate legacy uploads to the project location
...
Uploads coming from AttachmentUploader
need to be moved to the currently supported location
(FileUploader)
2019-06-06 15:33:04 +02:00
Sean McGivern
79dd92c818
Optimise upload path calls
...
String#underscore isn't particularly slow, but it's possible for us to
call it many times in a users autocomplete request, with mostly-static
values ('User', 'Group', etc.). We can memoise this and save a
surprising amount of time (around 10% of the total request time in some
cases).
2019-05-14 11:01:48 -05:00
Semyon Pupkov
87b85ef81c
Fix DynamicAttributeDefinedStatically cop
2018-09-21 12:37:57 +05:00
Valery Sizov
581a946f5a
Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6860
2018-08-14 19:21:48 +03:00
James Lopez
a27d4d9e52
update uploads saver
2018-07-10 16:33:40 +02:00
Micaël Bergeron
0d458b96e8
remove geo specific code
2018-03-01 16:30:31 -05:00
Micaël Bergeron
0f1d348d68
port the object storage to CE
2018-03-01 10:34:30 -05:00
Kamil Trzciński
79a5e7fb53
Merge commit '7e424eb852716495073881710e8a8851b4a4cd5a' into object-storage-ee-to-ce-backport
2018-02-28 21:14:25 +01:00
Sean McGivern
a7dae52e9d
Merge branch '4163-move-uploads-to-object-storage' into 'master'
...
Move uploads to object storage
Closes #4163
See merge request gitlab-org/gitlab-ee!3867
2018-02-28 20:58:15 +01:00
Micaël Bergeron
74ddc80590
add the uploader context to the upload model
2018-02-02 09:28:15 -05:00
Micaël Bergeron
2057a6acde
port of 594e6a0a625^..f74c90f68c6
2018-02-01 12:14:46 -05:00
Rémy Coutable
4af9d592c5
Replace factory_girl_rails with factory_bot_rails
...
I've followed the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/4-9-0-stable/UPGRADE_FROM_FACTORY_GIRL.md ) and ran these two commands:
```
grep -e FactoryGirl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|FactoryGirl|FactoryBot|"
grep -e factory_girl **/*.rake **/*.rb -s -l | xargs sed -i "" "s|factory_girl|factory_bot|"
```
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-12-14 15:01:55 +01:00
Jarka Kadlecova
f7c18ca314
Support uploads for groups
2017-12-07 12:27:52 +01:00
Robert Speicher
72a7b30c9f
Change all `:empty_project` to `:project`
2017-08-02 17:47:31 -04:00
Robert Speicher
9513bd18c4
Ensure all project factories use `:repository` trait or `:empty_project`
2017-08-01 14:51:52 -04:00
Bob Van Landuyt
458f3cf9b0
Update specs for new upload path
2017-07-18 15:38:54 +02:00
DJ Mountney
1d1363e2bb
Bring in security changes from the 9.2.5 release
...
Ran:
- git format-patch v9.2.2..v9.2.5 --stdout > patchfile.patch
- git checkout -b 9-2-5-security-patch origin/v9.2.2
- git apply patchfile.patch
- git commit
- [Got the sha ref for the commit]
- git checkout -b upstream-9-2-security master
- git cherry-pick <SHA of the patchfile commit>
- [Resolved conflicts]
- git cherry-pick --continue
2017-06-07 21:16:20 -07:00