yeti-web
yeti-web copied to clipboard
Audit log issues for service modification
Apr 17 19:39:31 yeti-web[3847525]: [607df48e-e7a2-4768-bc83-536bcd3ac524] Started GET "/audit_log_items/319603" for 1.2.3.4 at 2025-04-17 19:39:31 +0300
Apr 17 19:39:31 yeti-web[3847525]: [607df48e-e7a2-4768-bc83-536bcd3ac524] Processing by AuditLogItemsController#show as HTML
Apr 17 19:39:31 yeti-web[3847525]: [607df48e-e7a2-4768-bc83-536bcd3ac524] Parameters: {"id"=>"9"}
Apr 17 19:39:31 yeti-web[3847525]: [607df48e-e7a2-4768-bc83-536bcd3ac524] Completed 500 Internal Server Error in 55ms (GC: 3.2ms)
Apr 17 19:39:31 yeti-web[3847525]: [607df48e-e7a2-4768-bc83-536bcd3ac524] [607df48e-e7a2-4768-bc83-536bcd3ac524] ActionView::Template::Error (type_id):
[607df48e-e7a2-4768-bc83-536bcd3ac524]
Causes:
[607df48e-e7a2-4768-bc83-536bcd3ac524] ActiveRecord::ReadonlyAttributeError (type_id)
[607df48e-e7a2-4768-bc83-536bcd3ac524] 1: # frozen_string_literal: true
[607df48e-e7a2-4768-bc83-536bcd3ac524] 2: insert_tag renderer_for(:show)
[607df48e-e7a2-4768-bc83-536bcd3ac524]
[607df48e-e7a2-4768-bc83-536bcd3ac524] app/admin/logs/audit_log_items.rb:42:in `block (2 levels) in <main>'
[607df48e-e7a2-4768-bc83-536bcd3ac524] config/initializers/instrumentation_notification.rb:33:in `block in process_action'
[607df48e-e7a2-4768-bc83-536bcd3ac524] config/initializers/instrumentation_notification.rb:32:in `process_action'
yeti=# SELECT * from gui.versions where id = 319603
;
-[ RECORD 1 ]--+--------------------------------------------------------------------------------------------
id | 319603
item_type | Billing::Service
item_id | 466
event | update
whodunnit | 19
object | --- +
| name: 'test' +
| variables: +
| renew_price: !ruby/object:BigDecimal 18:-0.5e2 +
| type_id: 1 +
| account_id: 100500 +
| initial_price: !ruby/object:BigDecimal 18:-0.9e2 +
| id: 466 +
| uuid: a32844c6-726f-4ecc-a603-e8ce29847266 +
| state_id: 10 +
| created_at: 2025-04-17 10:00:40.305662000 Z +
| renew_at: 2025-05-16 21:00:00.000000000 Z +
| renew_period_id: 20 +
|
created_at | 2025-04-17 19:29:55.152948+03
ip | 1.2.3.4
object_changes | --- +
| name: +
| - 'test217' +
| - 'test' +
|
txid | 38746995
Time: 0.232 ms
```