Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator delete: also remove OperatorInFeed records #807

Closed
irees opened this issue Oct 2, 2016 · 2 comments
Closed

Operator delete: also remove OperatorInFeed records #807

irees opened this issue Oct 2, 2016 · 2 comments
Assignees

Comments

@irees
Copy link
Member

irees commented Oct 2, 2016

An old, deprecated Operator from f-9qd-yosemite~ca~us was removed, but Operator delete via changeset did not remove the OperatorInFeed record, which now referenced a missing record for operator_id. This can cause the FeedSerializer and other things to fail.

=> #<OperatorInFeed id: 200, gtfs_agency_id: "114", version: 1, created_at: "2016-03-19 00:21:50", updated_at: "2016-03-19 00:21:50", operator_id: 194, feed_id: 55, created_or_updated_in_changeset_id: 682>

Make OperatorInFeed records either dependent: destroy, or clean them up in before_destroy_making_history

@irees irees self-assigned this Oct 2, 2016
@drewda
Copy link
Member

drewda commented Oct 3, 2016

Duplicate of #797 ?

@irees
Copy link
Member Author

irees commented Oct 3, 2016

Good catch. Duplicate of #797

@irees irees closed this as completed Oct 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants