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
2019-09-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-04-12Externalize strings in app/modelsMartin Wortschack
- Update PO file
2019-03-28Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas
2018-12-07Use FastDestroy for deleting uploadsJan Provaznik
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.
2018-11-07Backport changes from EEToon Claes
Now the files are identical again compared to EE. These are backported from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/5050
2018-11-07Enhance performance of counting local UploadsToon Claes
Add an index to the `store` column on `uploads`. This makes counting local uploads faster. Also, there is no longer need to check for objects with `store = NULL`. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/18557 --- ### Query plans Query: ```sql SELECT COUNT(*) FROM "uploads" WHERE ("uploads"."store" = ? OR "uploads"."store" IS NULL) ``` #### Without index ``` gitlabhq_production=# EXPLAIN ANALYZE SELECT uploads.* FROM uploads WHERE (uploads.store = 1 OR uploads.store IS NULL); QUERY PLAN --------------------------------------------------------------------------------------------------------------- Seq Scan on uploads (cost=0.00..601729.54 rows=578 width=272) (actual time=6.170..2308.256 rows=545 loops=1) Filter: ((store = 1) OR (store IS NULL)) Rows Removed by Filter: 4411957 Planning time: 38.652 ms Execution time: 2308.454 ms (5 rows) ``` #### Add index ``` gitlabhq_production=# create index uploads_tmp1 on uploads (store); CREATE INDEX ``` #### With index ``` gitlabhq_production=# EXPLAIN ANALYZE SELECT uploads.* FROM uploads WHERE (uploads.store = 1 OR uploads.store IS NULL); QUERY PLAN ------------------------------------------------------------------------------------------------------------------------------- Bitmap Heap Scan on uploads (cost=11.46..1238.88 rows=574 width=272) (actual time=0.155..0.577 rows=545 loops=1) Recheck Cond: ((store = 1) OR (store IS NULL)) Heap Blocks: exact=217 -> BitmapOr (cost=11.46..11.46 rows=574 width=0) (actual time=0.116..0.116 rows=0 loops=1) -> Bitmap Index Scan on uploads_tmp1 (cost=0.00..8.74 rows=574 width=0) (actual time=0.095..0.095 rows=545 loops=1) Index Cond: (store = 1) -> Bitmap Index Scan on uploads_tmp1 (cost=0.00..2.44 rows=1 width=0) (actual time=0.020..0.020 rows=0 loops=1) Index Cond: (store IS NULL) Planning time: 0.274 ms Execution time: 0.637 ms (10 rows) ``` Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/6070
2018-07-27Enable frozen string in app/models/*.rbgfyoung
Partially addresses #47424.
2018-03-22remove EE-only codeMicaël Bergeron
2018-03-22Backport ee-40781-os-to-ceMicaël Bergeron
2018-03-01port the object storage to CEMicaël Bergeron
2018-02-28Merge commit '7e424eb852716495073881710e8a8851b4a4cd5a' into ↵Kamil Trzciński
object-storage-ee-to-ce-backport
2018-02-28Merge branch '4163-move-uploads-to-object-storage' into 'master'Sean McGivern
Move uploads to object storage Closes #4163 See merge request gitlab-org/gitlab-ee!3867
2018-02-06improvements from feedbackMicaël Bergeron
2018-02-06remove file after `Upload#destroy`Micaël Bergeron
it will also automatically prune empty directories for `FileUploader`-based uploaders.
2018-02-02apply fixes from feedbackMicaël Bergeron
2018-02-02add the uploader context to the upload modelMicaël Bergeron
2018-02-01fix specsMicaël Bergeron
2018-02-01port of 594e6a0a625^..f74c90f68c6Micaël Bergeron
2017-06-07Added Cop to blacklist polymorphic associationsYorick Peterse
One should really use a separate table instead of using polymorphic associations. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for more information.
2017-03-06Add Upload model and UploadChecksumWorker workerRobert Speicher