/srv/irclogs.ubuntu.com/2015/06/16/#launchpad-dev.txt

blrhuh, `ag` can find zope templates with --plone02:01
blrwgrant: thank you for the review (imagine that took some time!)02:07
wgrantblr: Yup, mostly tiny things.02:07
blrwgrant: do we want the target ref to default to heads/master?02:10
blrcontext +register-merge ref picker02:10
wgrantblr: It should default to the target repo's HEAD ref, which is GitRepository.default_branch as of yesterday.02:11
blrah cool, handy02:12
wgrantI'm not completely sure how it should all work at this stage. I think we eventually want a two-stage picker that selects a repo and then a ref within it.02:13
blryep, would make sense to be within the same control02:13
wgrantWe can't have the target ref input prepopulated with the default_branch, because the user could change the selected repo and invalidate the branch.02:13
wgrantSo I think we for now have to go with a picker that asks for a vocab on the selected repo, but for the normal case accept that an empty ref input means a server-side fallback to default_branch.02:14
blrwould be easy enough to reset it if the content of the target repository input changes02:14
wgrantRight, but reset to what? :)02:14
wgrantIt'd have to be empty.02:14
blrwell, it would have to be empty yes02:14
blrunless we could make an api call02:15
wgrantI think blank == HEAD makes sense in general.02:15
wgrantLike, if you clone a repo, you get HEAD.02:15
wgrantHEAD is a sensible thing for a null branch name to mean.02:15
blrok, perhaps we just need to add a note in that case that HEAD is assumed unless otherwise specified02:15
wgrantI don't think it's worth improving on that until we can have the unified picker.02:15
wgrantYep02:15
mwhudsonwgrant, blr: just curious, have you thought at all about getting go get launchpad.net/foo to work if the foo project uses git?02:32
blrmwhudson: I'm afraid I'm not that familiar with golang, but that certainly sounds like a useful feature given our increasing use of the language...02:35
mwhudsonyeah, there is support in the go tool for urls like that, but it assumes bzr02:36
mwhudsonwould be nice to fix it somehow02:36
mwhudsoni'm not sure about all the intricacies of how go get works02:36
blrwelp, apparently there's a carshare service in melbourne called GoGet. Thanks google.02:39
mwhudsoni think one approach would be to put <meta> tags on the launchpad.net/project page02:40
blrpresumably the go source is on github somewhere02:40
mwhudson(and delete the special casing for launchpad in the go tool)02:40
mwhudsonblr: docs here https://golang.org/cmd/go/#hdr-Remote_import_paths02:41
mwhudsonsource is here https://github.com/golang/go/blob/master/src/cmd/go/discovery.go02:41
mwhudson(and get.go, vcs.go)02:42
blrmwhudson: thanks, will have a look this evening02:42
blrhave been meaning to spend some time with golang at any rate.02:42
mwhudsonblr: would it be useful to file a bug about this?02:42
blrmwhudson: absolutely yes, please tag it 'git'02:42
mwhudsonif you do the lp bits, i'll do the go bits :-)02:42
wgrantYep, that definitely makes sense.02:45
wgrantInasmuch as go get itself does :)02:45
mwhudsonhttps://bugs.launchpad.net/launchpad/+bug/146546702:45
mupBug #1465467: put <meta name="go-import"> tags on project, series pages <git> <Launchpad itself:New> <https://launchpad.net/bugs/1465467>02:45
mwhudsonwell yeah02:45
mwhudsoni guess testing this against launchpad.dev will actually be easier than testing it against launchpad.net, unless you hack your own build tool02:46
mwhudsoner02:46
mwhudson*go tool02:46
blrthanks mwhudson, at a glance it seems easy enough02:49
mwhudsonblr: yeah, seems like it should be fairly easy02:49
mwhudsonblr: go 1.5 will be released in august, would be nice to be able to get the relevant change into that02:50
mwhudsonnot completely sure i want to set up a launchpad dev environment just for this, but i guess i could...02:51
blrmwhudson: could you mock it locally somehow and point me at your golang fork on gh perhaps?02:51
mwhudsonblr: sorry, i don't really understand02:54
blrmwhudson: I'm not certain you're going to be able to avoid setting up LP heh, although it is reasonably painless these days02:54
mwhudsonblr: depends on whether i can con one of you guys into doing it first02:55
blrmwhudson: I can have a poke at it at codecraft this evening03:00
mwhudsonblr: awesome03:00
mwhudsoni've put it on my todo list03:00
mwhudsonbut not at the top :-)03:00
maozhou_Can someone help me? how to init series?06:54
cjwatsonmaozhou_: Um, what are you trying to do exactly?06:55
cjwatsonProject series don't require initialisation, and initialising a distribution series on launchpad.net is something we'd expect to have had prior notice of.06:56
maozhou_i set up launchpad server on local, then i add a series.but when i init it ,it dosen't work07:02
cjwatsonmaozhou_: This is not even slightly easy to get going, but https://wiki.ubuntu.com/NewReleaseCycleProcess may provide some clues.07:04
maozhoucjwatson: i do it by this way.(https://dev.launchpad.net/LEP/DerivativeDistributions),but when i init it ,it dosen't work.07:09
cjwatsonYou'll probably need to run 'cronscripts/process-job-source.py IInitializeDistroSeriesJobSource'07:11
cjwatsonBut on a local instance you're mostly on your own, or at least will have to dig through log files yourself and generally provide more useful problem reports than "it doesn't work" :-)07:11
cjwatsonI suspect derived distributions will be pretty complex to get going on a local instance, as you'd have had to import some other distribution to derive from.07:12
cjwatsonYou could in principle import Ubuntu using scripts/gina.py or something, but there'd be a lot of details for you to work out for yourself.07:13
maozhou_cjwatson: my workmate said that he once init the "DerivativeDistributions"  succeed by run some script, but he can't remember which script he run. may be i need try to run 'cronscripts/process-job-source.py IInitializeDistroSeriesJobSource'07:24
maozhou_cjwatson: thanks for your help, Let me try by your way.07:27
wgrantmaozhou_: Oh, are you working on the kylinos.com.cn Launchpad instance that was spamming people a few months back?07:27
cjwatson... and have you deleted sampledata yet? :-)07:30
maozhou_wgrant: yes, may be. I am sorry about that. but how to stop it spamming people?07:33
wgrantmaozhou_: As far as we could tell, you took a normal Launchpad development instance, including all the development sample data, enabled outbound email, and started using it. The sample data includes some real email addresses, and is generally a terrible basis for a production deployment.07:36
wgrantI don't know what your goal for your Launchpad instance is, but starting with sampledata is almost certainly the wrong way to go.07:36
cjwatsonAlso may well have security holes of various kinds since the sample data includes people with e-mail addresses you don't control in privileged teams.07:38
cjwatsonThe development sample data is meant to make it easier to experiment with changes to Launchpad itself locally, by giving you a bit of test data so that important pages will render something at least a little bit useful.  But it should never be included in production deployments.07:41
cjwatsonI don't know if there's a sensible way to excise it from an already-running instance; it would probably involve non-trivial database surgery, and might well be easier to start again from scratch.07:42
maozhou_ok, i will tell my workmate to check it . may be we need to modification datebase.07:54
maozhouif i alter datebase about mailaddress,is it effectivity?07:59
cjwatsonYou really ought to delete the predefined non-team accounts, and there will be various other junk in e.g. your list of registered projects, your bug/branch/specification tables, etc. that you probably want to get rid of.08:04
wgrantA fresh bootstrapped database would be a much better idea.08:07
maozhou_there are many data already in datebase ,if do a fresh bootstrapped database, all the data will be losed , may be we can't do that.08:14
maozhou_we will check it to stop it spamming people.08:26
maozhou_cjwatson:when i run  'cronscripts/process-job-source.py IInitializeDistroSeriesJobSource' , it's error . the error log is “Running <InitializeDistroSeriesJob for distribution: kylin, distroseries: dota, parent[overlay?/pockets/components]: utopic[False/Release/main], architectures: (), archindep_archtag: None, packagesets: None, rebuild: True> (ID 2) in status Waiting”09:14
maozhou_Job resulted in OOPS: OOPS-ea5bde41e13487cb6437263a6b26b44d09:14
maozhou_ 1 InitializeDistroSeriesJob jobs did not complete.09:14
maozhou_what is “OOPS: OOPS-ea5bde41e13487cb6437263a6b26b44d” ?09:15
cjwatsonYou'll need to find the actual text of that OOPS.09:15
cjwatsonIt should have been dumped out somewhere, but exactly where depends on your configuration.09:15
cjwatsonThe error_reports lazr config section should have an error_dir key, which might be a place to start.09:16
maozhou_ok,i know .thank you.09:17
=== anthonyf is now known as Guest89967
cjwatsonwgrant: Would you mind having another quick look over https://code.launchpad.net/~cjwatson/launchpad/git-repository-ui-edit-target/+merge/261232 ?  I know you already gave an Approve vote, but I made some fairly extensive changes to cope with the changes related to target_default.14:33
=== anthonyf is now known as Guest41199
blrmorning20:55
blrhmm would be nice to have the option to delete a comment within x minutes of creation for people that haven't had enough coffee.21:38
mwhudsoni think there is a bug with a very small number about that :-)21:56
blrmwhudson: made a start on your request last night, have the import meta rendering on Product+index, will try to sort out the bzr meta and ProductSeries tag before eow21:57
mwhudsonblr: i just noticed, cool :-)21:57
mwhudsoni'll get set up to be able to test it21:58
mwhudsonis launchpad still running on precise?21:58
blrmwhudson: yep21:59
mwhudsonokidoke22:00
=== anthonyf is now known as Guest21341
blrmwhudson: have another branch (which allows a project to have an associated 'default' vcs, amoungst other things) which needs to land before this branch. Not far away however23:09
blrwill govern whether a bzr or git meta tag is rendered23:09
mwhudsonblr: ah yes, that seems relevant :-)23:20

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