Production 500 on POST /today: fix merged but not deployed #94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Regression from
ldraney/landscaping-assistant #75— fix merged but never deployed due to CI pipeline failures (#76-#91).Repo
ldraney/landscaping-assistantWhat Broke
WorkQueueItemsController#createreturns 500 when adding a property to the work queue via turbo stream. Error from Loki:Backtrace:
create.turbo_stream.erb:9->_property_item.html.erb:11The deployed
createaction does not set@queued_property_idsbefore rendering_property_item, which calls@queued_property_ids.include?(property.id)on line 11.Two occurrences in 48h:
landscaping-assistant-7c4c699554-cpc89landscaping-assistant-7745f8-g4crmRepro Steps
/todayNote: not every create hits this — only when the turbo stream replaces the property item (existing property path, not quick-add).
Expected Behavior
Property is added to the queue and the property list item updates to show "Queued" badge via turbo stream replace.
Environment
landscaping-assistant3cf5f0f(image tagharbor.tail5b443a.ts.net/landscaping-assistant/app:3cf5f0fafde4484b796ed8a1cdefb1ce5cfff18d)32171f9(PR #75, merged to main, 7 commits ahead of deployed)Acceptance Criteria
32171f9POST /todayreturns 200 in production (turbo stream renders without error)NoMethodErrorin Loki for this controllerRelated