=== abentley1 is now known as abentley === Ursinha is now known as Ursinha-sprint [08:42] Good morning! === intellec` changed the topic of #launchpad-reviews to: on call: intellectronica || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com === intellec` changed the topic of #launchpad-reviews to: on call: intellectronica || reviewing: jtv || queue: [gmb] || This channel is logged: http://irclogs.ubuntu.com === intellec` changed the topic of #launchpad-reviews to: on call: intellectronica || reviewing: gmb || queue: [] || This channel is logged: http://irclogs.ubuntu.com [10:02] gmb: i wonder if a name like forceUpdateAll or something like that would be more appropriate for the method you've added. it's a bit confusing to read that there are no watches to update, and yet when you call updateAllWatches some update === Ursinha is now known as Ursinha-sprint === intellec` is now known as intellectronica [10:08] intellectronica: Hmm. Yes, I see your point. forceUpdateAll() also lends the method an air of danger, which it posesses in spades :) [10:08] intellectronica: I'll change the method name. [10:09] cool [10:27] gmb: r=me with that change. nice branch! [10:38] intellectronica: Thanks :) [11:26] gmb: i have a few questions about that review [11:28] gmb: what happens if you 1) run checkwatches.py --all 2) Ctrl-C:s since it's taking too long 3) restart checkwatches.py without the --all option? [11:31] BjornT: If you run checkwatches.py --all without specifying a bugtracker it'll be ignored, for a start. If you kill it in the middle of a run then the watches will be left with lastchecked=None, because checkwatches deliberately just re-raises KeyboardInterrupt and SystemExit exceptions. [11:32] gmb: right, that's what i thought (regarding bug watches being left with lastchecked=None) [11:32] BjornT: So I guess what we could do is have Ctrl-C mark the watches as lastchecked=datetime.now(), which would stop them from being updated next time. That seems a bit kludgy though. Alternatively we could keep a mapping of watch id => lastchecked time and just restore the old data. [11:32] Or, hey, we could roll back :) [11:33] * gmb has just checked where the transaction boundaries lie. [11:33] Hmm. [11:33] gmb: it's nothing i would expect from using --all (and no, you can't roll back, since you commit the transaction after resetting) [11:33] BjornT: No, you right, we can't. Thought it was in the try: except block. [11:34] BjornT: So, the simple solution is setting lastchecked=datetime.now() for all watches. [11:34] gmb: i think the behaviour is fine, just unexpected. i think renaming --all to --reset would make things clearer. then it's more explicit [11:34] BjornT: Okay, I agree with you. [11:34] I'll make that change now. Thanks. [11:34] gmb: thanks. also, don't we run checkwatches.py in some test already? [11:35] BjornT: Yes, we do, but I wanted to demonstrate that this could be done from the command line. [11:36] gmb: you shouldn't do that by starting a sub process. the LaunchpadScript class allows you to pass in arguments to it for testing [11:36] BjornT: Oh, okay. Didn't know that. I'll update the test to use that, then. [11:37] gmb: that way you can make the test more useful, instead of checking that passing --all has the same effect as not passing --all ;) [11:37] :) [11:37] Righto. [11:39] BjornT: Hang on, though, how do I import from cronscripts/checkwatches? I thought cronscripts wasn't in the PYTHONPATH. [11:40] gmb: you don't. you move the CheckWatches class to somewhere you can import it. [11:40] BjornT: Ah, right. Figured you might say that :) === Ursinha-sprint is now known as Ursinha-afk === mrevell is now known as mrevell-lunch === mrevell-lunch is now known as mrevell === Ursinha-afk is now known as Ursinha-sprint [13:34] ow [13:34] oops === abentley changed the topic of #launchpad-reviews to: on call: intellectronica, abentley || reviewing: gmb, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com === stub1 is now known as stub === jtatum` is now known as jtatum [15:31] intellectronica: Could you please review https://code.launchpad.net/~abentley/launchpad/suppress-resubmit/+merge/12872 ? [15:32] abentley: sure [15:32] intellectronica: Thanks. [15:33] abentley: so what's the story with those lint warnings? [15:35] intellectronica: Dunno. Bogus lint warnings like that have been showing up for months. [15:35] abentley: in wonder if it would be better to move the check into findRelatedBMP [15:35] fair enough [15:36] intellectronica: Well, it would be findRelatedAndNotSupersededBMP then. [15:36] no, i meant to also parameterize it [15:36] but now i see that it's not in the interface. if it's just an internal function then i guess it doesn't really matter much [15:37] intellectronica: I'd be happy to change it to something like findRelatedBMP(include_superseded=False) [15:38] abentley: yes, that's what i meant. your call [15:56] intellectronica: I've pushed a version that does that. Here's the diff: http://pastebin.ubuntu.com/286266/ [15:58] abentley: great. r=me [15:58] intellectronica: Thanks. === deryck is now known as deryck[lunch] [16:40] abentley: Can you review a very small trivial wording change for me? https://code.edge.launchpad.net/~allenap/launchpad/just-comment-on-question-bug-114710-wording-change/+merge/12879 [16:41] allenap: sure [16:42] allenap: r=me. [16:42] abentley: Thanks. === sinzui1 changed the topic of #launchpad-reviews to: on call: intellectronica, abentley || reviewing: gmb, - || queue: [sinzui] || This channel is logged: http://irclogs.ubuntu.com [16:48] sinzui1: what do you need reviewed [16:48] ? [16:48] intellectronica: I do [16:48] https://code.edge.launchpad.net/~sinzui/launchpad/delete-structural-target/+merge/12877 [16:48] oright, i'm reviewing it === intellectronica changed the topic of #launchpad-reviews to: on call: intellectronica, abentley || reviewing: sinzui, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com [16:53] sinzui1: are the changes to launchpad-login.pt and style-3-0.css really part of what you want me to review? === matsubara is now known as matsubara-lunch [16:55] sinzui1: also, isn't destorySelf an sqlobjectism? [16:58] sinzui1: also, does it really make sense to disallow the deletion of a milestone with subscribers? anyone can subscribe to the milestone, so this can make it very inconvenient for the project team. i'd expect to be able to delete it with the subscriptions deleted too [17:01] sinzui1: ah, i think i understand what's going on. you're doing that, but in the view. the problem is that the behaviour is then different if you interact with the model directly (through the API, for example) === Ursinha is now known as Ursinha-afk [17:02] sinzui1: also nm my first question. i now see why you did want me to review those changes [17:03] sinzui1: so the code looks fine, but i really think the work should be done in the model and not in the view. what do you think? [17:04] intellectronica: yes, the login style fix is required because .subordinate must work as beuno wants [17:04] yeah got it once i read the rest of the diff [17:05] intellectronica: destorySelf may be a sqlobject-ism, but that is also the method we use for all destroys. I do not know of another [17:05] sinzui1: the storm way of doing this is store.remove(obj) [17:05] or something like that [17:05] intellectronica: I can try that [17:07] sinzui1: Store.of(obj).remove(obj) [17:07] a bit clumsier, but it will be nice to slowly get rid of the sqlobject stuff in the codebase [17:07] intellectronica: I am skeptical of moving the product series work into the model. 1) it is not true delete, 2, it couple the model to a dozen objects, some of which are outside the registry [17:08] sinzui1: right, i understand the dilemma [17:09] how would we solve that if and when we want to expose that functionality via the API? [17:09] We do not intend to expose this over the API [17:09] When we can delete translations, we ill consider it === sinzui1 is now known as sinzui [17:09] that's a good answer, i guess :) [17:10] intellectronica: danilo thinks it is possible but this kind of issue is not out focus anymore [17:10] :( [17:10] though i can totally see how milestone and series mgmt is something project teams might want to automate [17:10] yeah, i realise that :-/ [17:11] oh well, hopefully one day we'll have an opportunity to improve on that [17:11] sinzui: for now, r=me [17:11] thanks. I will work on the storm change now [17:11] cool === intellectronica changed the topic of #launchpad-reviews to: on call: intellectronica, abentley || reviewing: -, - || queue: [] || This channel is logged: http://irclogs.ubuntu.com [17:38] intellectronica: thanks for the storm suggestion. I was able to factor out removeSecurityProxy. [17:39] excellent! === deryck[lunch] is now known as deryck === intellectronica changed the topic of #launchpad-reviews to: on call: abentley || reviewing: - || queue: [] || This channel is logged: http://irclogs.ubuntu.com === beuno is now known as beuno-lunch === matsubara-lunch is now known as matsubara === beuno-lunch is now known as beuno === jamalta is now known as jamalta-afk === Ursinha-afk is now known as Ursinha === Ursinha is now known as Ursinha-afk === matsubara_ is now known as matsubara-afk