Content
View differences
Updated by Oliver Günther 2 days ago
###
### Steps to reproduce
* Have a future instantiated meeting
* Cancel that future instance
* End the meeting
...
### What is the buggy behavior?
* Internal error
...
### What is the expected behavior?
* Ending works
...
### **Logs**
* AppSignal on Community: [https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/1611/samples/673c529383eb67b55471dda2-1349201345253743005817800419601](https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/1611/samples/673c529383eb67b55471dda2-1349201345253743005817800419601)
```text
PG::ForeignKeyViolation: ERROR: update or delete on table "meetings" violates foreign key constraint "fk_rails_613c652e16" on table "meeting_sections"
DETAIL: Key (id)=(10205) is still referenced from table "meeting_sections".
```
Backtrace:
```text
modules/meeting/app/services/recurring_meetings/update_service.rb:178 block in RecurringMeetings::UpdateService#cleanup_cancelled_schedules
modules/meeting/app/services/recurring_meetings/update_service.rb:176 RecurringMeetings::UpdateService#cleanup_cancelled_schedules
modules/meeting/app/services/recurring_meetings/update_service.rb:55 RecurringMeetings::UpdateService#after_perform
```
<br>
###
* Have a future instantiated meeting
* Cancel that future instance
* End the meeting
* Internal error
* Ending works
* AppSignal on Community: [https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/1611/samples/673c529383eb67b55471dda2-1349201345253743005817800419601](https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/1611/samples/673c529383eb67b55471dda2-1349201345253743005817800419601)
```text
PG::ForeignKeyViolation: ERROR: update or delete on table "meetings" violates foreign key constraint "fk_rails_613c652e16" on table "meeting_sections"
DETAIL: Key (id)=(10205) is still referenced from table "meeting_sections".
```
Backtrace:
```text
modules/meeting/app/services/recurring_meetings/update_service.rb:178 block in RecurringMeetings::UpdateService#cleanup_cancelled_schedules
modules/meeting/app/services/recurring_meetings/update_service.rb:176 RecurringMeetings::UpdateService#cleanup_cancelled_schedules
modules/meeting/app/services/recurring_meetings/update_service.rb:55 RecurringMeetings::UpdateService#after_perform
```
<br>