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

=== heroux_ is now known as heroux
blrwgrant: do you see anything obviously wrong with the validation or call to getByPath on l.829? https://code.launchpad.net/~blr/launchpad/ui-project-setbranch/+merge/25906902:03
blrwgrant: user 'kit' owns 'gitrepository-100046' yet getUtility(IGitRepositorySet).getByPath(kit, 'gitrepository-100046') is None (have tried with git_identity and other forms as well)02:04
wgrantblr: getByPath takes a user for privilege checking, and a full repository path.02:05
wgranteg. the user should enter ~kit/project02:05
wgrantOr ~kit/project/+git/some-non-default-repo02:05
blrwgrant: is the interface comment misleading?02:07
blrs/comment/docstring/02:07
wgrantblr: Looks fine to me. It specifies the valid forms.02:08
wgrantWhat's confusing about it?02:08
blr'~kit/product-name-100049/+git/gitrepository-100046' returns a repo, however '~kit/+git/gitrepository-100046' does not02:09
wgrantblr: The latter is a personal repo; one not related to a project.02:09
blraah02:09
blrof course, sorry.02:09
blrwgrant: pity zope IField doesn't support arbitrary attributes, or more specifically 'placeholder'02:16
blrdefault isn't quite the same02:16
wgrantblr: Right, that's more of an attribute of the widget, I think.02:17
wgranteg. a widget could use the title as a placeholder.02:17
blrit would be nice to have the expected form for the git repo path as a placeholder, but perhaps I'll just add it the label02:18
blrI suppose I could set it in the js, but that might be a little odd.02:18
blrwill be less of an issue once we have a search modal for git.02:19
wgrantYep, search will make it much better. It's also a relatively uncommon case.02:20
blrwgrant: from [code]/project configure hosting is still for the series, do we want that to also point to project setbranch? That would leave project/[series] as the only means of configuring a series branch02:33
wgrantblr: I think that's very reasonable.02:33
blryep, possibly even confusing in its current state.02:34
=== danilos` is now known as danilos
=== jamesh__ is now known as jamesh
cjwatsonwgrant: Nice, I didn't know about variable_name_prefix in batchnavs.11:17
wgrantcjwatson: I only knew about it from +members11:18
wgrantThat's quite possibly the only other callsite.11:18
cjwatsonwgrant: There's one other, BugTrackerSet:+index11:19
wgrantAh, so there is.11:20
cjwatsonhttps://bugs.launchpad.net/launchpad/+bug/1455907 suggests that the +members use doesn't work ideally, but that isn't really a batchnav problem as such.11:20
mupBug #1455907: Every "Former members" batch page starts with a list of "Active members" <Launchpad itself:New> <https://launchpad.net/bugs/1455907>11:20
wgrantYeah11:20
cjwatsonExcept in that maybe batchnav Next should do AJAX rather than reloading the whole page11:21
wgrantIt can be fixed by anchors, only showing one half on subsequent batches, or using the AJAX batchnav stuff.11:21
cjwatsonI see the FF for the last is disabled on prod11:23
cjwatsonIndeed, everywhere11:23
wgrantI think AJAX batchnav is only enabled for +bugs11:24
cjwatsonBranches too11:24
wgrantI'd forgotten it was even implemented for +branches until I saw the code.11:24
cjwatsonBut it's behind a disabled feature flag in both cases11:24
wgrantNo, +bugs has been AJAXed since 2013.11:24
cjwatsonHuh, that's interesting because I see ajax.batch_navigator.enabled mentioned in lib/lp/bugs/templates/bugs-listing-table.pt and that flag is definitely off.11:25
wgrantIs that the right template?11:26
cjwatsonPerhaps not.11:26
wgrantHm, I think it is.11:26
wgrantBut there's a whole lot of custom JS for that page.11:26
daniloslaunchpad consistently times out when I attempt to comment on my MP (ajax just mentiones a server problem after ~30s, but if I go to +comment and try to submit, I get http://people.canonical.com/~danilo/tmp/lp-problem.png): any known issues?11:40
danilosMP in question is https://code.launchpad.net/~danilo/landscape-charm/actions/+merge/26091611:41
wgrantdanilos: Yep, looks like a weird postgres issue, we're investigating.11:42
daniloswgrant, ok, thanks (I've even tried sending an email, still hasn't shown up)11:42
cjwatsondanilos: The mail processor will be writing to the same table, indeed.11:54
daniloscjwatson, yeah, I was hoping the problem was somewhere between haproxy and lp appservers :)11:54
cjwatsonNo such luck.11:54
danilosyeah, got it11:54
wgrantdanilos: Should all be OK again now.11:58
daniloswgrant, repeated comments have gotten through, fwiw (not a big deal, just letting you guys know)11:59
wgrantcjwatson: Oh, I didn't realise IGitCollection handled PersonProduct etc.12:00
cjwatsonYup, I overachieved slightly on the adapters since it was easy.12:01
cjwatsonTop tip to self: it's more likely that somebody will review my merge proposals if I actually remember to propose them.12:55
=== maxb_ is now known as maxb
blrwgrant: cjwatson: any suggestions for a user response for GitTargetError that is likely to make sense to them?21:01
blr"repo attached to another target" may not be meaningful21:01
blrhmm, well I'll go with that for now given it isn't the typical case.21:21
cjwatsonblr: I think that your form field should be using a vocabulary that only offers repositories attached to the correct target.21:24
blrcjwatson: I think we decided to defer the repository search modal21:24
blrcjwatson: so the case here is just providing the user with a git_repository_location TextLine21:25
blrI believe the only error paths are repo not found, and target error21:26
blrcjwatson: just updating the configure code link on [code]/project, but perhaps you could have a look in review if there's a better way.21:28
blrI'll ping you21:29
wgrantblr: It could still have a non-searchable vocab.22:20
blrwgrant: ok, so presumably we want something like ValidTargetDefault?23:29
wgrantblr: Any Git repository for the target is valid.23:30
wgrantblr: What does the branch equivalent do? It has pretty much the same rules, but we don't need searching yet.23:30
blrhmm branch_location doesn't have a vocabulary afaict23:32
wgrantblr: How's it validated?23:34
wgrantIt's possible that it isn't; there are some cross-project relations that shouldn't exist, but they might be from branches that have been moved later.23:34
blrwgrant: yep only validated for presence23:36
wgrantblr: OK, then it might not be worth using a vocab just yet. Manually validate the target and use an error message like "Repository is in a different project." or similar?23:37
blrokay, that's what I have atm23:37
wgrantReally weird that the branch case wouldn't use a vocab already!23:38
blrbranch_type does23:39

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