[00:52] wgrant: I'll do oops-tools if you haven't [01:04] lifeless: I haven't [01:18] wgrant: So, what's going on is the bugtask subscriber stuff is poking in the event and getting a set of new_subscribers and passes that into add_bug_change_notifications. The BugTaskAssignee case is pawing through that list and removing the assignee -- which assumes that everyone listed in new_subscribers is already in recipients. The structsub's owner isn't, so bang. [01:19] Yep [01:19] Bug 1017293 \o/ [01:19] <_mup_> Bug #1017293: Commit message is not shown on the initial merge proposal email < https://launchpad.net/bugs/1017293 > [01:19] bigjools: i accept credit card or prefer cash [01:20] wallyworld_: coffee? [01:20] wgrant: So new_subscribers isn't used anywhere else, and that's why it's only an impact for LIFECYCLE -- otherwise they get a reason [01:20] ok, that will do [01:20] wallyworld_: Act now, and bigjools might throw in his twins [01:20] and a set of steak knives [01:21] * StevenK prepares a shallow grave for Tim Shaw [01:21] twinings only do tea [01:22] wgrant: Given we're only interested in the assignee, I'm tempted to catch the exception here and 'continue' [01:23] StevenK: I'm not sure that's valid. [01:24] wgrant: Why? This function does nothing else with new_subscribers and assumes that all of them are already in recipients [01:25] StevenK: Can you point me at the problematic code? [01:25] wgrant: lib/lp/bugs/subscribers/bug.py. Function is line 139 the block I'm talking about is line 160 [01:27] wgrant: new_subscribers is passed in from subscribers/bugtask.py and is the difference of event.object.bug_subscribers and event.object_before_modification.bug_subscribers === vednis is now known as mars [01:28] In the usual case, it's only going to be the assignee or the empty set [01:28] Oh no [01:28] Not this function :( [01:30] wgrant: Hahaha [01:46] wgrant: thanks for looking at my branch, not sure i 100% agree with the project group reversions. the pg filebug page will list the reason why projects cannot have bugs filed, forbidden is but one reason so the mp sticks to the current conventions in that area [01:47] wallyworld_: Well, doesn't it only check default_product now? [01:48] Blocking it early is also far less necessary now that we just redirect to Product:+filebug [01:48] And this is an exceptional misconfiguration situation [01:48] So I'm not sure adding the extra confusing UI text to the existing situation improves things. [01:48] It'll be very clear when they get redirected to Product:+filebug [01:49] i think so, but what it does it display a message for each product saying eg "not malone" and i've added a new message "forbidden" to go with that [01:50] reverting those bits would make the code simpler for sure [01:50] It would make the code and UI simpler [01:50] the ui is already not simple [01:50] it already lists each product with reasons [01:50] And I'm pretty sure the ProjectGroup contextAllowsNewBugs is buggy [01:50] Does it? [01:50] yes [01:51] The text you've changed seems to only be shown when no projects are selectable. [01:51] yes [01:51] So it doesn't list each product [01:51] 245 There are no projects registered for 246 tal:replace="context/displayname">project displayname [01:51] 247 - that use Launchpad to track bugs. [01:51] 248 + that either use Launchpad to track bugs or allow new bugs to be filed. [01:51] it does, i tested it [01:51] 256 - but none of them use Launchpad as their bug tracker. [01:51] 257 + but either none of them use Launchpad as their bug tracker or none [01:51] 258 + allow new bugs to be filed. [01:51] 272 There is 1 project registered as part of [01:51] 273 but it [01:51] 274 - does not use Launchpad as its bug tracker. [01:51] 275 + does not use Launchpad as its bug tracker or does not allow new [01:51] 276 + bugs to be filed. [01:51] yes, that's the summary message at the top [01:52] and then each product is listed [01:52] with the reason [01:52] https://launchpad.net/launchpad-project/+filebug [01:52] There's just a