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
05d37640
Commit
05d37640
authored
Jan 19, 2018
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Geo node status] Expose updated_at through the API
parent
1f3e8f4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
ee/app/models/geo_node_status.rb
ee/app/models/geo_node_status.rb
+1
-1
lib/api/entities.rb
lib/api/entities.rb
+2
-0
No files found.
ee/app/models/geo_node_status.rb
View file @
05d37640
...
...
@@ -58,7 +58,7 @@ class GeoNodeStatus < ActiveRecord::Base
def
self
.
allowed_params
excluded_params
=
%w(id created_at updated_at)
.
freeze
extra_params
=
%w(success health health_status last_event_timestamp cursor_last_event_timestamp version revision storage_shards)
.
freeze
extra_params
=
%w(success health health_status last_event_timestamp cursor_last_event_timestamp version revision storage_shards
updated_at
)
.
freeze
self
.
column_names
-
excluded_params
+
extra_params
end
...
...
lib/api/entities.rb
View file @
05d37640
...
...
@@ -1227,6 +1227,8 @@ module API
expose
:namespaces
,
using:
NamespaceBasic
expose
:updated_at
# We load GeoNodeStatus data in two ways:
#
# 1. Directly by asking a Geo node via an API call
...
...
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