summaryrefslogtreecommitdiff
path: root/app/services/lfs
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-132-0/+4
|
* CE backport for changes in EE MR 14017Luke Duncalfe2019-06-191-1/+9
| | | | | | | | | | | | | | | | | | | | | This backports to CE changes to allow the EE model DesignManagement::Repository to override the #attributes_at method to provide its own git attributes. The #attributes_at method was freely available, as it's never called by anything in the app. It looks like the code that called it got refactored out of existence in ca66a04f. It was still being called in a spec https://gitlab.com/gitlab-org/gitlab-ce/blob/85b29c1c2fa3b94d7371cf454c485457a0756cb1/spec/services/files/create_service_spec.rb#L40 which I've left because with the change in Lfs::FileTransformer in fact is now again the perfect test! See EE MR https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14017 And these comment threads https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894#note_178002089 https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894#note_178049984
* CE backport for changes in EE MR 138949490-record-repository_type-on-lfs_objects_projects-ceLuke Duncalfe2019-06-171-6/+10
| | | | | | | | | | | | | | | | | | | | This backports to CE changes that allow the recording of the repository_type in the table lfs_objects_projects. This is in order to allow future pruning of unreferenced LFS objects, as we will need to know which repository to look in for the LFS pointer file. The EE MR that contains the original code and a full explanation of the changes is https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894 EE Issue https://gitlab.com/gitlab-org/gitlab-ee/issues/9490 Note that there was a lot of CE code changed in the EE MR because we want to allow the wiki repository to also use LFS. See https://gitlab.com/gitlab-org/gitlab-ce/issues/43721. As the wiki is an unlicensed feature, a full backport is required to enable this.
* Fix uploading of LFS tracked file through UIPatrick Bajao2019-05-061-1/+8
|
* Fix several ActionController::Parameters deprecationsJasper Maes2019-01-111-1/+1
|
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-114-0/+8
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Enable more frozen string in app/services/**/*.rbrepo-forks/gitlab-ce-frozen-string-enable-apps-services-inner-moregfyoung2018-07-174-0/+8
| | | | Partially addresses #47424.
* lock permissionMark Chao2018-06-061-1/+1
|
* Bring CE-EE parity to app/services/lfs/unlock_file_service.rbrs-unlock-file-service-parityRobert Speicher2018-05-171-4/+4
|
* Use correct encoding with Lfs::FileTransfromerJames Edwards-Jones2018-03-151-3/+13
|
* Lfs::FileTranformer caches .gitattributes parserJames Edwards-Jones2018-03-151-1/+5
| | | | Prevents `.gitattributes` blob lookup being repeated for every file checked at a given ref
* Avoid failed integrity check by linking LfsObjectProjects soonerJames Edwards-Jones2018-03-151-27/+10
| | | | | Attempted commits were failing due to the pre-recieve LfsIntegrity check. This is skipped during tests making this failure silent.
* Multi-file upload and Commit API obey LFS filtersJames Edwards-Jones2018-03-151-4/+31
| | | | | | | | Updates Files::MultiService for the commits API which is in turn used by the multi-file upload web UI Ensures that files which should be in LFS are transformed into LFS pointers Uses Lfs::Transformer which then links LfsObjectProjects on success
* Rename Lfs::FileModificationHandler to Lfs::FileTransformerJames Edwards-Jones2018-03-151-1/+1
|
* Backport of LFS File Locking APIrd-35856-backport-lfs-file-locking-apiRubén Dávila2018-02-073-0/+99
|
* File upload UI obeys LFS filtersJames Edwards-Jones2018-02-061-0/+42
Uses Lfs::FileModificationHandler to coordinate LFS detection, creation of LfsObject, etc Caveats: 1. This isn't used by the multi-file editor / Web IDE 2. This isn't used on rename. We'd need to be able to download LFS files and add them to the commit if they no longer match so not as simple. 3. We only check the root .gitattributes file, so this should be improved to correctly check for nested .gitattributes files in subfolders.