/srv/irclogs.ubuntu.com/2014/06/04/#launchpad-dev.txt

=== broder_ is now known as broder
=== timrc is now known as timrc-afk
evfoolhey all, I would be interested in implementing a launchpad bugtracker plugin, and need to know whether a bug tracker plugin can modify the bug title on launchpad11:24
wgrantevfool: Launchpad bugwatches can only import status and importance.12:02
wgrantcjohnston, cprov: Joining?12:02
cjohnstonI'm in there12:02
wgrantAre you sure?12:03
evfoolwgrant: meaning that if I would like an integration with an external site which does change the bug title, I would have to modify the launchpad core, and that's probably not going to get accepted (just for the sake of providing better integration with an external bugtracker)12:23
evfool?12:23
wgrantevfool: Bugwatches aren't really meant to do that. They're usually used by projects or distributions that use Launchpad's bugtracker, and they mostly want Launchpad to tell them when the same bug on a remote bugtracker is fixed.12:32
wgrantSo it shouldn't automatically change the Launchpad title.12:32
wgrantWhat are you trying to do?12:32
evfoolwgrant: bountysource integration, but the only pluggable thing I have found in launchpad are bugtrackers, which bountysource is12:33
evfoolsee bug 132504512:33
_mup_Bug #1325045: Bountysource integration [$100] <Launchpad itself:New> <https://launchpad.net/bugs/1325045>12:33
wgrantThat doesn't seem like a good fit for bugwatch integration.12:34
wgrantWhy do you particularly want it integrated in Bugs, or indeed Launchpad at all?12:34
evfoolwgrant: the elementary project uses bountysource to provide bug bounties, and uses launchpad for bug tracking, code reviews, merge proposals and others12:35
evfoolwgrant: when adding a bounty, that appears only on bountysource, and they would like better integration with launchpad to have some sort of status on bugs with bounties about the bounty12:36
evfoolcurrently, each bug gets manually commented with a link to the bountysource issue, the title gets updated to contain the bounty value, and occasionally a bounty tag is added too12:37
wgrantI'd suggest a bot using the Launchpad API instead12:37
wgrantI think that makes more sense than a bugwatch here.12:37
evfoolwgrant: thanks, I'll look into integrating from the other side, through a bot making the changes12:38
wgrantYou can file a bug using the createBug method on https://api.launchpad.net/devel.html, using https://help.launchpad.net/API/launchpadlib12:38
evfoolwgrant: bounties get added to already existing launchpad bugs, so I'm not gonna create tickets, but I'll look for updateBug then12:39
evfoolthanks for your help12:39
wgrantcprov, cjohnston: http://pastebin.ubuntu.com/7587437/ gets it down to six queries per translated string.13:21
wgrantI'm not sure the second change is totally correct in the presence of shared POTMsgSets; we need to entire that the TranslationMessage has the correct POFile set, not just getOnePOFile13:21
cprovwgrant: CurrentTranslationMessageZoomedView.zoom_url calls self.sequence too13:23
cprovwgrant: self.context.sequence should fix it13:24
wgrantcprov: I'm not seeing duplicated queries from that here.13:24
wgrantThough we shouldn't be using the ZoomedView multiple times one on page anyway13:26
wgrantThat's why it's zoomed.13:26
wgrantI'm not sure how much further we can reasonably go here without combining the views.13:27
wgrantSo turn the CurrentTranslationMessageView thing into a view that actually renders somewhere between 0 and infinity of them13:27
wgrantRunning all the suggestion queries etc. in bulk13:28
wgrantWe could hack this into the model, but it's going to be ugly and I'm not sure it's worth it.13:28
wgrantcprov: What do you think?13:28
cprovwgrant: I think it will be a long journey, considering the current code shape13:29
wgrantIt's going to be either way13:29
wgrantThe view code does all the suggestion etc. calculations itself13:29
wgrantWe need to move that somewhere higher up13:30
wgrantI'm not sure how much per-message code is left once we do that13:30
wgrantAnd anything that is left is probably crap :)13:30
cprovagreed, minor amendings are not getting us anywhere13:31
cprovthey will probably take as much time and break as many tests as writing a string-batch-loader from scratch.13:33
wgrantThe code in question is mostly browser/{pofile,translationmessage}.py, right?13:33
wgrantIt's big and ugly, but I think it's probably worth basically doing a massive refactor which turns it into a megaview.13:34
wgrantHacking the bulk loading in is only going to make it worse, and it's already like 10 years of hacks13:34
cprovwgrant: well, the megaview would still be in charge of doing the bulk loading of subviews, no ?13:39
wgrantcprov: I'm not sure there'd be many subviews.13:40
cprovor do you mean to collapse those too ?13:40
wgrantAlmost all of the logic would end up in the megaview that renders n messages13:40
wgrantI suspect the per-message templates would end up as macros, not entire views.13:40
cprovmakes sense13:41
=== timrc-afk is now known as timrc
wgrantcjohnston, cprov: I'm done, be back in a sec if you want to hang out again yo.13:57
cjohnstonk13:57
wgrantSo many queries :(14:01
=== timrc is now known as timrc-afk
=== timrc-afk is now known as timrc
=== timrc is now known as timrc-afk
=== timrc-afk is now known as timrc
=== wallyworld is now known as Guest56344
=== wallyworld is now known as Guest68975
=== timrc is now known as timrc-afk

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