/srv/irclogs.ubuntu.com/2013/10/17/#launchpad-dev.txt

StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/do-not-validate-bugwatch-on-delete/+merge/19154301:03
wgrantStevenK: r=me01:04
StevenKwgrant: Javascript, since I've marked the MP as Needs Review?01:09
StevenKwgrant: What about your favourite topic, microservices and the releases of auditor{,fixture,client}?02:51
wgrantStevenK: Have you tested the JS for XSSes?03:17
StevenKI think it's okay in that respect.03:18
wgrantYou thought so last time too :P03:18
wgrantBut it looks much better this time03:19
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/use-transitionToStatus-createManyTasks/+merge/19155404:08
wgrantStevenK: That's not clearly correct.04:17
wgrantStevenK: It'll now create items in the activity log and send emails.04:17
StevenKwgrant: I don't see anything in IBugTask.transitionToStatus() that notifies04:20
wgrantah, right, it's the terribly broken subscriber model that does that.04:21
StevenKI can refactor out the reseting and setting attribute logic so that createManyTasks and transitionToStatus both call it.04:23
wgrantHow expensive is transitionToStatus?04:23
StevenKIt checks if the user can edit the status, switches the status and sets columns based on the status04:25
wgrantSo, createManyTasks is meant to be vaguely efficient04:25
StevenKSure04:25
wgrantIt currently isn't great, because it calls a separate method to update the target name cache04:25
wgrantBut transitionToStatus will make it a lot worse.04:26
StevenK:-(04:28
StevenKwgrant: But we're only updating a few columns of one row?04:34
StevenKOr is it the horrible zope subscribers that are defeating us?04:35
wgrantStevenK: Confused04:43
wgrantStevenK: You're making various auth queries, then setting a few columns on a row, for several rows.04:43
StevenKwgrant: So we refactor out the reset and setting logic out of transitionToStatus(), and then no auth queries.04:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!