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
79451039
Commit
79451039
authored
Jun 22, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the check for file_store being null
parent
0e7e33e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app/models/ci/job_artifact.rb
app/models/ci/job_artifact.rb
+1
-1
No files found.
app/models/ci/job_artifact.rb
View file @
79451039
...
@@ -117,7 +117,7 @@ module Ci
...
@@ -117,7 +117,7 @@ module Ci
after_save
:update_file_store
,
if: :saved_change_to_file?
after_save
:update_file_store
,
if: :saved_change_to_file?
scope
:not_expired
,
->
{
where
(
'expire_at IS NULL OR expire_at > ?'
,
Time
.
current
)
}
scope
:not_expired
,
->
{
where
(
'expire_at IS NULL OR expire_at > ?'
,
Time
.
current
)
}
scope
:with_files_stored_locally
,
->
{
where
(
file_store:
[
nil
,
::
JobArtifactUploader
::
Store
::
LOCAL
]
)
}
scope
:with_files_stored_locally
,
->
{
where
(
file_store:
::
JobArtifactUploader
::
Store
::
LOCAL
)
}
scope
:with_files_stored_remotely
,
->
{
where
(
file_store:
::
JobArtifactUploader
::
Store
::
REMOTE
)
}
scope
:with_files_stored_remotely
,
->
{
where
(
file_store:
::
JobArtifactUploader
::
Store
::
REMOTE
)
}
scope
:for_sha
,
->
(
sha
,
project_id
)
{
joins
(
job: :pipeline
).
where
(
ci_pipelines:
{
sha:
sha
,
project_id:
project_id
})
}
scope
:for_sha
,
->
(
sha
,
project_id
)
{
joins
(
job: :pipeline
).
where
(
ci_pipelines:
{
sha:
sha
,
project_id:
project_id
})
}
scope
:for_ref
,
->
(
ref
,
project_id
)
{
joins
(
job: :pipeline
).
where
(
ci_pipelines:
{
ref:
ref
,
project_id:
project_id
})
}
scope
:for_ref
,
->
(
ref
,
project_id
)
{
joins
(
job: :pipeline
).
where
(
ci_pipelines:
{
ref:
ref
,
project_id:
project_id
})
}
...
...
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