Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bb808d0b
Commit
bb808d0b
authored
May 15, 2020
by
Douglas Barbosa Alexandre
Committed by
Michael Kozono
May 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo - Improve query to retrieve Job Artifacts, LFS Objects, and Uploads with files stored locally
parent
41397c5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
ee/app/models/concerns/object_storable.rb
ee/app/models/concerns/object_storable.rb
+1
-1
ee/app/models/ee/lfs_object.rb
ee/app/models/ee/lfs_object.rb
+0
-2
ee/changelogs/unreleased/da-remove-check-file-store-being-null.yml
...logs/unreleased/da-remove-check-file-store-being-null.yml
+6
-0
No files found.
ee/app/models/concerns/object_storable.rb
View file @
bb808d0b
...
...
@@ -4,7 +4,7 @@ module ObjectStorable
extend
ActiveSupport
::
Concern
included
do
scope
:with_files_stored_locally
,
->
{
where
(
klass
::
STORE_COLUMN
=>
[
nil
,
ObjectStorage
::
Store
::
LOCAL
]
)
}
scope
:with_files_stored_locally
,
->
{
where
(
klass
::
STORE_COLUMN
=>
ObjectStorage
::
Store
::
LOCAL
)
}
scope
:with_files_stored_remotely
,
->
{
where
(
klass
::
STORE_COLUMN
=>
ObjectStorage
::
Store
::
REMOTE
)
}
end
end
ee/app/models/ee/lfs_object.rb
View file @
bb808d0b
...
...
@@ -11,8 +11,6 @@ module EE
STORE_COLUMN
=
:file_store
prepended
do
include
ObjectStorable
after_destroy
:log_geo_deleted_event
scope
:project_id_in
,
->
(
ids
)
{
joins
(
:projects
).
merge
(
::
Project
.
id_in
(
ids
))
}
...
...
ee/changelogs/unreleased/da-remove-check-file-store-being-null.yml
0 → 100644
View file @
bb808d0b
---
title
:
Geo - Improve query to retrieve Job Artifacts, LFS Objects, and Uploads with
files stored locally
merge_request
:
24891
author
:
type
:
performance
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment