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
bacda5a6
Commit
bacda5a6
authored
Nov 27, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation to Geo::ProjectRegistryFinder
parent
910cd292
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app/finders/geo/project_registry_finder.rb
app/finders/geo/project_registry_finder.rb
+4
-0
No files found.
app/finders/geo/project_registry_finder.rb
View file @
bacda5a6
...
...
@@ -42,6 +42,7 @@ module Geo
# FDW accessors
#
# @return [ActiveRecord::Relation<Geo::Fdw::Project>]
def
fdw_find_unsynced_projects
fdw_table
=
Geo
::
Fdw
::
Project
.
table_name
...
...
@@ -49,6 +50,7 @@ module Geo
.
where
(
'project_registry.project_id IS NULL'
)
end
# @return [ActiveRecord::Relation<Geo::Fdw::Project>]
def
fdw_find_projects_updated_recently
fdw_table
=
Geo
::
Fdw
::
Project
.
table_name
...
...
@@ -61,6 +63,7 @@ module Geo
# Legacy accessors (non FDW)
#
# @return [ActiveRecord::Relation<Project>] list of unsynced projects
def
legacy_find_unsynced_projects
registry_project_ids
=
current_node
.
project_registries
.
pluck
(
:project_id
)
return
current_node
.
projects
if
registry_project_ids
.
empty?
...
...
@@ -75,6 +78,7 @@ module Geo
joined_relation
.
where
(
project_registry:
{
registry_present:
[
nil
,
false
]
})
end
# @return [ActiveRecord::Relation<Project>] list of projects updated recently
def
legacy_find_projects_updated_recently
registry_project_ids
=
current_node
.
project_registries
.
dirty
.
retry_due
.
pluck
(
:project_id
)
return
Project
.
none
if
registry_project_ids
.
empty?
...
...
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