[12:09] wgrant: Is it intentional that AccessArtifact has FKs for bug and specification, but not branch? [12:10] wgrant: Just tracking down the IntegrityError I found when QAing https://bugs.launchpad.net/launchpad/+bug/1456583, and wondering why Branch.destroySelf apparently doesn't need to clean up its AAs [12:10] Bug #1456583: Can't delete Git repositories [12:12] I wonder if there are leftover AA rows for now-nonexistent branches as a result. [12:20] bug integer REFERENCES bug, [12:20] branch integer, -- FK to be added later. [12:22] Something must have been checking for branch FKs. [12:24] APGF.grantee is the only other one from that patch that wasn't fixed later. [12:36] Oh, no [12:36] APGF.grantee is deliberately not FKed, I think, because it shouldn't be touched by person merge. [12:36] It's purely maintained by triggers. [13:10] So do I need something like getUtility(IAccessArtifactSource).delete([self]) ? [13:11] One of these days I will properly understand the access model :)