/srv/irclogs.ubuntu.com/2014/11/14/#launchpad.txt

=== Logan_ is now known as Guest83048
=== Guest83048 is now known as Logan_
=== dupondje_ is now known as dupondje
=== Spads_ is now known as Spads
aquariusIs there any way to find all LP branches which contain a particular file or similar? Later on today at UOS we're discussing the idea of an "Ubuntu touch component store"; something like pypi or npm for Ubuntu QML components, and we're trying to decide how to do the distribution of components. Using LP would be great.10:08
aquariusSo what I thought was: anyone who wants to distribute a component creates an LP branch and puts an ubuntu_component_store.json file in it10:09
aquariusand then we can get a list of all components from launchpadlib10:09
aquariusbut is there a better way? Can branches be tagged and we can then retrieve all branches with a tag, or something?10:09
aquariusI don't think I know enough here to know which questions to ask. But I'd like it to be fast, partially because that's a nicer user experience and partially to reduce load on launchpad!10:10
aquariusthe idea here is that any person can put a branch of their code on LP, and then somehow get it into an automatically-generated list of "all components" without a person having to approve that change10:17
aquariusthe best way I can think of to do that so far is for me to create an empty branch as a destination for merge proposals and then they propose a merge from their branch into that one (even though we have no intention of doing it); the list of components is therefore the list of merge proposals to my empty branch. But that's stupid.10:18
wgrantaquarius: That's not possible. What's wrong with having people register their branch somewhere, like all other sites?10:23
wgrantAutomatically registering things is usually a pretty bad idea.10:23
aquariuswgrant, that's what I suggested, but the worry is that means building yet another service somewhere, finding somewhere to host it, etc, and others are not keen on it.10:24
wgrantWouldn't you need a service anyway to distribute the list of branches?10:24
aquariusso I figured, for iteration 1, since all the code will be in LP *anyway*, it's worth exploring whether we can sensibly tag that code in LP.10:24
wgrantThere is no way to do that.10:25
wgrantAnd merge proposals will not work.10:25
aquariusyeah, that's why I said merge proposals were stupid. :)10:25
wgranthow were you intending to distribute the list, if not with a custom service?10:27
aquariususe launchpadlib to, say, search for all branches with a "U-C-S" tag. But there is no such search, as you say10:28
wgrantOh, and that doesn't seem ideal for a client to be doing that directly.10:28
cjwatsonteward: Staging doesn't send mail to the world at large, to avoid amusing disasters, but production should.10:29
wgrantaquarius: I'm also not sure how it would be useful. A client could get a list of branches, but wouldn't know anything about what's in them.10:29
wgrantUnless it queried every one of them, which would take more than a reasonable number of requests.10:30
aquariusit obviously isn't long-term (and long-term the answer is clearly "build a service and host it somewhere"), but it might have been short-term. But you're right about metadata too; I can't get a list of what everything *is* without hitting every branch, which is a colossal no-no.10:30
wgrantRight.10:31
aquariusat *some* point we have to hit the branch and get metadata from it, but that only needs to happen if it changes, not every time someone queries.10:32
wgrantYep, unless you want each query to take minutes.10:33
aquariusmaking all the branches related to one tracker bug is better than merge proposals, although still a hack.10:33
wgrantA pointless hack, since it still doesn't solve the metadata problem.10:34
wgrantYou need a service either way, so it's a choice between "link the branch to this specific bug" and "enter the branch's name"10:35
aquariussomething still needs to follow that link and cache the data, sure10:35
aquariusbut the fact that it is linked is stored in Launchpad rather than elsewhere10:35
aquariusthat means that the DB can be reconstituted from LP if the upstream service goes away10:35
aquariuswhich is not the case if the fact that the things are linked is stored in the elsewhere service10:36
wgrantSure. Then it's a choice between backing up a trivial volume of data or a revolting hack :)10:37
wgrantI'm not seeing any significant benefits in hacking bug linking or merge proposals rather than having a registration form.10:37
wgrantAnd there are serious downsides.10:37
aquariusthis is why I asked about it rather than just doing it.10:38
aquariusI was hoping for, I dunno, branch tags or similar, which don't exist. :)10:38
wgrantSadly not.10:40
aquariuswgrant, cheers for the help :)10:57
aquariushm, separate question, which is really a bzr question: can I fetch one file out of a bzr branch on LP without checking out the whole lot?10:58
aquariusthe launchpad web UI will let me do it, but not, I think, programmatically.11:01
Peng"bzr cat" might work?11:02
wgrantaquarius: Something like 'bzr cat lp:launchpad/lib/lp/registry/model/person.py' will work, but not terribly quickly.11:02
Pengheh11:02
aquariusooh, bzr cat works on lp urls? the help says it needs a filename. Nice.11:03
aquariusnot worried about speed; I only do it once. :)11:03
wgrantWhat if it changes?11:03
aquariusthen they have to ping the service again and tell us that it changed.11:03
wgrantAh, right.11:04
aquariusunless LP has webhooks for when a new change is pushed to a file? Which I'm fairly sure it does not, but I'm happy to be surprised on this front :)11:04
wgrantIt does not.11:09
Fat-Zer_Hi, I'm trying to contribute to lp:~kicad-developers/kicad/doc. I've bzr branch'ed the repository to localhost, edited and commited changes... now when I try to   bzr push lp:~fat-zer/kicad/doc the uploading process startes the pload from scratches.14:13
Fat-Zer_how can I «fork» the repository in github terms, so I can upload only the difference and that create a merge-request?14:15
dobeyyou did fork when you branched it. push it and then create a merge proposal on the web site14:22
Fat-Zer_dobey: when I do bzr push lp:~fat-zer/kicad/doc, It's starts to upload from the scratch: the counter states It uploaded over 20MB for a 2-line patch when I despaired and stopped it...14:27
cjwatson"bzr push --stacked-on=lp:~kicad-developers/kicad/doc lp:~fat-zer/kicad/doc" should help, I think, although you might have to delete what you've already pushed first14:28
cjwatsonActually I think you need to resolve the lp: in the --stacked-on bit yourself, unfortunately14:28
cjwatsonSo "bzr push --stacked-on=bzr+ssh://bazaar.launchpad.net/~kicad-developers/kicad/doc lp:~fat-zer/kicad/doc"14:29
dobeyFat-Zer_: yes, "bzr branch" doesn't create a remote branch, it pulls it locally, in the same way git clone pulls locally. there is no button on the web site to create a copy of a branch that you then pull from, like github has14:35
Fat-Zer_dobey: and how to create a remote branch where I can push to?14:36
Fat-Zer_cjwatson: yep that seems done the trick...14:38
Fat-Zer_cjwatson: thanks14:38
=== nickoe_ is now known as nickoe
mptError15:49
mptObject: <lp.systemhomes.WebServiceApplication object at 0x74ddf10>, name: u'clock-app'15:49
dobeyerror from where?15:50
dobeyclock app is 'ubuntu-clock-app'15:50
mptI got that when I posted a comment on bug 138893115:52
ubot5bug 1388931 in Ubuntu Clock App "No setting for 12h or 24h clock format any more" [Medium,New] https://launchpad.net/bugs/138893115:52
mptNo idea why :-)15:53
dobeympt: ah, probably because i originally filed the bug against clock-app, which is a deactivated project15:55
mptCool, so it15:56
mptit’s a Launchpad ghost15:56
dobeyyeah15:56
dobeympt: i replied to your comment on that bug too. hopefully my suggestion makes sense and we can do that :)16:15
mptAnother symptom of the ghost project: when I click on ubot5’s link I get a 40416:29
=== JanC_ is now known as JanC
dobeympt: ugh18:26
dobeympt: if you click https://launchpad.net/bugs/1388931 now, does it work right?18:27
ubot5Launchpad bug 1388931 in Ubuntu Clock App "No setting for 12h or 24h clock format any more" [Medium,New]18:27
tewardcjwatson: wgrant: i see you both replied to the bug i filed - i'm going to send two known-to-be-invalid emails to edit@bugs to see if it generates the fail responses - one without GPG signature, anotheor with GPG signature but incomplete commands.  if they go through and work, then only two Karmic EOL bugs will be impacted.18:28
dobeympt: i cheated a bit, and deleted the clock-app task, so it /should/ be more reasonable now18:33
tewardcjwatson: wgrant: looks like the bug i filed about the email interface for bugs is invalid - didn't work yesterday, works today18:36
wgrantmpt: You already reported that: bug #127888321:43
ubot5bug 1278883 in Launchpad itself "Bug.default_bugtask should avoid inactive products where possible" [Low,Triaged] https://launchpad.net/bugs/127888321:43

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