XML-RPC request to tell the supermirror a mirrored branch has been updated

Bug #124570 reported by Robert Collins
10
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Jonathan Lange

Bug Description

It would be great if launchpad could be notified when branches that are
not hosted have been updated. On the bzr side the bzr-dbus plugin
already receives notification of branch changes and could forward to
launchpad without slowing down commit; alternatively a new plugin could
be written or the functionality added to the built-in launchpad-plugin.
OTOH this will be somewhat more complex if its not to slow commit down.

In terms of the needed API I think just 'URL, new_tip_revision_id'
should be enough - launchpad can discard URL's it does not know of, or
duplicates - and it shouldn't even need authentication as it does not
disclose any information.

 affects /products/launchpad-bazaar
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Tim Penhey (thumper) wrote :

This could be tied into the addition of a 'Mirror now' button or link on a mirrored branch to get the branch puller script to update the branch at the next opportunity.

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

Tim: agreed.

Robert: why do propose giving a new_type_revision_id, instead of just requesting an update at the next opportunity?

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 124570] Re: XML-RPC request to tell the supermirror a mirrored branch has been updated

On Mon, 2007-07-09 at 10:25 +0000, David Allouche wrote:
> Tim: agreed.
>
> Robert: why do propose giving a new_type_revision_id, instead of just
> requesting an update at the next opportunity?

We supply that to the bzr-dbus api; its useful to know that what you saw
is what people uploaded. I guess you could just update and ignore the
revision id.

-Rob

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Tim Penhey (thumper) wrote :

Another trivial addition once mirrored time set to the future.

Changed in launchpad-bazaar:
assignee: nobody → jml
Jonathan Lange (jml)
Changed in launchpad-bazaar:
milestone: 1.1.10 → 1.1.11
Revision history for this message
Jonathan Lange (jml) wrote :

This addition is fairly simple, but we might as well wait for the revised API framework before adding it. Re-assigning to Tim for triage.

Changed in launchpad-bazaar:
assignee: jml → thumper
milestone: 1.1.11 → none
Jonathan Lange (jml)
Changed in launchpad-bazaar:
assignee: thumper → jml
status: Confirmed → Triaged
Jonathan Lange (jml)
Changed in launchpad-bazaar:
milestone: none → 1.99
Revision history for this message
Jonathan Lange (jml) wrote :

I just tried to do this but found navigating the new API system a little tricky. Will talk to Francis or Leonard about it tomorrow.

Revision history for this message
Jonathan Lange (jml) wrote :

I've submitted a fix for this to PQM. It just exposes requestMirror(), as in our internal API.

Changed in launchpad-bazaar:
status: Triaged → In Progress
Jonathan Lange (jml)
Changed in launchpad-bazaar:
status: In Progress → Fix Released
Revision history for this message
Robert Collins (lifeless) wrote :

On Wed, 2008-07-30 at 21:23 +0000, Jonathan Lange wrote:
> ** Changed in: launchpad-bazaar
> Status: In Progress => Fix Released

How do I use it ?

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Jonathan Lange (jml) wrote :

It's part of the regular Launchpad APIs. Stay tuned for the release of launchpadlib.

Revision history for this message
Robert Collins (lifeless) wrote :

On Wed, 2008-07-30 at 22:36 +0000, Jonathan Lange wrote:
> It's part of the regular Launchpad APIs. Stay tuned for the release of
> launchpadlib.

Ok, cool. I've linked the spec you created; hopefully the library will
be one that the launchpad plugin in bzrlib can use. (Though it would be
nice to have C etc bindings too :P)

-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

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

Duplicates of this bug

Other bug subscribers

Related blueprints

Remote bug watches

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