Merge lp:~rockstar/launchpad/upgrade-ui into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Edwin Grubbs on 2010-01-20 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | not available |
| Proposed branch: | lp:~rockstar/launchpad/upgrade-ui |
| Merge into: | lp:launchpad |
| Prerequisite: | lp:~rockstar/launchpad/upgrade-job-2.0-changes |
| Diff against target: | 0 lines |
| To merge this branch: | bzr merge lp:~rockstar/launchpad/upgrade-ui |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Edwin Grubbs (community) | code | 2010-01-20 | Approve on 2010-01-20 |
|
Review via email:
|
|||
| Paul Hummer (rockstar) wrote : | # |
| Paul Hummer (rockstar) wrote : | # |
Hrm, the diff seems to be confused... Here's the real diff:
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -20,6 +20,7 @@
'BranchEdi
'BranchInP
'BranchSpa
+ 'BranchUpgradeV
'BranchURL',
'BranchView',
'BranchSub
@@ -230,7 +231,7 @@
links = [
- 'edit_status']
+ 'edit_status', 'upgrade_branch']
@enabled_
def edit_status(self):
@@ -297,6 +298,14 @@
url = self.context.
return Link(url, text, icon='info', enabled=enabled)
+ @enabled_
+ def upgrade_
+ enabled = False
+ if self.context.
+ enabled = True
+ return Link(
+ '+upgrade', 'Upgrade this branch', icon='edit', enabled=enabled)
+
class DecoratedBug:
"""Provide some additional attributes to a normal bug."""
@@ -876,6 +885,27 @@
return canonical_
+class BranchUpgradeVi
+ """Used to upgrade a branch."""
+
+ schema = IBranch
+ field_names = []
+
+ @property
+ def page_title(self):
+ return smartquote('Upgrade branch "%s"' % self.context.
+
+ @property
+ def next_url(self):
+ return canonical_
+
+ cancel_url = next_url
+
+ @action('Upgrade', name='upgrade_
+ def upgrade_
+ self.context.
+
+
class BranchEditView(
"""The main branch view for editing the branch attributes."""
=== modified file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -474,6 +474,13 @@
<browser:page
+ name="+upgrade"
+ for="lp.
+ class="
+ facet="branches"
+ permission=
+ template=
+ <browser:page
=== added file 'lib/lp/
--- lib/lp/
+++ lib/lp/
@@ -0,0 +1,49 @@
+==================
+Upgrading Branches
+==================
+
+Launchpad can upgrade branches that were in an older format to a more up to
+date format.
+
+
+Creating the branch
+======
+
+Branches are not available to be upgraded if they are in a more...
| Edwin Grubbs (edwin-grubbs) wrote : | # |
Hi Paul,
This branch looks good. Since you have other rounds of reviews to go with this, I am just going to mention the UI changes that might make sense but not require them as part of this branch.
merge-approved
1. I think moving the "Upgrade this branch" to the action menu in the sidebar would make it easier to find, but I could see how you might want to make it even more prominent than that.
2. On the +upgrade page, it would be nice to alert the user that they may have to upgrade their installation of bzr.
-Edwin

Hello-
This branch adds some rudimentary flows for requesting the upgrade of
branches. Basically, if the branch needs upgrading, a context menu link is
shown, and when clicked, allows you to post through to creating a
BranchUpgradeJob. The branch then has a message saying that the branch upgrade
is in progress until it's completed.
Cheers,
Paul