Automatic discovery of new branches

Bug #126976 reported by Jelmer Vernooij
2
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

  affects /products/launchpad-bazaar

It would be nice if Launchpad could scan a specific URL for Bazaar
branches rather than forcing me to register every single branch I
upload.

Tim Penhey (thumper)
Changed in launchpad-bazaar:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
David Allouche (ddaa) wrote :

To clarify, I think Jelmer would like the ability to register a Branch Collection (tentative name).

The use case is: automatically register all the branches I push to this public location.

A collection would specify a URL, and Launchpad would regularly check this URL for new branches. In the common case of HTTP, this would have to yield an html page pointing to children URLs (typically, an index page), but Launchpad should be able to get directory listing using WebDAV or FTP.

Each children URL would be inspected, and if any of them contains a bzr branch that is not already registered, it would be registered automatically on behalf the owner of the collection.

A collection should also be able to specify a "product" and an "author" to use in new branches.

Open issues:
 * Should the listing be recursive? At first, I'd say no: only register direct children of the collection URL.
 * What to do if the automatic branch name (last step of the branch URL) conflicts with an existing branch by the same owner in the same product?
 * What to do if an URL that was previously a bzr branch, and got automatically registered, is no longer an accessible branch?

The use case is compelling, but I am not sure automatic discovery is the right approach to address it. I mean it: I do not think it is wrong, but I am undecided.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 126976] Re: Automatic discovery of new branches

On Fri, 2007-07-20 at 13:03 +0000, David Allouche wrote:
> To clarify, I think Jelmer would like the ability to register a Branch
> Collection (tentative name).

> The use case is: automatically register all the branches I push to this
> public location.
Yep, exactly - a changing branch collection. It would have to track
changes in the branch collection once first registered.

> Open issues:
> * Should the listing be recursive? At first, I'd say no: only register direct children of the collection URL.
Agreed. Recursively could be more easily prone to DoS attacks and I
think there's no real use case for more than one level of branches
anyway.

Cheers,

Jelmer

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.