/srv/irclogs.ubuntu.com/2012/10/22/#launchpad-dev.txt

* wgrant finishes another gardening round00:57
jelmer\o/00:57
wgrantOne deployment and 7 further critical fixes until we get back to the first half of last year00:57
jelmerin terms of critical bugs you mean?00:58
wgrantYeah00:58
wallyworld_wgrant:  have you used storm's ClassAlias? I have an issue where it is spitting out the name of the original table, rather than the alias, when outputting a column. my usage seems to be in line with how it's used elsewhere06:06
wgrantwallyworld_: There's a bug with ClassAliases and References06:07
wgrantwallyworld_: use the _id column instead06:07
wallyworld_oh, awesome06:07
wallyworld_thanks06:07
StevenKStorm has bugs? I'm shocked06:07
wgranteg. ClassAlias(Person).teamowner will compile to Person.teamowner, ClassAlias(Person).teamownerID will be like "_1".teamowner as you'd expect06:07
nigelblol06:08
wgrantBug #682989'06:08
wgrantBug #68298906:08
nigelbStevenK: How was your vacation? :)06:08
StevenKnigelb: Still on it06:08
nigelbHah.06:08
StevenKStill in Adelaide, even06:08
* nigelb really needs to plan an Australian vacation06:09
wallyworld_wgrant: right, that's the exact issue, thanks. i should have asked earlier. i thought it was me. oh well06:09
wgrantwallyworld_: It's not you, it's me.06:09
wgrants/me/Storm/06:09
wallyworld_yeah06:09
StevenKFlight was 1pm, but has been delayed due to an engineering issue after they had us wait on the tarmac for an hour06:10
StevenKHopefully we'll board at ~5pm ADL time06:10
wgrantIs that +9.5 or +10.5 atm?06:11
wallyworld_wgrant: do you know a way to get store.find() to allow a "select 1 from where..." without a table. it's legal postgres sql but storm complains06:11
StevenK+10.5, it's currently 4:40pm06:11
wallyworld_bah, without the from of course06:12
wgrantwallyworld_: What are you trying to do?06:12
wallyworld_select 1 where exists(some condition)06:12
wgrantSpecifics :)06:12
wallyworld_only returns one or zero rows06:12
wgrantThere's probably a better way06:13
wallyworld_that's what the tableless select is for06:13
wallyworld_in oracle it would be "select from dual..."06:13
wgrantIf it's literally a SELECT 1 WHERE EXISTS (some subexpression);, just remove the outer expression06:13
wallyworld_i just want a true/false if some condition exists in the database06:13
wgrantSELECT 1 FROM blah WHERE blah LIMIT 1;06:14
wgrantAn exists check without the EXISTS06:14
wallyworld_i could add limit 1 i guess, but i would be adding a surperfulous table06:14
wgrantNo06:14
wgrantI mean with the inner expression06:14
wgrantYou don't need the outer one06:14
wgrantWhat's the statement that you're trying to Stormify?06:15
wallyworld_this works now: https://pastebin.canonical.com/77001/06:15
wallyworld_but i don't need the table in the outer select06:16
wgrantI'm confused06:16
wallyworld_i could put any table in the using() and it would work06:16
wgrantIsn't that just "return not Store.of(self).find(SourcePackageRelease, SourcePackagePublishingHistory.sourcepackagereleaseID == SourcePackageRelease.id, Archive.id == SourcePackagePublishingHistory.archiveID, *clauses).is_empty()"?06:17
wallyworld_probably, i didn't know about is_empty06:17
wallyworld_is that efficient?06:18
wgrantIt's shorthand for SELECT 1 blah blah blah LIMIT 106:18
StevenKNot when you're linking SPPH and SPR06:18
wallyworld_it will be a whole lot better than that is done now luckily06:18
wgrantEven if it didn't exist, I'd just manually do a SELECT 1 FROM spr JOIN spph blah blah blah LIMIT 106:18
wgrantNo need for a subquery06:19
wallyworld_i wasn't sure how ggod postgres would be at that06:19
wallyworld_i assume it will be smart about seeing the limit 1, and stop computing as soon as it finds a matching row06:19
wgrantRight06:23
wgrantJust as it doesn't compute the entire result of Ubuntu's bugs just to show the first 75 of them06:23
nigelbSo, who's the new product manager for LP?06:26
wgrantNobody yet06:26
nigelbAnd no new lifeless either?06:27
wgrantAlso not yet06:27
nigelb:)06:27
wgrantwallyworld_: btw07:06
wgrantIn [14]: list(store.execute(Select(1, where=Exists(Select(SourcePackageRelease.id, tables=[SourcePackageRelease], where=True)))))07:06
wgrantOut[14]: [(1,)]07:06
wgrantIn [15]: list(store.execute(Select(1, where=Exists(Select(SourcePackageRelease.id, tables=[SourcePackageRelease], where=False)))))07:06
wgrantOut[15]: []07:06
wgrantIt works fine without tables07:06
wgrantNot sure what you were running into07:07
adeuringgood morning07:25
=== gmb_ is now known as gmb
=== gmb_ is now known as gmb
=== almaisan-away is now known as al-maisan
czajkowskimorning08:43
czajkowskianyone know which team worked on the hide a commetn feature on LP bugs ?08:44
czajkowski*comment08:44
bigjoolsbzr annotate is your friend08:45
czajkowskibigjools: morning08:45
bigjoolsg'day :)08:46
czajkowskibigjools: you at the hotel ?08:46
bigjoolssprinting, yup08:46
wgrantczajkowski: That was finished off by Purple near the end of one of the subfeatures09:00
wgrantI'm not really happy with how it turned out, but such is life09:00
czajkowskiwgrant: was just curious as there is a bug/feature issue being reported on it09:00
czajkowskijust wondered if you knew more about it09:00
cjwatsonCould I have a DB patch number for work on bug 1068071, please?10:15
_mup_Bug #1068071: Need facility to redirect Ubuntu uploads to non-release pocket <soyuz-upload> <Launchpad itself:Triaged> < https://launchpad.net/bugs/1068071 >10:15
czajkowskicjwatson: you need jtv or wgrant I think as stub is away this week10:17
cjwatsonczajkowski: Any LP developer can claim a patch number.10:18
cjwatsonThat's why I just asked generally.10:18
cjwatsonYou only have to be in ~launchpad.10:18
czajkowskioh ok.10:18
wgrantcjwatson: Sure10:21
wgrantcjwatson: 2209-36-0 is yours10:28
cjwatsonThanks10:28
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== gmb` is now known as gmb
=== al-maisan is now known as almaisan-away
adeuringabentley: https://code.launchpad.net/~adeuring/launchpad/sec-adapter-projectgroup-milestone/+merge/13080013:39
abentleyadeuring: Did you consider using DelegatedAuthorization?13:45
adeuringabentley: not, i was not aware of this13:45
abentleyadeuring: I think it simplifies things a bit.13:46
adeuringright13:46
adeuringabentley: changed13:53
abentleyadeuring: I think milestone.userCanView is dead code now.13:54
adeuringabentley: gahh, forgot to save that file before commtting...13:55
adeuringdone now13:56
abentleyadeuring: Cool.13:56
abentleyadeuring: You're indirectly asserting what the contents of "IProjectGroupMilestone" should be.  I'm okay landing this way, but let's talk about this in Copenhagen.  I bet we can come up with an equivalent that takes IProjectGroupMilestone as its input.  Like verifyObject.13:59
adeuringabentley: sure13:59
abentleyadeuring: r=me.13:59
adeuringthanks13:59
abentleyadeuring: np.14:00
sinzuijcsackett, do you have time to talk?14:02
jcsackettsinzui: sure, one moment while i find my phone.14:08
sinzuihttps://bugs.launchpad.net/launchpad/+bug/16453014:29
_mup_Bug #164530: Translation import queue showing broken links <lp-translations> <oops> <Launchpad itself:Triaged> < https://launchpad.net/bugs/164530 >14:29
sinzuihttps://bugs.launchpad.net/launchpad/+bug/22738014:36
_mup_Bug #227380: SourceForge ExternalBugTracker doesn't handle non-existent bugs <bugwatch> <lp-bugs> <oops> <Launchpad itself:Triaged> < https://launchpad.net/bugs/227380 >14:36
sinzuijcsackett, https://bugs.launchpad.net/launchpad/+bug/22738014:37
_mup_Bug #227380: SourceForge ExternalBugTracker doesn't handle non-existent bugs <bugwatch> <lp-bugs> <oops> <Launchpad itself:Triaged> < https://launchpad.net/bugs/227380 >14:37
abentleyadeuring: Apparently, DelegatedAuthorization is also performance improvement, because it allows LaunchpadSecurityPolicy to cache Product security checks.14:42
adeuringabentley: right14:43
sinzuijcsackett, https://bugs.launchpad.net/launchpad/+bug/92429214:45
_mup_Bug #924292: TypeError raised during email authentication when the email contains non-ascii characters <email> <oops> <Launchpad itself:Triaged> < https://launchpad.net/bugs/924292 >14:45
=== matsubara is now known as matsubara-lunch
jmlfor IBranchMergeProposal.createComment, 'subject' is mandatory. How do I specify "just use the default subject that would be used if I were commenting through the web UI"?16:08
* jml experiments16:09
cjwatsonjml: the guard for that in the model code is "if not subject:", so subject="" should work for that16:12
jmlcjwatson: thanks. subject=False seems to work too.16:12
deryckabentley, adeuring, rick_h_ -- hi, guys.  I reviewed bugs for the product relationship, and as near as I can tell, there's only one issue.16:13
cjwatsonlib/lp/app/javascript/comment.js uses subject: ''16:13
nigelbcjwatson: Interesting work on archive for raring.16:13
rick_h_deryck: cool16:13
deryckabentley, adeuring, rick_h_ -- and I filed a bug and added a card to the board, but it's not beta critical.16:13
nigelbcjwatson: Is this the LP work you were doing this cycle?16:13
abentleyderyck: Great.16:13
deryckabentley, adeuring, rick_h_ -- it's a bit of a weird situation to reproduce, so we can get it post beta.16:14
adeuringderyck: ok16:14
cjwatsonnigelb: There's only quite a small LP component to this, since the copy system is now fairly flexible.  Just a few bug fixes and tweaks.16:14
nigelbcjwatson: Ah.16:15
cjwatsonnigelb: I was intending to finish off the replace-archive-admin-shell-access work if I could.16:15
cjwatson(Which is basically chroot management and copy archives.)16:16
cjwatsonNothing hugely exciting.16:16
nigelbThat means AA work will not need shell access?16:17
jmlHah, no.16:18
jmlFalse does not work16:18
jmlcjwatson: ta. will try that.16:18
cjwatsonnigelb: It mostly no longer does.16:19
cjwatsonOnly a very small number of rare operations.16:19
nigelbAha16:20
nigelbOh, UDS is european this time. I should try to listen to a few sessions at least.16:20
=== matsubara-lunch is now known as matsubara
=== beuno is now known as beuno-lunch
czajkowskisinzui: did you get the Rt I created to track the translation import issue that was logged via Answers ?17:11
sinzuiNo,  Do I need once since I need to track it on my kanban board and I have that card17:12
sinzuialready assigned17:12
czajkowskisinzui: well was trying out this new policy where I can track an issue that I raise with maintenance17:13
czajkowskithat way instead of poking for an update I can check the RT17:14
czajkowskilike all the other depts do in canonical17:14
sinzuiWe will update it when we do something next17:14
czajkowskithank you17:14
czajkowskinow to go take the 3 year old for a walk who has been sitting patiently with her new kite17:14
czajkowskitoodles17:14
cjwatsonDatabaseSchemaChangesProcess still has some stuff about slony and the todrop namespace, which seems to have been removed in devel r15757.  Should that be removed from the process?17:15
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
=== beuno-lunch is now known as beuno
=== Ursinha-afk is now known as Ursinha
=== Ursinha-afk is now known as Ursinha
sinzuiwallyworld_, this is the list of related issues https://bugs.launchpad.net/launchpad/+bugs?field.tag=related-projects-packages22:54

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