Fix display of IP addresses in audit logs
What does this MR do?
The ip_address
column (introduced in !34065 (merged)) returns an IPAddr, which doesn't specify a JSON
representation so we get the Rails default of a hash of its instance
variables. We need an explicit to_s
to show it in human-readable form.
For #224539 (closed).
I noticed this in !34645 (comment 362885409) but did not follow up
Screenshots
Before:
After:
Does this MR meet the acceptance criteria?
Conformity
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process.