ES /docs

error on sitetrack_id: 21354 - undefined method `untrashed?' for nil

State: 725fbb66-a1d4-4df0-a4a0-19508633ecf4

Progress#

Phase Status Timestamp
Analyze done 2026-07-16T00:00:00Z
Plan done 2026-07-16T00:05:00Z
Jira done 2026-07-16T00:10:00Z
Prepare done 2026-07-16T00:15:00Z
Implement: tesla done 2026-07-16T00:20:00Z
Validate done 2026-07-16T00:25:00Z
PR done 2026-07-16T00:30:00Z
Reflection done 2026-07-16T00:35:00Z

Decisions#

  • Root cause: app/models/concerns/finalization/editing_entity.rb:39 calls .untrashed? on self.editing without safe navigation. When editing_id references an orphaned/purged Editing record, self.editing is nil and raises NoMethodError.
  • Fix: change .untrashed? to &.untrashed? on line 39 to match the pattern already used on line 42.
  • Complexity: TRIVIAL — single-character change on a single line.