The sourcepackage index page had an edit button but no way to remove
a link to the upstream via the project series.
The $distroseries/+packaging page also displayed identical info,
so I moved that into a template that could be shared.
Implementation details
----------------------
Moved identical formatting of upstream connection info from
distroseries-packaging.pt and sourcepackage-portlet-associations.pt
into sourcepackage-upstream-connections.pt. Added the (-) removal link
and moved the edit link next to the projectgroup/project/series info.
lib/lp/registry/browser/configure.zcml
lib/lp/registry/templates/distroseries-packaging.pt
lib/lp/registry/templates/sourcepackage-portlet-associations.pt
lib/lp/registry/templates/sourcepackage-upstream-connections.pt
Added $sourcepackage/+remove-packaging and $sourcepackage/upstream-connections.
lib/lp/registry/browser/sourcepackage.py
lib/lp/registry/browser/tests/sourcepackage-views.txt
lib/lp/registry/stories/distroseries/xx-show-distroseries-packaging.txt
lib/lp/registry/templates/sourcepackage-remove-packaging.pt
Drive-by improvement of formatting.
lib/lp/registry/model/productseries.py
lib/lp/registry/model/sourcepackage.py
* Open https://launchpad.dev/ubuntu/hoary/+source/evolution
* If there is a "Link to Upstream Project" button, use that
since the removal button won't show up without an existing link.
* The Upstream Connections portlet should show:
GNOME ⇒ Evolution ⇒ trunk (E) (-)
where (E) is the edit button, and (-) is the remove button.
* Click on the (-) button.
* Click on the Unlink button.
* The Upstream Connections portlet should now show the
"Link to Upstream Project" button again.
* Open https://launchpad.dev/ubuntu/hoary/+packaging
* The table should now show the projectgroup/project/series like so:
GNOME ⇒ Evolution ⇒ trunk (E) (-)
Summary
-------
The sourcepackage index page had an edit button but no way to remove
a link to the upstream via the project series.
The $distroseries/ +packaging page also displayed identical info,
so I moved that into a template that could be shared.
Implementation details ------- ------- -
-------
Moved identical formatting of upstream connection info from packaging. pt and sourcepackage- portlet- associations. pt upstream- connections. pt. Added the (-) removal link project/ series info. lp/registry/ browser/ configure. zcml lp/registry/ templates/ distroseries- packaging. pt lp/registry/ templates/ sourcepackage- portlet- associations. pt lp/registry/ templates/ sourcepackage- upstream- connections. pt
distroseries-
into sourcepackage-
and moved the edit link next to the projectgroup/
lib/
lib/
lib/
lib/
Added $sourcepackage/ +remove- packaging and $sourcepackage/ upstream- connections. lp/registry/ browser/ sourcepackage. py lp/registry/ browser/ tests/sourcepac kage-views. txt lp/registry/ stories/ distroseries/ xx-show- distroseries- packaging. txt lp/registry/ templates/ sourcepackage- remove- packaging. pt
lib/
lib/
lib/
lib/
Drive-by improvement of formatting. lp/registry/ model/productse ries.py lp/registry/ model/sourcepac kage.py
lib/
lib/
Tests
-----
./bin/test -vv -t 'sourcepackage- views.txt| xx-show- distroseries- packaging. txt'
Demo and Q/A
------------
* Open https:/ /launchpad. dev/ubuntu/ hoary/+ source/ evolution /launchpad. dev/ubuntu/ hoary/+ packaging project/ series like so:
* If there is a "Link to Upstream Project" button, use that
since the removal button won't show up without an existing link.
* The Upstream Connections portlet should show:
GNOME ⇒ Evolution ⇒ trunk (E) (-)
where (E) is the edit button, and (-) is the remove button.
* Click on the (-) button.
* Click on the Unlink button.
* The Upstream Connections portlet should now show the
"Link to Upstream Project" button again.
* Open https:/
* The table should now show the projectgroup/
GNOME ⇒ Evolution ⇒ trunk (E) (-)