Commit Graph

18 Commits

Author SHA1 Message Date
GitLab Bot 5a7d44a955 Add latest changes from gitlab-org/gitlab@master 2020-10-29 12:08:50 +00:00
GitLab Bot 4c5468b408 Add latest changes from gitlab-org/gitlab@master 2020-06-24 15:08:50 +00:00
GitLab Bot c7ad2610df Add latest changes from gitlab-org/gitlab@master 2020-05-14 09:07:53 +00:00
GitLab Bot a6c2be7cd2 Add latest changes from gitlab-org/gitlab@master 2020-02-21 21:08:57 +00:00
GitLab Bot 76623c12c1 Add latest changes from gitlab-org/gitlab@master 2020-02-05 21:09:02 +00:00
GitLab Bot b3e4ec8e8a Add latest changes from gitlab-org/gitlab@master 2019-10-23 09:06:03 +00:00
GitLab Bot 94be244a9f Add latest changes from gitlab-org/gitlab@master 2019-10-15 03:06:19 +00:00
GitLab Bot 427b23c127 Add latest changes from gitlab-org/gitlab@master 2019-10-03 00:05:59 +00:00
GitLab Bot d46287cc16 Add latest changes from gitlab-org/gitlab@master 2019-09-20 12:05:52 +00:00
Shinya Maeda 387a4f4b2c Remove legacy artifact related code
We've already migrated all the legacy artifacts to the new realm,
which is ci_job_artifacts table.
It's time to remove the old code base that is no longer used.
2019-05-31 10:49:17 +07:00
Micaël Bergeron 3d42bab71a
apply feedback 2018-06-12 11:22:35 -04:00
Micaël Bergeron e1589a5c58
apply feedback 2018-06-08 10:51:59 -04:00
Micaël Bergeron 44975f8a5a
shave off another 20% query 2018-06-07 10:01:47 -04:00
Micaël Bergeron 38c2e480bf
shave off 30% of the query count 2018-06-06 16:45:42 -04:00
Sean McGivern 6ecf819f73 Fix an N+1 in avatar URLs
This is tricky: the query was being run in
`ObjectStorage::Extension::RecordsUploads#retrieve_from_store!`, but we can't
just add batch loading there, because the `#upload=` method there would use the
result immediately, making the batch only have one item.

Instead, we can pre-emptively add an item to the batch whenever an avatarable
object is initialized, and then reuse that batch item in
`#retrieve_from_store!`. However, this also has problems:

1. There is a lot of logic in `Avatarable#retrieve_upload_from_batch`.
2. Some of that logic constructs a 'fake' model for the batch key. This should
   be fine, because of ActiveRecord's override of `#==`, but it relies on that
   staying the same.
2018-06-05 14:57:19 +01:00
Micaël Bergeron fdfc20c3ff apply feedback 2018-05-09 19:57:08 +00:00
Micaël Bergeron 59d3e84f0a remove the `Upload` redefinition in `MigrateUploadsWorker` 2018-05-08 10:04:52 -04:00
Micaël Bergeron 10cc6cb56f backport missing object storage worker specs 2018-04-02 15:28:56 -04:00