Commit b6208bc1 authored by Valery Sizov's avatar Valery Sizov

[Geo node status improvements] Address review comments

parent ccdf9072
...@@ -271,8 +271,8 @@ namespace :geo do ...@@ -271,8 +271,8 @@ namespace :geo do
if current_node_status.updated_at if current_node_status.updated_at
puts "#{time_ago_in_words(current_node_status.updated_at)} ago" puts "#{time_ago_in_words(current_node_status.updated_at)} ago"
else else
# Only primary node can create a status record in the database so if it's not exists # Only primary node can create a status record in the database so if it does not exist
# we get not persistant AR record here. # we get unsaved record where updated_at is nil
puts "Never" puts "Never"
end end
end end
......
...@@ -33,7 +33,8 @@ ...@@ -33,7 +33,8 @@
"namespaces", "namespaces",
"version", "version",
"revision", "revision",
"_links" "_links",
"updated_at"
], ],
"properties" : { "properties" : {
"geo_node_id": { "type": "integer" }, "geo_node_id": { "type": "integer" },
...@@ -84,7 +85,8 @@ ...@@ -84,7 +85,8 @@
"node": { "type": "string" } "node": { "type": "string" }
}, },
"additionalProperties": false "additionalProperties": false
} },
"updated_at": { "type": ["string", "null"] }
}, },
"additionalProperties": false "additionalProperties": false
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment