Opened 4 years ago

Last modified 4 years ago

#32107 closed Bug

ProtectedError/RestrictedError raised from Collector.collect has iterator as protected_objects/restricted_objects — at Version 1

Reported by: Kwist Owned by: nobody
Component: Database layer (models, ORM) Version: 3.1
Severity: Release blocker Keywords: database delete ProtectedError RestrictedError
Cc: Hasan Ramezani Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Kwist)

#27852

("Cannot delete some instances of model 'A' because they are referenced through protected foreign keys: 'A.protect', 'B.protect'.", <itertools.chain object at 0x7f96b5cb6c40>)

As a result, the repr of exception in Sentry is not informative.

Change History (2)

by Kwist, 4 years ago

Attachment: objects.patch added

Patch

comment:1 by Kwist, 4 years ago

Description: modified (diff)
Summary: repr of ProtectedError/RestrictedError raised from Collector.collect is not fully informativeProtectedError/RestrictedError raised from Collector.collect has iterator as protected_objects/restricted_objects
Note: See TracTickets for help on using tickets.
Back to Top