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
3b5e1492
Commit
3b5e1492
authored
Feb 28, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused code
parent
81b7d6ad
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
ee/app/models/geo/package_file_registry.rb
ee/app/models/geo/package_file_registry.rb
+0
-1
ee/spec/factories/geo/package_file_registry.rb
ee/spec/factories/geo/package_file_registry.rb
+0
-2
No files found.
ee/app/models/geo/package_file_registry.rb
View file @
3b5e1492
...
...
@@ -12,7 +12,6 @@ class Geo::PackageFileRegistry < Geo::BaseRegistry
belongs_to
:package_file
,
class_name:
'Packages::PackageFile'
scope
:package_file_id_not_in
,
->
(
ids
)
{
where
.
not
(
package_file_id:
ids
)
}
scope
:never
,
->
{
where
(
last_synced_at:
nil
)
}
scope
:failed
,
->
{
with_state
(
:failed
)
}
scope
:synced
,
->
{
with_state
(
:synced
)
}
...
...
ee/spec/factories/geo/package_file_registry.rb
View file @
3b5e1492
...
...
@@ -3,8 +3,6 @@
FactoryBot
.
define
do
factory
:package_file_registry
,
class:
'Geo::PackageFileRegistry'
do
association
:package_file
,
factory:
[
:package_file
,
:npm
]
last_sync_failure
{
nil
}
last_synced_at
{
nil
}
state
{
Geo
::
PackageFileRegistry
.
state_value
(
:pending
)
}
trait
:synced
do
...
...
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