=== danilos` is now known as danilos [05:01] wgrant: cjwatson: if we can add tags to make it clear which part of the UI a given task refers to in the Launchpad:UI asana project, suspect that will be helpful (e.g. User Profile) [09:35] blr: ack [10:31] cjwatson: context/getCodebrowseUrl is rendering with '?h=master', is there any way to just get the root? [10:36] blr: context/repository/getCodebrowseUrl [10:37] blr: I expect context in this case is a ref ... [10:38] so getCodebrowseUrl on a repository gives you the root, on a ref takes you straight to that ref, otherwise it ends up a bit strange [10:42] cjwatson: awesome, that works nicely thanks [10:44] cool [11:12] cjwatson: What do you think of the {Product,Distribution}.vcs design? [11:13] so I'd been sort of hoping that it could be avoided or made implicit somehow [11:14] we shouldn't be able to end up in states where the flag says git and there are only bzr branches, or vice versa [11:14] and I also think it should be possible to run both bzr dev focus and git default repo in parallel, for migration, which means that we need to be able to show both [11:14] at that point it is not clear to me what the vcs enum actually governs [11:14] What value does showing both provide? [11:14] eg. look at https://code.launchpad.net/launchpad [11:15] It's confusing and I can't see a case where it would ever be desirable. [11:15] The column probably just selects whether the code page shows bzr or git stuff by default. [11:16] I think if we aren't going to show both, we need some way to get at the default git repository for a project in the web UI that isn't /target [11:16] or, perhaps better, it should be impossible to set a default git repository for a target that doesn't have its vcs set to git [11:16] or something like that [11:17] we need to think through the migration path for a project [11:17] Or someone has to click the git link if they run into a git default URL on a bzr-defaulting project. [11:17] the git link that doesn't exist yet, but yes [11:17] Well yeah, once the page is split there will presumably be a link between the two halves :) [11:18] this ties into my hope to be able to make the canonical url for a default repo be (target, rootsite="code") [11:18] this only works if it's reliably shown there. although I suppose we could do that only if vcs==git, but that starts being messy ... [11:18] Is it as messy as showing both? [11:19] perhaps not [11:19] The URLs already vary based on whether the repo is the default or not. [11:19] Varying slightly further based on whether the *VCS* is the default doesn't seem out of the question. [11:19] this is true [11:19] so what's the URL for the default git repository on a bzr-defaulting project? [11:19] I suppose we could just send you to the unique name [11:20] Right, I think the web URL is just the full URL in that case. [11:20] But switching the +branches to the git view using the link at the top will also show it. [11:20] can you explain that last bit? [11:20] link at the top of where? [11:21] There's some widget on the project code index which switches between the git and bzr views, defaulting to target.vcs. [11:21] If target.vcs is bzr and you click on the git link, you'll presumably get the view you would get if the default was git. [11:22] I'd been working on Person:+repositories; perhaps that makes sense as a view name elsewhere as well [11:22] (or it could just be +git, but I wasn't sure if that would cause ambiguity problems) [11:23] +repositories is a) realllly long and b) poor apt :( [11:23] I'm not sure if +git can currently be implemented. [11:23] I *think* it works, and there is one example somewhere, but I can't think what. [11:23] +bug vs +bugs is just stupidity, not a technical limitation. [11:24] The only case where there's potential ambiguity is on Person itself, and the traversal there is sufficiently manual that we could probably manage to say zero remaining path elements => PersonGitView [11:24] Yeah. [11:24] The reason I'd been going a little more general is that I was thinking of it as a good way to simplify things for bzr too [11:24] Howso? [11:25] You could reasonably look as PersonProduct etc. as metaphorically a repository [11:25] aaaaa [11:25] In the bzr sense too [11:25] And then code pages could suck a bit less [11:25] But I don't know if it's worthwhile [11:25] I'm not quite sure. [11:26] Because you could see people who'd worked on a project recently, and then drill down from there to look at individual branches, rather than just getting a sea of branches [11:26] So, convince me about your plan for eg. the project code index. [11:26] Hm, true. [11:26] But that's less interesting in the git future. [11:27] I think that should be approximately the git view, though. [11:27] Yep. [11:27] So, I think I'm fine with the project code index being switchable; the dual view was admittedly (in the MP description) a stopgap [11:28] Oh yeah, and it's a fine stopgap, because it still isn't quite clear how to do it properly. [11:28] It needs to be switchable on "Configure code hosting" or whatever replaces it (since +setbranch is series-specific) [11:29] Do you have an idea on how to obviate Product.vcs, though? [11:29] Ah yeah [11:29] We discussed this on the call last week, sorry. [11:29] Kit's working on a Product-wide +setbranch equivalent. [11:29] Right [11:29] So it's not so much that I have a clear plan as that I'm trying to understand how we avoid inconsistencies in yours :) [11:30] If the view switches then at least people have a clear incentive to set it to the right thing [11:30] The default git repo URL is the only serious issue I see. [11:30] And that's only an issue during migration. [11:30] If you're happy with a conditional canonical URL that depends on the vcs enum, I think that satisfies my concerns. [11:31] I just don't want to be stuck with the canonical URL being ugly forever. [11:31] So, the canonical URL itself can't be that. [11:31] We'll have to do something a bit magical. [11:31] because eg. the API [11:31] But maybe the web canonical_url can be different. [11:34] So, what's the preferred migration path for a project? We have docs somewhere (say, a help popup) giving some advice on migrating to git (maybe an auto-importer in the magical future, but I remain to be convinced about the tractability of that for an entire set of branches without manual gardening). You do that and push to the default repository path. Product:+branches notices and gives you a view for git stuff, and maybe an AJAX ... [11:34] ... switcher to change over. What do the view names become here? [11:34] The easiest way is a query string on the end of +branches. [11:34] Or perhaps Product:+branches and Product:+git, and the default view depends on vcs? [11:34] It's awkward, but currently we have no way to configure default view name very eaisly. [11:35] Hm. [11:35] We could do it, though. [11:35] It would require a small amount of infrastructure work. [11:36] Auto-importer is difficult due to various gardening that can be required. [11:36] eg. for LP I have to replace two whoamis to get something that git fsck is happy with (and thus GitHub will accept, for example). [11:37] I think my latest prototype reimplemented BranchListingView etc., but it would probably be possible to crowbar it all into the same view in order to support both. [11:37] Right, my experiences with converting stuff to git have all employed various bits of manual gardening. [11:38] Mostly using http://www.catb.org/~esr/reposurgeon/ once I discovered that it existed. [11:38] (Because this is the sort of job where having a DSL can really improve your life) [11:39] So I think I'm OK with the vcs plan; now that we've talked through it it makes a bit more sense to me. [11:40] I think you click the code settings link, where you can get instructions on pushing to the other VCS. [11:40] Once a repo exists for the other VCS, the default code listing grows a switcher. [11:40] Yeah, probably shouldn't clutter the default view with that sort of instructions. [11:48] (what this doesn't handle is hiding the switcher once both types exist, but meh) [11:52] You could do that by deleting all the bzr branches. [11:52] Or something. [11:52] Except you probably wanted to keep MP history. [11:53] (I occasionally refer to years-old MP history in Launchpad ...) [11:55] That's why we did git MPs a bit more sensibly, indeed. [11:58] "meh" seems like a reasonable disposal. [11:58] Quite. [11:58] I'm just thinking about where to put the default widget. [11:59] I think ti would make sense to have it behind a link at the bottom of +edit, below the submit button, in what looks like an ignorable footer. [11:59] Similar to the team ownership change view. [12:01] Shouldn't it be on Product:+setbranch? [12:01] Yes, I was just thinking of the most obtuse and Launchpaddy place to put it. [12:02] Product:+setbranch or equivalent is indeed where it should go in the real world. === mwhudson_ is now known as mwhudson [22:13] wgrant: what's the default size limit for P3As nowadays? [22:14] bigjools: 2 GiB for both public and private [22:15] cjwatson: can that be upped for P3As? [22:15] and hi :) [22:18] bigjools: wgrant generally processes tickets to raise limits on request pretty quickly [22:18] cjwatson: the guys I work with say that it's annoying to have to do that and want to up the default [22:19] I'm sure it's possible, I think we should look at some stats for archive usage plotted against whether they're public or private, though [22:21] there might be a few possible fixes to that annoyance [22:22] that would be nice :)