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
b6208bc1
Commit
b6208bc1
authored
Jan 19, 2018
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Geo node status improvements] Address review comments
parent
ccdf9072
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
lib/tasks/geo.rake
lib/tasks/geo.rake
+2
-2
spec/ee/fixtures/api/schemas/public_api/v4/geo_node_status.json
...e/fixtures/api/schemas/public_api/v4/geo_node_status.json
+4
-2
No files found.
lib/tasks/geo.rake
View file @
b6208bc1
...
...
@@ -271,8 +271,8 @@ namespace :geo do
if
current_node_status
.
updated_at
puts
"
#{
time_ago_in_words
(
current_node_status
.
updated_at
)
}
ago"
else
# Only primary node can create a status record in the database so if it
's not exists
# we get
not persistant AR record here.
# Only primary node can create a status record in the database so if it
does not exist
# we get
unsaved record where updated_at is nil
puts
"Never"
end
end
...
...
spec/ee/fixtures/api/schemas/public_api/v4/geo_node_status.json
View file @
b6208bc1
...
...
@@ -33,7 +33,8 @@
"namespaces"
,
"version"
,
"revision"
,
"_links"
"_links"
,
"updated_at"
],
"properties"
:
{
"geo_node_id"
:
{
"type"
:
"integer"
},
...
...
@@ -84,7 +85,8 @@
"node"
:
{
"type"
:
"string"
}
},
"additionalProperties"
:
false
}
},
"updated_at"
:
{
"type"
:
[
"string"
,
"null"
]
}
},
"additionalProperties"
:
false
}
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