Bullet-proof change descriptions with deleted file attachments.
Review Request #6563 — Created Nov. 6, 2014 and submitted
Because of the ways that file attachments and change descriptions are stored,
it's possible to delete a file attachment from the database but still have its
old pk referenced from the change description. In this case, trying to render
that change description would crash because it no longer exists.This change adds some bullet-proofing to ensure that we don't show a traceback.
Ran unit tests.
Description | From | Last Updated |
---|---|---|
In this particular failure case we're dealing with, it's now sounding more like the file exists but is no longer … |
chipx86 |
-
-
In this particular failure case we're dealing with, it's now sounding more like the file exists but is no longer associated with the review request in any way. Can we have this conditionally check for the value in the map, and if it's missing, attempt a query for that object, then skip only if that doesn't exist?
- Commit:
-
1276a74831faa0a14845e01d2c1fbc854fe7cf3999ef21650d21fde4ad4f42e12289500e36d406b3
- Diff:
-
Revision 2 (+16 -6)