Merge lp:~sinzui/launchpad/prefill-homepageurl-0 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Māris Fogels |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11971 |
Proposed branch: | lp:~sinzui/launchpad/prefill-homepageurl-0 |
Merge into: | lp:launchpad |
Diff against target: |
266 lines (+74/-93) 3 files modified
lib/lp/registry/browser/sourcepackage.py (+6/-0) lib/lp/registry/browser/tests/test_sourcepackage_views.py (+61/-66) lib/lp/registry/stories/packaging/xx-sourcepackage-packaging.txt (+7/-27) |
To merge this branch: | bzr merge lp:~sinzui/launchpad/prefill-homepageurl-0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Māris Fogels (community) | Approve | ||
Review via email: mp+41652@code.launchpad.net |
Description of the change
This is my branch to prefill the homepageurl when registering projects
for packages.
lp:~sinzui/launchpad/prefill-homepageurl-0
Diff size: 101
Launchpad bug: https:/
Test command: ./bin/test -vv -t TestSourcePacka
Pre-
Target release: 10.12
Prefill the homepageurl when registering projects for packages
-------
This is the final branch needed to support prefilling the project's
homepageurl with the homepage url from the source package release.
All the data, forms, and helpers are in place. The helpers need to
pass the homepageurl to the form.
Rules
-----
* Update get_register_
include the homepageurl field.
QA
--
* Visit https:/
* Choose to register a new project
* Verify that the homepageurl is
http://
Lint
----
Linting changed files:
lib/lp/
lib/lp/
Implementation
--------------
Updated get_register_
SP's currentrelease. The value cannot be None because that is serialised
as 'None' which causes a form error since it is not a valid url.
Refactored the setup for a test so that an SP with publishing history is
available to test the homepage.
lib/
lib/
Hi Curtis,
This looks like an excellent change, r=mars.
You may have an opportunity here to refactor the tests for readability. I found the assertEquals() statements hard to read - a custom method like assertInQueryURL() may be easier to read, and also reduce the dependence on the entire query data structure:
self. assertInQueryUR L('field. homepageurl' , 'http:// eg.dom/ bonkers')
Maris