need to create PPAs atomically

Bug #1619348 reported by Robert Bruce Park
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
New
Undecided
Unassigned

Bug Description

Currently, I need to create a PPA and set options on it that are not settable in the createPPA method. This means creation is a two-step process:

1. Create a PPA with wrong default options.
2. Hopefully set those options, which might fail if I'm unauthorized to do so (or network errors).

If step 2 fails this leaves me with a created but unusable PPA. It would be really nice if I was able to create PPAs atomically, eg, pass all the options I need to createPPA and then if there's any problem at all, the PPA does not get created.

I can think of two ways of creating a PPA atomically:

A. Expand createPPA so that all possible options are passable as parameters to that method. If any of the options I supply are invalid for any reason, the creation of the PPA is aborted.

B. Allow renaming PPAs. I can then create my PPA with a temp name, set the options, and only once I've confirmed the options are set correctly, rename the PPA to the desired name.

Thanks.

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.