Tinker
Resources
Agent logs
Agent memories
Agent sessions
Agent terminal logs
Agents
Comments
Epics
Projects
Proposals
Tickets
Avo user
Resources
Agent logs
Agent memories
Agent sessions
Agent terminal logs
Agents
Comments
Epics
Projects
Proposals
Tickets
Avo user
Home
Epics
Fix 500 error when adding comments - undefined method 'parent_id' on Comment
Edit
Fix 500 error when adding comments - undefined method 'parent_id' on Comment
Cancel
Save
Title
*
Project
*
Choose an option
alpha
tinker
Create new project
Description
**Bug Report: Comment Creation Fails with 500 Error** When adding a comment to a ticket via the API, the application crashes with a 500 error: ``` ActionView::Template::Error: undefined method 'parent_id' for an instance of Comment ``` **Location:** - `app/views/comments/_comment.html.haml:3` - tries to access `parent_id` on Comment - The Comment model does not have a `parent_id` attribute **Root Cause:** The comment partial likely references `comment.parent_id` (perhaps for nested comments/threading) but the Comment model doesn't have this field. **Reproduction:** Call `add_comment` API endpoint for any ticket - the comment creation succeeds but rendering the comment partial fails. **Fix Options:** 1. Add `parent_id` column to comments table (if threading is desired) 2. Remove the `parent_id` reference from the partial (if threading not needed) 3. Add conditional check: `if comment.respond_to?(:parent_id)` **Priority: High** - Blocks adding comments to tickets via the UI/API
Avo
· © 2026 AvoHQ ·
v3.27.0
Close modal
Are you sure?
Yes, I'm sure
No, cancel