Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog for DS API rubygem

## 1.5.4 - 2025-04

- (Jon) Adds returned row count to logs when the count is a positive integer.
[GH-272](https://github.com/epimorphics/ppd-explorer/issues/272)

## 1.5.3 - 2025-04

- (Jon) Improved API request logging with query string information, which can
Expand Down
1 change: 1 addition & 0 deletions lib/data_services_api/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def get_json(http_url, params, options) # rubocop:disable Metrics/MethodLength,
)

logged_fields[:method] = response.env.method.upcase
logged_fields[:returned_rows] = returned_rows if returned_rows.positive?
logged_fields[:request_status] = 'processing'
logged_fields[:request_time] = elapsed_time
logged_fields[:status] = response.status
Expand Down
2 changes: 1 addition & 1 deletion lib/data_services_api/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module DataServicesApi
MAJOR = 1
MINOR = 5
PATCH = 3
PATCH = 4
SUFFIX = nil
VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}#{SUFFIX && ".#{SUFFIX}"}"
end