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
307b425f
Commit
307b425f
authored
Sep 02, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix needs_sync_again scope for design registries
parent
0ad4cbf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/app/models/geo/design_registry.rb
ee/app/models/geo/design_registry.rb
+2
-2
No files found.
ee/app/models/geo/design_registry.rb
View file @
307b425f
...
@@ -10,10 +10,10 @@ class Geo::DesignRegistry < Geo::BaseRegistry
...
@@ -10,10 +10,10 @@ class Geo::DesignRegistry < Geo::BaseRegistry
belongs_to
:project
belongs_to
:project
scope
:dirty
,
->
{
with_state
(
:pending
).
where
.
not
(
last_synced_at:
nil
)
}
scope
:failed
,
->
{
with_state
(
:failed
)
}
scope
:failed
,
->
{
with_state
(
:failed
)
}
scope
:needs_sync_again
,
->
{
failed
.
retry_due
}
scope
:needs_sync_again
,
->
{
dirty
.
or
(
failed
.
retry_due
)
}
scope
:never_attempted_sync
,
->
{
with_state
(
:pending
).
where
(
last_synced_at:
nil
)
}
scope
:never_attempted_sync
,
->
{
with_state
(
:pending
).
where
(
last_synced_at:
nil
)
}
scope
:pending
,
->
{
with_state
(
:pending
)
}
scope
:retry_due
,
->
{
where
(
arel_table
[
:retry_at
].
eq
(
nil
).
or
(
arel_table
[
:retry_at
].
lt
(
Time
.
current
)))
}
scope
:retry_due
,
->
{
where
(
arel_table
[
:retry_at
].
eq
(
nil
).
or
(
arel_table
[
:retry_at
].
lt
(
Time
.
current
)))
}
scope
:synced
,
->
{
with_state
(
:synced
)
}
scope
:synced
,
->
{
with_state
(
:synced
)
}
...
...
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