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

Error deleting need with shift survey present #851

Open
benjaminwood opened this issue Jul 21, 2022 — with Honeybadger · 1 comment
Open

Error deleting need with shift survey present #851

benjaminwood opened this issue Jul 21, 2022 — with Honeybadger · 1 comment
Labels
bug Something isn't working

Comments

Copy link
Member

benjaminwood commented Jul 21, 2022

[Fosterful Scheduler/production] ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR:  update or delete on table "needs" violates foreign key constraint "fk_rails_cf04de6280" on table "shift_surveys"DETAIL:  Key (id)=(1836) is still referenced from table "shift_surveys".

Backtrace

line 74 of [PROJECT_ROOT]/app/controllers/needs_controller.rb: destroy
line 63 of [PROJECT_ROOT]/app/controllers/application_controller.rb: set_time_zone

View full backtrace and more info at honeybadger.io

@benjaminwood benjaminwood added the bug Something isn't working label Jul 21, 2022 — with Honeybadger
@benjaminwood benjaminwood changed the title [Fosterful Scheduler/production] ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "needs" violates foreign key constraint "fk_rails_cf04de6280" on table "shift_surveys" DETAIL: Key (id)=(1836) is still referenced from table "shift_surveys". Error deleting need with shift survey present Jul 21, 2022
@benjaminwood
Copy link
Member Author

We need to determine what the desired behavior is here. Should we allow deleting a need at this stage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant