Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-09-19Do not perform hard check (presence of file on storage)Kamil Trzcinski
Instead perform soft check (the column set to indicate that file does exist)
2017-08-11Make sure uploads for personal snippets are correctly renderedBob Van Landuyt
2017-08-01Rename more path_with_namespace -> full_path or disk_pathGabriel Mazetto
2017-07-20Merge branch '33359-pers-snippet-files-location' into 'security-9-3'Sean McGivern
Use uploads/system directory for personal snippets See merge request !2123
2017-07-18Move system-uploads to `-/system`Bob Van Landuyt
2017-06-13Fix filename method of GitlabUploader to return always real filenameKamil Trzcinski
2017-06-12Merge branch 'sh-fix-refactor-uploader-work-dir' into 'master'Kamil Trzciński
Set artifact working directory to be in the destination store to prevent unnecessary I/O Closes #33274 See merge request !11905
2017-06-08Make the uploader use the updated folderBob Van Landuyt
2017-06-08Bring in security changes from the 9.2.5 releaseDJ Mountney
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-07Merge branch '12910-snippets-description' into 'master'Phil Hughes
Support descriptions for snippets Closes #31894 See merge request !11071
2017-06-07Support uploads for newly created personal snippetsJarka Kadlecova
2017-06-06Set artifact working directory to be in the destination store to prevent ↵Stan Hu
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
2017-06-05Fix LFS timeouts when trying to save large filesStan Hu
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
2017-06-01Add missing specsKamil Trzcinski
2017-06-01Fix data inconsistency issue for old artifacts by moving them to a currently ↵Kamil Trzcinski
used path
2017-05-31Support descriptions for snippetsJarka Kadlecova
2017-05-02Support uploaders for personal snippets commentsJarka Kadlecova
2017-04-10Periodically clean up temporary upload files to recover storage spaceblackst0ne
2017-03-06Handle relative and absolute Upload paths in the UploadersRobert Speicher
2017-03-06Add `RecordsUploads` module to record Upload records via callbacksRobert Speicher
2017-02-25Minor refactoring of UploadersRobert Speicher
- 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.
2017-02-23Enable Style/MutableConstantDouwe Maan
2017-02-15Merge branch 'svg-xss-fix' into 'security' Robert Speicher
Fix for XSS vulnerability in SVG attachments See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2059
2017-01-03Copy, don't move uploaded avatar filesJacob Vosmaer
2016-12-15Add Gitlab::Middleware::MultipartJacob Vosmaer
2016-12-08Render SVG as images in notesAndre Guedes
2016-11-23Remove event caching codeYorick Peterse
Flushing the events cache worked by updating a recent number of rows in the "events" table. This has the result that on PostgreSQL a lot of dead tuples are produced on a regular basis. This in turn means that PostgreSQL will spend considerable amounts of time vacuuming this table. This in turn can lead to an increase of database load. For GitLab.com we measured the impact of not using events caching and found no measurable increase in response timings. Meanwhile not flushing the events cache lead to the "events" table having no more dead tuples as now rows are only inserted into this table. As a result of this we are hereby removing events caching as it does not appear to help and only increases database load. For more information see the following comment: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6578#note_18864037
2016-07-24Remove magic comments from Ruby files (!5456)winniehell
2016-07-20Remove VideoJS and clean the integrationRémy Coutable
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>
2016-07-19Remove duplication, useless rescue, and avoid using ActionViewRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-19Get rid of `is_image` in FileUploaderRémy Coutable
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-19First support of videos in issues, MRs and notesEric Hayes
* Registered video MIME types * Currently supporting browser-supported formats with extensions that match the mime type
2016-07-19squashed - added avatar saver/restorer and specsJames Lopez
added spec for avatar saver avatar saver! added avatar restorer spec fix spec added avatar restorer class fix export service fix warnings, added changelog fix spec some refactoring based on feedback fixed a few issues after testing i/e avatar
2016-06-29Enable Style/SpaceAfterComma Rubocop copGrzegorz Bizon
2016-03-30Remove reduntant `move_to_store` overrideGrzegorz Bizon
2016-03-30Add method that returns markdown in file uploaderGrzegorz Bizon
2016-03-30Get FileUploader into test harness using factoryGrzegorz Bizon
This attempts to get CarrierWave's uploader - `FileUploader` into test harness using a factory. that makes it easier to build an instance of it. Along with !3435 it may be easier to use uploaders in tests
2016-03-30Add markdown pattern for uploads to file uploaderGrzegorz Bizon
2016-03-15Revert "Merge branch 'avatar-cropping' into 'master' "Rémy Coutable
This reverts commit 01160fc06182de89c400af174861f6545ad6ceb8, reversing changes made to 4bff9daf8b6d85e9c78565e21cfaa3f6d36f0282.
2016-02-18Minor changes on avatar cropping internalsJohann Pardanaud
- Avoid multiple calls to `validates` for the avatar attributes. - In a cropping process, don't check if the model inherits `User`, check if it responds to `:avatar_crop_size`.
2016-02-17Improve avatar cropping internals, based on suggestions made by @rspeicher ↵Johann Pardanaud
on !2773
2016-02-16Improve user experience for avatar croppingJohann Pardanaud
- Avoid incomprehensible errors on non-integer cropping values - Set the default cropping area to 80%
2016-02-10Fix failing tests introduced in commit 6d58088Johann Pardanaud
2016-02-10Fix #7959: Fix avatar stretching by providing a cropping featureJohann Pardanaud
2016-01-14Let the CI runner know about builds that this build depends onKamil Trzcinski
This allows us to implement artifacts passing: runner will download artifacts from all prior builds
2016-01-08DRY up upload and download servicesDouwe Maan
2015-12-29Add hotfix that allows to access build artifacts created before 8.3Grzegorz Bizon
This is a temporary hotfix that allows to access build artifacts created before 8.3. See #5257. This needs to be changed after migrating CI build files. Note that `ArtifactUploader` uses `artifacts_path` to create a storage directory before and after parsisting `Ci::Build` instance, before and after moving a file to store (save and fetch a file).
2015-11-23Expose artifacts pathKamil Trzcinski
2015-11-16Merge branch 'refactor-duplication' into 'master' Dmitriy Zaporozhets
Remove some code duplication * remove duplicate code in uploaders * remove duplicate code in NotificationHelper * remove duplicate code in Repository Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> See merge request !1800
2015-11-16Remove duplicate methods in uploadersDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>