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

wgrantStevenK: https://code.launchpad.net/~wgrant/launchpad/bm-buildercache/+merge/18596805:16
StevenKwgrant: http://pastebin.ubuntu.com/6117968/05:17
wgrantStevenK: headerspan still confuses me, not least because person !== null surely makes more sense.05:20
wgrantheaderspan seems to look completely different depending on whether it's a draft or not.05:21
wgrantPerhaps construct it independently in those two cases.05:21
wgrantBut otherwise it's looking much more sane.05:22
StevenKwgrant: http://pastebin.ubuntu.com/6117982/05:25
wgrant+    var headerspan = null;05:26
wgrantAlso consider headerspan = Y.Node.create('<span>Comment by <a></a> on <span></span></span>')05:27
wgrantRoughly as readable as a template, without the overhead of using an actual template engine.05:28
StevenKwgrant: Then we don't need the extra span05:28
StevenKwgrant: I wasn't sure how JS was about if (...) {\n var blah; } else { var blah; }05:29
StevenKOh, we do need the span, so we can use .set(), right05:30
wgrantStevenK: They should both end up in function scope.05:30
wgrantI don't think ECMAScript has block scope.05:31
StevenK      81: 'headerspan' is already defined.05:32
StevenK      84: 'headerspan' used out of scope.05:32
StevenK      87: 'headerspan' used out of scope.05:32
StevenKFrom that lovely thing, make lint05:32
wgrantBah05:32
wgrantOK, var headerspan;05:32
wgrantBut uninitialised > null;05:32
wgrantSo05:33
wgrantNow this code is in a form that I can vaguely understand what it does!05:33
StevenKwgrant: http://pastebin.ubuntu.com/6117991/05:33
wgrantStevenK: Why do you insert before the next row, rather than after the matching row?05:36
StevenKwgrant: To handle multiple comments on one row05:38
StevenKSo they're shown in order05:38
wgrantWould it make more sense to have a comment container row that then just has a sequence of comment divs for that line within it?05:38
StevenKHmmm, do I really want to rewrite this again? :-)05:39
wgrantWon't the IDs conflict if there are multiple comments on a single line?05:39
StevenKNo, we only set ids for draft comments now05:39
wgrantAh05:39
StevenKBecause they are only rows we are going to want to find again05:40
StevenKPublished comments are displayed, but are static05:40
* StevenK sighs05:44
StevenKif (draft === true) { .... if (draft === true) { ... } }05:45
StevenKwgrant: r=me05:49
wgrantThanks05:54
=== tasdomas_afk is now known as tasdomas
=== tasdomas is now known as tasdomas_afk
=== tasdomas_afk is now known as tasdomas
RoelVis there a way to upload files quickly to launchpad bug reports without using http? ftp maybe?11:26
cjwatsonHTTP is a better file transfer protocol than FTP anyway ...11:27
RoelVyes but launchpad easily fails on it11:27
RoelVvery easily sometimes11:27
RoelVand there is no recovery eother11:27
cjwatsonYou'd probably do better to quote an OOPS ID or something11:27
cjwatsonIt's possible to attach files using the API; it's still over HTTPS, but a somewhat different path from the web UI11:28
RoelVcjwatson, how does it work exactly? command line driven?11:28
cjwatsonhttps://help.launchpad.net/API/launchpadlib11:29
cjwatsonHowever, like I say, if you're hitting an OOPS you should quote it before wasting time on different methods11:29
RoelVcjwatson, ok thanks. Next OOPS I get I'll try and come back12:17
=== tasdomas is now known as tasdomas_afk
=== tasdomas_afk is now known as tasdomas
=== lifeless_ is now known as lifeless
cjwatsonUrsinha: How's bug 1201485 going?  Just wanted to make sure that we'd have it in time for use before release15:16
_mup_Bug #1201485: Need to import translations for the unity daily builds <langpack-o-matic:Triaged> <Launchpad itself:In Progress by ursinha> <Ubuntu Translations:Triaged> <https://launchpad.net/bugs/1201485>15:16
Ursinhacjwatson, I'm writing the final tests, should put it for review today15:31
cjwatsonBrilliant :-)15:31
Ursinha:)15:31
cjwatsonseb128 will be your friend15:32
=== tasdomas is now known as tasdomas_afk
=== tasdomas_afk is now known as tasdomas
=== tasdomas is now known as tasdomas_afk

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