mirror of
https://github.com/internetee/registry.git
synced 2025-08-12 12:39:34 +02:00
Merge branch '115595167-records_match' into staging
This commit is contained in:
commit
4421e2beb2
4 changed files with 25 additions and 2 deletions
|
@ -49,7 +49,8 @@ module Repp
|
||||||
response_code: status,
|
response_code: status,
|
||||||
api_user_name: current_user.try(:username),
|
api_user_name: current_user.try(:username),
|
||||||
api_user_registrar: current_user.try(:registrar).try(:to_s),
|
api_user_registrar: current_user.try(:registrar).try(:to_s),
|
||||||
ip: request.ip
|
ip: request.ip,
|
||||||
|
uuid: request.uuid
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,10 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def info_for_paper_trail
|
||||||
|
{ uuid: request.uuid }
|
||||||
|
end
|
||||||
|
|
||||||
def user_for_paper_trail
|
def user_for_paper_trail
|
||||||
user_log_str(current_user)
|
user_log_str(current_user)
|
||||||
end
|
end
|
||||||
|
|
|
@ -371,7 +371,8 @@ class EppController < ApplicationController
|
||||||
response: @response,
|
response: @response,
|
||||||
api_user_name: @api_user.try(:username) || current_user.try(:username) || 'api-public',
|
api_user_name: @api_user.try(:username) || current_user.try(:username) || 'api-public',
|
||||||
api_user_registrar: @api_user.try(:registrar).try(:to_s) || current_user.try(:registrar).try(:to_s),
|
api_user_registrar: @api_user.try(:registrar).try(:to_s) || current_user.try(:registrar).try(:to_s),
|
||||||
ip: request.ip
|
ip: request.ip,
|
||||||
|
uuid: request.uuid
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
# rubocop: enable Metrics/CyclomaticComplexity
|
# rubocop: enable Metrics/CyclomaticComplexity
|
||||||
|
|
17
db/migrate/20160411140719_add_matching_column.rb
Normal file
17
db/migrate/20160411140719_add_matching_column.rb
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
class AddMatchingColumn < ActiveRecord::Migration
|
||||||
|
|
||||||
|
def change
|
||||||
|
tables = [:log_account_activities, :log_accounts, :log_addresses, :log_api_users, :log_bank_statements,
|
||||||
|
:log_bank_transactions, :log_blocked_domains, :log_certificates, :log_contact_statuses, :log_contacts,
|
||||||
|
:log_countries, :log_dnskeys, :log_domain_contacts, :log_domain_statuses, :log_domain_transfers,
|
||||||
|
:log_domains, :log_invoice_items, :log_invoices, :log_keyrelays, :log_messages, :log_nameservers,
|
||||||
|
:log_pricelists, :log_registrars, :log_reserved_domains, :log_settings, :log_users, :log_white_ips,
|
||||||
|
:log_zonefile_settings]
|
||||||
|
|
||||||
|
tables.each do |table|
|
||||||
|
add_column table, :uuid, :string
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue