/srv/irclogs.ubuntu.com/2012/09/06/#launchpad-dev.txt

=== gary_poster is now known as gary_poster|away
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/format-imports-ad-infinitum/+merge/12298100:38
wallyworld_wgrant: there's another existing css in choiceedit.js (similar to the one fixed in pickers) which i'll deal with as well00:59
* StevenK stabs Unity01:05
wgrantStevenK: The diff in lib/lp/codehosting/__init__.py is slightly suspicious, but possibly harmless01:10
StevenKwgrant: Right, I wasn't really sure about that one. Probably best to revert and land, I guess?01:11
wgrantYou can keep it if you throw it through ec201:12
wgrantwallyworld_: Bug #1045135, bug #1044546, bug #1044370 are all fixed now, right?01:36
_mup_Bug #1045135: Changing a sharing policy can leave unused access policies lying around <disclosure> <easy> <qa-ok> <sharing> <Launchpad itself:In Progress by wallyworld> < https://launchpad.net/bugs/1045135 >01:36
_mup_Bug #1044546: +sharing shows '{policy_name}' for information types granted but not permitted by current combination of branch and bug sharing policies <qa-ok> <sharing> <ui> <Launchpad itself:In Progress by wallyworld> < https://launchpad.net/bugs/1044546 >01:36
_mup_Bug #1044370: update sharing policies via ajax needs to refresh +sharing details <disclosure> <sharing> <Launchpad itself:In Progress by wallyworld> < https://launchpad.net/bugs/1044370 >01:36
wallyworld_wgrant: yes01:37
wgrantAlso bug #100853801:37
_mup_Bug #1008538: Bug Supervisors are not notified when the project is not shared <bugs> <disclosure> <sharing> <Launchpad itself:In Progress by wallyworld> < https://launchpad.net/bugs/1008538 >01:37
wallyworld_yes, that's the one just applied via the sql01:38
wgrantRight, just wanted to check. All closed now01:38
wallyworld_wgrant: https://code.launchpad.net/~wallyworld/launchpad/css-fix-empty-sharing-table/+merge/12298301:48
* StevenK tries to work out the cause of bug 103677501:48
_mup_Bug #1036775: Launchpad shows bugs in projects that do not use Launchpad bugs <bug-columns> <bugs> <lp-bugs> <regression> <Launchpad itself:Triaged by stevenk> < https://launchpad.net/bugs/1036775 >01:48
wgrantwallyworld_: I wonder if it would be cleaner to create a <tr><td><span>Pillar Name</span>'s private information blah blah</td></tr> in one Y.Node.create, then set tr/td/span's text01:50
wallyworld_wgrant: i tend to find that Y.Node.create doesn't like everything in one statement, nt sure why01:54
wallyworld_i can try it again, but every other time it returns something not quite right01:54
wgrantwallyworld_: Hm, it should work, and it tends to be a bit cleaner I find01:55
wgrantThis particular case isn't that bad, but once you get another layer of nesting it ends up hideous01:55
wallyworld_wgrant: it worked for this case. in the past, it has not gone well if i then try and set text on the node later, when it is created with nested elements in the string01:59
wallyworld_i've pushed the changes01:59
wgrantThanks02:00
wgrantwallyworld_: Hm, didn't you just revert that basically?02:03
wgrantNow the only diff from devel is moving the Y.Node.create into the function02:03
wallyworld_ffs, yes02:04
wallyworld_wgrant: so here's the problem - Y.Node.create('<tr><td></td></tr>') doesn't work, so that's why i did it as a create of the tr node, then an append child for the td02:07
StevenKAh ha, I think I get it02:08
wallyworld_i guess i need to do a .one(td) to set the text02:08
wgrantHuh, that's really strange02:08
wgrantI wonder if it's something about <tr>s not wanting to exist without a surround <tbody>02:09
wallyworld_wgrant: the set text kills any nested nodes, so i needed to do a .one() to get the innermost node. that worked. changes on their way up02:12
wgrantwallyworld_: I was thinking a .one('tr td span').set('text', pillar_name) would work02:13
wallyworld_i don't need the span02:13
wallyworld_and if i doa .one(td) on the row node, that works02:13
wgrantWell, if you don't use the span then you need to also set the rest of the text02:13
wgrantWhich is really part of the template02:14
wgrantBut it doesn't really matter02:14
wallyworld_i can just set the text of the table cell can't i02:14
wgrantRight, but then you have to include the "'s private information blah blah blah blah" in the set() call02:15
wgrantRather than just the pillar_name02:15
wallyworld_oh, i see what you are saying. but it works as is02:17
wgrantwallyworld_: Are your latest changes pushed?02:19
wgrant'cause they're still bad02:19
wgrantOh, no they're not02:19
wgrantYour order is just slightly confusing :)02:19
wallyworld_wgrant: ok, i used a span, looks better i think02:27
wgrantwallyworld_: Indeed, thanks02:34
wgrantr=me02:34
wallyworld_thanks02:35
StevenKwgrant, wallyworld_: https://code.launchpad.net/~stevenk/launchpad/hide-search-for-unofficial/+merge/12299302:58
StevenKSomewhat misnamed, but oh well02:58
StevenKwallyworld_, wgrant: No review for me? :-(03:44
StevenKClearly not.04:02
wallyworld_StevenK: sorry, was at lunch with bigjools04:27
wallyworld_looking now04:28
StevenKwallyworld_: Ah, then maybe you can help me with bug 984871, which has JS written all over it.04:31
wallyworld_ok04:31
StevenKwallyworld_: In Chromium, you load the page and you see the number of results, and then some AJAX events happen and it disappears.04:32
wallyworld_but it works in ff04:33
StevenKYes, but we have to support both.04:33
StevenKUnless they do stupid things like encode ~'s04:33
wallyworld_sure, just remarking04:34
wallyworld_i'll have a look at the js04:34
wallyworld_StevenK: in your mp, i can't see where in the diff the !ServiceUsage.UNKNOWN block mentioned in the covering letter used to be04:37
StevenKwallyworld_: It's not in the diff.04:38
StevenKLine 74 of buglisting-default.pt04:39
wallyworld_the covering letter implies it was changed04:39
wallyworld_oh i see04:41
wallyworld_the outer conditional stays but we are adding a new conditional deeper inside04:41
StevenKRight, exactly.04:41
StevenKwallyworld_: There is other stuff handled in the block that I've left alone.04:42
wallyworld_StevenK: why not use should_show_bug_information as on line 89?04:42
wallyworld_that seems to fit with using an external tracker or not04:43
wallyworld_especially the explanatory text04:43
StevenKwallyworld_: Mainly because that TAL is a mess.04:44
wallyworld_one issue for me is that we would be using two different ways of determining the use of an external tracker - view/should_show_bug_information and the enum check04:45
wallyworld_can't the form stuff just be added to hat same construct?04:46
wallyworld_with the not: removed?04:46
StevenKAh, I see.04:46
StevenKwallyworld_: The construct further down is for portlets04:48
wallyworld_StevenK: you mean because class="top-portlet" ?04:51
wallyworld_the search form is inside this block04:51
wallyworld_so i think the correct thing to do is use view/should_show_bug_information04:52
wallyworld_just like the block above04:52
StevenKwallyworld_: http://pastebin.ubuntu.com/1188320/04:54
wallyworld_i don't quite fully understand line 55 of the diff - "action search_url|string:" is ultimately replaced with just search_url without the "|string:". I guess this is a consequence of removing the f-flag and stopping the use of tal attributes?04:54
wallyworld_StevenK: yes, i think that new diff makes sense to my untrained eye.04:55
StevenKwallyworld_: I have no idea about that bit -- I'm just trying to rip out the class python: bit05:02
wallyworld_StevenK: i think you need action search_url|string: since it will handle an empty search_url05:05
wallyworld_and just render action="" instead maybe of action=None or something like that05:05
StevenKsteven@undermined:~/launchpad/lp-branches/hide-search-for-unofficial% bzr grep 'search_url\|string:'05:10
StevenKlib/lp/bugs/templates/bugtarget-macros-search.pt:    <a tal:attributes="href advanced_search_url|string:?advanced=1"05:10
wallyworld_the |string bit will only be in the tal. the search_url will be set elsewhere05:12
wallyworld_so given that attribute is not part of the feature flag removal, why not just leave it there as it was?05:15
StevenKwallyworld_: http://pastebin.ubuntu.com/1188340/05:18
wallyworld_StevenK: it needs to be a tal attribute05:19
wallyworld_for the expression to be evaluated i think05:19
StevenKwallyworld_: Ah, http://pastebin.ubuntu.com/1188345/05:26
wallyworld_StevenK: yes, that looks right i think05:28
wallyworld_tests will test us for sure :-)05:29
StevenKYeah, indeed05:29
StevenKLet me commit and push05:29
wallyworld_ok, i'll wait for the final diff to update05:29
wallyworld_StevenK: r=me. that chrome issue doesn't happen for me locally sadly, just with lp.net05:38
StevenKwallyworld_: Do you have buglisting turned on?05:40
StevenKThere's a feature flag involved.05:40
wallyworld_ah, maybe not. i always forget that. i wish it had been added to sample data05:40
wallyworld_right, fails now. good.05:42
wallyworld_StevenK: it's a hack that was added in for an issue with Chromium's history handling05:54
wallyworld_i don't understand what the issue was or what the fix does, but removing the hack stops the failure05:55
wallyworld_because it no longer updates history with an 'incorrect' copy of the model missing 'total'05:55
wallyworld_but i don't know what else will break removing this05:55
StevenKStrange06:07
StevenKwallyworld_: Where's the hack?06:07
wallyworld_StevenK: listing_navigator.js, around line 16606:08
StevenKSo I wonder if we could fix it by injecting total into e.prevVal06:09
StevenKBut no idea how to do that06:10
wallyworld_i'd like to fully understand it all before we make changes06:11
wallyworld_why was the change made, what was the issue etc06:11
=== almaisan-away is now known as al-maisan
adeuringgood morning07:34
mgzgood morning adeuring07:34
jmllifeless: hi08:22
jmllifeless: re the LP SOA docs08:22
jmllifeless: where should test implementations of services live?08:23
lifelessfor use when testing things that act as clients?08:24
lifelessThey should be provided by the concrete service, or at least interface tested by it to prevent skew,08:24
lifeless.08:24
jmllifeless: yeah, for that use08:25
jmllifeless: so clients will probably have testing dependencies on the server code tree?08:25
lifelessor a pypi package or deb package08:26
jmlright08:26
lifelessthey shouldn't need to import it however. better if they can't in general - use processes to use it08:27
jmlhmm08:27
jmllifeless: you have told me before but I can't recall (sorry). Why is it better if they can't?08:28
lifelessit makes it harder to tightly couple these loosely coupled things08:31
lifelesse.g. language neutrality - if you want to redo a client into go, you don't need to touch the server.08:32
lifelesstest or otherwise08:32
lifelessyou can argue that this is silly, you can always do that work later... and if it was the only advantage, I'd say sure08:33
lifelessbut you also get enforced layer safety; you don't need to worry about conflicting library versions and so forth.08:34
jmlright. discipline in that regard rarely works08:37
jmlat least, not for me :)08:37
lifelessindeed, you can't be a little bit (binary state)08:38
jmlprobably not today or tomorrow, but maybe next week, I'd like to set this up for libdep-service.08:38
lifelesscan I do anything to help ?08:39
jmlhmm.08:40
jmlYou mean, other than you already have?08:41
lifeless:)08:41
lifelessboom-tish08:41
jmlAnswering questions is the only thing I can think of.08:41
lifelessok, well I stand ready.08:41
lifelessis libdep-service django ?08:41
stubwgrant: http://paste.ubuntu.com/1188697/ has some changes to dbpolicy.py and test_error.py. Had some fallout, and think I've ended up tracking a problem that was bugging gary and benji for ages10:37
stubstill haven't done a full test run though10:38
wgrantstub: What'd you have to change?10:38
wgrantAnd what sort of fallout? It looked relatively sensible.10:38
stubgetUtility(IZStorm).get('foo') could emit an OperationalError rather than a DisconnectionError if the db was down and the Store needed to be constructed10:39
stubOpened a bug on that one10:39
wgrantHuh10:39
wgrantThat's surprising.10:39
stubAlso, the test_error was triggering our 'store left in a disconnected state' checks.10:40
wgrantThey are the stuff of nightmares10:40
stubYeah, and I think I've fixed it now10:40
stubThe stores look like they were being created in that state, and I'm now ensuring they always get registered with the transaction manager so transaction abort puts them into a state we expect them to be in.10:41
=== al-maisan is now known as almaisan-away
=== gary_poster|away is now known as gary_poster
bacmgz: hi, were you going to review that MP i posted yesterday?  if not, i'll get someone else.12:16
adeuringjelmer: could you please have a look at this mp: https://code.launchpad.net/~adeuring/launchpad/specification-grants/+merge/123062 ?12:21
jelmeradeuring: looking12:21
adeuringjelmer: thanks!12:21
mgzbac: I shall post something to it, did look over the code12:48
bacmgz, thanks.  gary is also doing it but i'd like your comments since you've already looked12:49
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: jcsackett | Firefighting: - | Critical bugs: ∞
bacmgz: gary has posted his comments on my MP.  i'd like to land this shortly so if you have helpful comments could you add them soonish?  thanks.14:05
mgzbac: posted a few comments14:14
bacthanks mgz!14:14
mgzI see gary asked about the participants thing as well.14:17
mgzso it's not just me not knowing launchpad :)14:17
bacmgz: yep.  well commented now.14:38
adeuringjcsackett: thanks for your review!14:44
jcsackettadeuring: you're welcome!14:50
rick_h_deryck: ping, got a sec?15:36
deryckrick_h_, on call with abentley right now15:36
rick_h_deryck: rgr15:36
deryckrick_h_, free now.  What's up?15:45
rick_h_deryck: looking at the sql count test failure stuff and I think part of it is the storm clearing or something. http://paste.mitechie.com/show/774/ is the test failure, which shows the product insert, but the test as a "Store.of(product).invalidate()" which I would expect to reset the queries?15:46
* deryck looks....15:46
abentleyderyck: Should we be posting design decisions like "blueprints support only PUBLIC and the proprietary types" somewhere?15:47
deryckabentley, hmmm, good question.15:47
deryckabentley, yeah, let's follow up to the dev list with that.15:47
deryckabentley, actually, wait, no I don't think we need to for that.15:48
deryckabentley, we're really just matching what we had before, plus privacy, or what people think of when they say privacy.15:48
deryckrick_h_, so the selects are the new queries?  And you think these are left over from a different test?15:49
rick_h_deryck: so I'm investigating part of it. I think it might be my code's fault and I'm investigating, but the INSERT being listed made me wonder if the invalidate() wasn't working/what I was thinking15:50
deryckrick_h_, invalidate just tells storm to through away its own cache of the objects, to force it to get new objects.15:51
=== matsubara is now known as matsubara-lunch
rick_h_deryck: ok, so this is in fact saying the insert/update are part of the recorded queries then15:52
deryckrick_h_, right.  I'd run this in devel and see what you get and compare the two.15:56
rick_h_deryck: ok, digging. Thanks for the quick sanity check.15:56
derycknp15:56
=== deryck is now known as deryck[lunch]
=== matsubara-lunch is now known as matsubara
abentleyderyck[lunch]: I noticed that the set of allowed information_types for blueprints will exactly match that for projects.17:04
=== deryck[lunch] is now known as deryck
deryckabentley, nice17:08
rick_h_deryck: ping again, halp!18:10
deryckrick_h_, give me just a few minutes and I can help.18:10
rick_h_deryck: ok thanks18:10
derycknp18:10
deryckrick_h_, ok, what's up?18:22
rick_h_deryck: hangout?18:26
deryckrick_h_, sure.18:27
rick_h_sinzui: halp please! have a few min for a hangout?18:51
sinzuiI do18:51
rick_h_sinzui: invite coming18:51
derycksinzui, and if you can spare 5 minutes after rick_h_, I'd like a quick chat about something, too.18:52
abentleyjcsackett: could you please review https://code.launchpad.net/~abentley/launchpad/limit-blueprint-info-types/+merge/123150 ?19:14
jcsackettabentley: certainly.19:15
jcsackettabentley: r=me.19:17
abentleyjcsackett: thanks.19:17
derycksinzui, are you still chatting with rick_h_?20:09
sinzuino20:09
sinzuidid rick_h_fall off the face of the earth?20:09
rick_h_he wants you sinzui, not me.20:10
* rick_h_ runs away NOT IT!20:10
deryckI'm losing cable modem now anyway.  ignore me.20:10
deryckcable guy is wiring up voip phone and needs to disable lines to test.20:10
rick_h_deryck: yea, you've been very jittery today20:10
deryckI'll return when he's done. :)20:11
derycksinzui, let's try to chat, he has cut me yet.  should be brief.20:17
deryckhasn't cut me20:17
sinzuiokay20:17
* sinzui thinks he is talking to himself20:23
sinzuirick_h_I am here?20:24
sinzuiAm I alive?20:24
rick_h_sinzui: yes20:24
sinzuithank you for the validation of my existence20:24
sinzuinext up, find a purpose20:24
rick_h_sinzui: I find it best to tie them together. I exist to serve a purpose, my purpose is to exist. Next question.20:25
=== gary_poster is now known as gary_poster|away
lifelesshmmm21:51
lifelessnew oauthkeys now notify with a from of bounces@c.c21:51
lifeless:/21:51
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: ∞
sinzuiwallyworld_, https://bugs.launchpad.net/launchpad/+bugs?field.tag=escalated22:52
lifelessjcsackett: btw, you didn't land https://code.launchpad.net/~coreygoldberg/lp-dev-utils/ppr-access-parser/+merge/119409 for some reason ?22:55
jcsackettlifeless: Looks like I just forgot. If you can land, feel free--storm just took out Internet, and cell phone can't land. :-)22:57
lifelessjcsackett: cool, I will do so22:58
jcsackettlifeless: Cool, thanks, and sorry for the forgetfulness.22:59
lifelessno matter22:59
jcsackettsinzui: A storm has taken out Internet, and it appears my phone can't handle mumble on 3G alone.23:00
sinzuiokay23:00

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