summaryrefslogtreecommitdiff
path: root/spec/uploaders
Commit message (Collapse)AuthorAgeFilesLines
* Make sure uploads for personal snippets are correctly renderedBob Van Landuyt2017-08-112-9/+9
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-022-4/+4
|
* Ensure all project factories use `:repository` trait or `:empty_project`rs-empty_project-cleanupRobert Speicher2017-08-011-1/+1
|
* Merge branch '33359-pers-snippet-files-location' into 'security-9-3'Sean McGivern2017-07-192-9/+9
| | | | | Use uploads/system directory for personal snippets See merge request !2123
* Update specs for new upload pathBob Van Landuyt2017-07-182-2/+2
|
* Fix filename method of GitlabUploader to return always real filenamefix-filename-of-artifact-uploaderKamil Trzcinski2017-06-131-0/+16
|
* Merge branch 'sh-fix-refactor-uploader-work-dir' into 'master'Kamil Trzciński2017-06-123-19/+50
|\ | | | | | | | | | | | | Set artifact working directory to be in the destination store to prevent unnecessary I/O Closes #33274 See merge request !11905
| * Set artifact working directory to be in the destination store to prevent ↵sh-fix-refactor-uploader-work-dirStan Hu2017-06-063-19/+50
| | | | | | | | | | | | | | | | | | | | | | | | unnecessary I/O Similar to #33218, build artifacts were being uploaded into a CarrierWave temporary directory in the Rails root directory before moved to their final destination, which could cause a copy across filesystems. This merge request refactors the work in !11866 so that any uploader can just override `work_dir` to change the default implementation. Closes #33274
* | Bring in security changes from the 9.2.5 releaseDJ Mountney2017-06-073-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge branch '12910-snippets-description' into 'master'Phil Hughes2017-06-072-1/+71
|\ \ | |/ |/| | | | | | | | | Support descriptions for snippets Closes #31894 See merge request !11071
| * Support uploads for newly created personal snippets12910-snippets-descriptionJarka Kadlecova2017-06-072-7/+52
| |
| * Support descriptions for snippetsJarka Kadlecova2017-05-311-0/+25
| |
* | Fix LFS timeouts when trying to save large filessh-fix-lfs-from-moving-across-filesystemsStan Hu2017-06-041-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following was happening: 1. Workhorse stores an LFS file in /var/opt/gitlab/gitlab-rails/shared/lfs-objects 2. CarrierWave then renames the file to a temporary directory (e.g. /opt/gitlab/embedded/service/gitlab-rails/tmp) 3. CarrierWave then renames the file to its final location (e.g. /var/opt/gitlab/gitlab-rails/shared/lfs-objects) When the LFS upload path was on a different filesystem than the Rails installation, step 2 could take a longer than 10 seconds, at which point Workhorse would time out with "badgateway: failed after 10s: context canceled". This change makes the work path in the same root as the LFS storage path, preventing moves across filesystems. Closes #33218
* | Add missing specsKamil Trzcinski2017-06-012-0/+94
|/
* Support uploaders for personal snippets comments12910-uploader-pers-snippetJarka Kadlecova2017-05-021-0/+31
|
* Handle relative and absolute Upload paths in the UploadersRobert Speicher2017-03-062-4/+25
|
* Add `RecordsUploads` module to record Upload records via callbacksRobert Speicher2017-03-063-6/+105
|
* Minor refactoring of UploadersRobert Speicher2017-02-244-42/+53
| | | | | | | | | - Moves a duplicate `file_storage?` definition into the common `GitlabUploader` ancestor. - Get the `uploads` base directory from a class method rather than hard-coding it where it's needed. This will be used in a subsequent MR to store Uploads in the database. - Improves the specs for uploaders.
* Don't delete files from spec/fixturesJacob Vosmaer2017-01-031-3/+3
|
* Copy, don't move uploaded avatar filesJacob Vosmaer2017-01-031-4/+4
|
* Add Gitlab::Middleware::MultipartJacob Vosmaer2016-12-153-0/+48
|
* Remove VideoJS and clean the integrationRémy Coutable2016-07-201-28/+31
| | | | | | | | | Handle videos in: - MD preview in notes: commit, issue/MR, MR diff - New notes in: commit, issue/MR, MR diff - Persisted notes in: commit, issue/MR, MR diff Signed-off-by: Rémy Coutable <remy@rymai.me>
* First support of videos in issues, MRs and notesEric Hayes2016-07-191-0/+42
* Registered video MIME types * Currently supporting browser-supported formats with extensions that match the mime type