ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

Rerolled frame has no reference to its roll #125

Closed iceberg901 closed 12 years ago

iceberg901 commented 12 years ago

Added a frame to a roll (not sure which one since the roll has since been deleted) using "Add frame via URL" Rerolled that frame to another roll with id: 5009b3f6b415cc62f3000002

This created a new frame with id: 5009b3d9b415cc6c6a000d00

This frame for some reason has roll = nil, which, as far as I understand it, should only happen for frames incoming from Facebook directly via Arnold. Unfortunately, I had deleted the original roll that the frame came from before detecting this problem.

Anyway, I'm pretty sure this situation shouldn't happen. Hopefully there is enough information here to reproduce the issue.

spinosa commented 12 years ago

The mentioned frame (5009b3d9b415cc6c6a000d00) does reference a roll_id (5009b3cab415cc6c6a000ce5). That roll was created 10s before the frame, but has since been deleted.

API has tests to ensure re-rolled frames do reference the new roll and lib/framer.rb raises errors if a roll_id is not given by a controller